Skip to content

Commit

Permalink
fix: tick bug
Browse files Browse the repository at this point in the history
  • Loading branch information
detectivekim committed Mar 21, 2024
1 parent 00324fb commit 6195ed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/libraries/ControllerV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ abstract contract ControllerV2 is IControllerV2, ERC1155Holder, Ownable2Step, Re
for (uint256 i = 0; i < length; ++i) {
actionList[i] = IController.Action.TAKE;
IBookManager.BookKey memory key = _couponBuyMarkets[couponsToBurn[i].key.toId()];
tokensToSettle[i] = Currency.unwrap(key.base);
tokensToSettle[i] = Currency.unwrap(key.quote);
amount += couponsToBurn[i].amount;
paramsDataList[i] = abi.encode(
IController.TakeOrderParams({
id: key.toId(),
limitPrice: type(uint256).max,
limitPrice: 0,
quoteAmount: couponsToBurn[i].amount,
hookData: ""
})
Expand All @@ -121,7 +121,7 @@ abstract contract ControllerV2 is IControllerV2, ERC1155Holder, Ownable2Step, Re
paramsDataList[couponsToBurn.length + i] = abi.encode(
IController.SpendOrderParams({
id: key.toId(),
limitPrice: type(uint256).max,
limitPrice: 0,
baseAmount: amount,
hookData: ""
})
Expand Down

0 comments on commit 6195ed2

Please sign in to comment.