Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove invariants in CI #587

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ via-ir = true
optimizer_runs = 4294967295

[profile.default.invariant]
runs = 8
runs = 0
depth = 256
fail_on_revert = true

Expand Down
8 changes: 4 additions & 4 deletions test/forge/invariant/MorphoInvariantTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -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();
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions test/forge/libraries/periphery/MorphoBalancesLibTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down
Loading