From ccb4b96f0bfccc4eedc40907c24533d768890ae9 Mon Sep 17 00:00:00 2001 From: Sean Date: Mon, 18 Mar 2024 14:34:52 +0900 Subject: [PATCH] fix: check `wrappedCoupon` --- contracts/libraries/ControllerV2.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/libraries/ControllerV2.sol b/contracts/libraries/ControllerV2.sol index 739f495..91b5c01 100644 --- a/contracts/libraries/ControllerV2.sol +++ b/contracts/libraries/ControllerV2.sol @@ -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(); }