Interesting Issue About OpenInvariantsTest #4578
Replies: 2 comments 1 reply
-
|
What seems logical is the But the question here is, does the Fuzz test run all of its processes for the first run and never make a successful deposit to the protocol, and also never mint any Another scenario could be that it is first asserts You can do more personal research and find out what is actually going on, and maybe report to Foundry if you find out that it is an issue from |
Beta Was this translation helpful? Give feedback.
-
|
I have same issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
assert(wethValue + wbtcValue > totalsupply);
if i use > it will trigger Ran 1 test for test/fuzz/OpenInvariantsTest.t.sol:OpenInvariantsTest
[FAIL: failed to set up invariant testing environment: panic: assertion failed (0x01)] invariant_protocolMustHaveMoreValueThanTotalSupply() (runs: 0, calls: 0, reverts: 0)
but if i change it to >=
boom it passed the test
Can somebody told me whats the reason
Beta Was this translation helpful? Give feedback.
All reactions