diff --git a/lib/forge-std b/lib/forge-std index e8a047e3f..2f1126975 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit e8a047e3f40f13fa37af6fe14e6e06283d9a060e +Subproject commit 2f112697506eab12d433a65fdc31a639548fe365 diff --git a/test/forge/BaseTest.sol b/test/forge/BaseTest.sol index a26dab28e..ef8c19836 100644 --- a/test/forge/BaseTest.sol +++ b/test/forge/BaseTest.sol @@ -82,7 +82,9 @@ contract BaseTest is Test { irm = new IrmMock(); vm.startPrank(OWNER); + morpho.enableIrm(address(0)); morpho.enableIrm(address(irm)); + morpho.enableLltv(0); morpho.setFeeRecipient(FEE_RECIPIENT); vm.stopPrank(); diff --git a/test/forge/integration/AccrueInterestIntegrationTest.sol b/test/forge/integration/AccrueInterestIntegrationTest.sol index 3b91564f7..c935f8f58 100644 --- a/test/forge/integration/AccrueInterestIntegrationTest.sol +++ b/test/forge/integration/AccrueInterestIntegrationTest.sol @@ -15,6 +15,18 @@ contract AccrueInterestIntegrationTest is BaseTest { morpho.accrueInterest(marketParamsFuzz); } + function testAccrueInterestIrmZero(MarketParams memory marketParamsFuzz, uint256 blocks) public { + marketParamsFuzz.irm = address(0); + marketParamsFuzz.lltv = 0; + blocks = _boundBlocks(blocks); + + morpho.createMarket(marketParamsFuzz); + + _forward(blocks); + + morpho.accrueInterest(marketParamsFuzz); + } + function testAccrueInterestNoTimeElapsed(uint256 amountSupplied, uint256 amountBorrowed) public { uint256 collateralPrice = oracle.price(); uint256 amountCollateral;