File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ jobs:
21
21
- type : " slow"
22
22
fuzz-runs : 10000
23
23
max-test-rejects : 500000
24
- invariant-runs : 48
25
- invariant-depth : 2048
24
+ invariant-runs : 32
25
+ invariant-depth : 512
26
26
- type : " fast"
27
27
fuzz-runs : 256
28
28
max-test-rejects : 65536
29
- invariant-runs : 16
29
+ invariant-runs : 8
30
30
invariant-depth : 256
31
31
32
32
runs-on : ubuntu-latest
45
45
FOUNDRY_FUZZ_MAX_TEST_REJECTS : ${{ matrix.max-test-rejects }}
46
46
FOUNDRY_INVARIANT_RUNS : ${{ matrix.invariant-runs }}
47
47
FOUNDRY_INVARIANT_DEPTH : ${{ matrix.invariant-depth }}
48
+ FOUNDRY_FUZZ_SEED : 0x${{ github.event.pull_request.base.sha || github.sha }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ via-ir = true
5
5
optimizer_runs = 4294967295
6
6
7
7
[profile .default .invariant ]
8
- runs = 16
8
+ runs = 8
9
9
depth = 256
10
10
fail_on_revert = true
11
11
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ contract MorphoInvariantTest is InvariantTest {
342
342
343
343
/* INVARIANTS */
344
344
345
- function invariantSupplyShares () public {
345
+ function invariantSupplyShares () internal {
346
346
address [] memory users = targetSenders ();
347
347
348
348
for (uint256 i; i < allMarketParams.length ; ++ i) {
@@ -358,7 +358,7 @@ contract MorphoInvariantTest is InvariantTest {
358
358
}
359
359
}
360
360
361
- function invariantBorrowShares () public {
361
+ function invariantBorrowShares () internal {
362
362
address [] memory users = targetSenders ();
363
363
364
364
for (uint256 i; i < allMarketParams.length ; ++ i) {
@@ -383,7 +383,7 @@ contract MorphoInvariantTest is InvariantTest {
383
383
}
384
384
}
385
385
386
- function invariantMorphoBalance () public {
386
+ function invariantMorphoBalance () internal {
387
387
for (uint256 i; i < allMarketParams.length ; ++ i) {
388
388
MarketParams memory _marketParams = allMarketParams[i];
389
389
Id _id = _marketParams.id ();
@@ -394,7 +394,7 @@ contract MorphoInvariantTest is InvariantTest {
394
394
}
395
395
}
396
396
397
- function invariantBadDebt () public {
397
+ function invariantBadDebt () internal {
398
398
address [] memory users = targetSenders ();
399
399
400
400
for (uint256 i; i < allMarketParams.length ; ++ i) {
You can’t perform that action at this time.
0 commit comments