Skip to content

Commit

Permalink
fix: check wrappedCoupon
Browse files Browse the repository at this point in the history
  • Loading branch information
detectivekim committed Mar 18, 2024
1 parent 09e8f39 commit ccb4b96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/libraries/ControllerV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ abstract contract ControllerV2 is IControllerV2, ERC1155Holder, Ownable2Step, Re
if (
_bookManager.getBookKey(sellMarketBookId).unit != sellBookKey.unit
|| _bookManager.getBookKey(buyMarketBookId).unit != buyBookKey.unit
|| Currency.unwrap(sellBookKey.base) != wrappedCoupon || Currency.unwrap(buyBookKey.quote) != wrappedCoupon
) {
revert InvalidMarket();
}
Expand Down

0 comments on commit ccb4b96

Please sign in to comment.