diff --git a/test/forge/Blue.t.sol b/test/forge/Blue.t.sol index 2f5b7eeef..06818306b 100644 --- a/test/forge/Blue.t.sol +++ b/test/forge/Blue.t.sol @@ -10,6 +10,7 @@ import {OracleMock as Oracle} from "src/mocks/OracleMock.sol"; import {IrmMock as Irm} from "src/mocks/IrmMock.sol"; contract BlueTest is Test { + using MarketLib for Market; using FixedPointMathLib for uint256; address private constant BORROWER = address(1234); @@ -37,6 +38,7 @@ contract BlueTest is Test { collateralOracle = new Oracle(); irm = new Irm(blue); + market = Market( IERC20(address(borrowableAsset)), IERC20(address(collateralAsset)), @@ -45,7 +47,7 @@ contract BlueTest is Test { irm, LLTV ); - id = Id.wrap(keccak256(abi.encode(market))); + id = market.id(); vm.startPrank(OWNER); blue.enableIrm(irm);