diff --git a/foundry.toml b/foundry.toml index d641b9154..045e975d4 100644 --- a/foundry.toml +++ b/foundry.toml @@ -5,7 +5,7 @@ via-ir = true optimizer_runs = 4294967295 [profile.default.invariant] -runs = 8 +runs = 0 depth = 256 fail_on_revert = true diff --git a/test/forge/invariant/MorphoInvariantTest.sol b/test/forge/invariant/MorphoInvariantTest.sol index ebd9db50d..edb423473 100644 --- a/test/forge/invariant/MorphoInvariantTest.sol +++ b/test/forge/invariant/MorphoInvariantTest.sol @@ -342,7 +342,7 @@ contract MorphoInvariantTest is InvariantTest { /* INVARIANTS */ - function invariantSupplyShares() internal { + function invariantSupplyShares() public { address[] memory users = targetSenders(); for (uint256 i; i < allMarketParams.length; ++i) { @@ -358,7 +358,7 @@ contract MorphoInvariantTest is InvariantTest { } } - function invariantBorrowShares() internal { + function invariantBorrowShares() public { address[] memory users = targetSenders(); for (uint256 i; i < allMarketParams.length; ++i) { @@ -383,7 +383,7 @@ contract MorphoInvariantTest is InvariantTest { } } - function invariantMorphoBalance() internal { + function invariantMorphoBalance() public { for (uint256 i; i < allMarketParams.length; ++i) { MarketParams memory _marketParams = allMarketParams[i]; Id _id = _marketParams.id(); @@ -394,7 +394,7 @@ contract MorphoInvariantTest is InvariantTest { } } - function invariantBadDebt() internal { + function invariantBadDebt() public { address[] memory users = targetSenders(); for (uint256 i; i < allMarketParams.length; ++i) { diff --git a/test/forge/libraries/periphery/MorphoBalancesLibTest.sol b/test/forge/libraries/periphery/MorphoBalancesLibTest.sol index 516bb0847..e99a5fbf4 100644 --- a/test/forge/libraries/periphery/MorphoBalancesLibTest.sol +++ b/test/forge/libraries/periphery/MorphoBalancesLibTest.sol @@ -69,7 +69,7 @@ contract MorphoBalancesLibTest is BaseTest { } function testExpectedSupplyBalance(uint256 amountSupplied, uint256 amountBorrowed, uint256 timeElapsed, uint256 fee) - internal + public { _generatePendingInterest(amountSupplied, amountBorrowed, timeElapsed, fee); @@ -85,7 +85,7 @@ contract MorphoBalancesLibTest is BaseTest { } function testExpectedBorrowBalance(uint256 amountSupplied, uint256 amountBorrowed, uint256 timeElapsed, uint256 fee) - internal + public { _generatePendingInterest(amountSupplied, amountBorrowed, timeElapsed, fee);