chore(Certora specs): comment out purposefully failing rule

We've introduced a rule that finds counter examples for all functions
that changes balances. This rule will always fail by definition, so
we're commenting it out to get CI green again.
This commit is contained in:
r4bbit 2024-03-01 10:40:13 +01:00 committed by Ricardo Guilherme Schmidt
parent d7ab130d30
commit 1c52edbbd9
1 changed files with 12 additions and 9 deletions

View File

@ -107,15 +107,18 @@ rule revertsWhenNoMigration(method f) {
assert isMigrationfunction(f) => reverted;
}
rule whoChangeERC20Balance( method f ) filtered { f -> f.contract != staked }
{
address user;
uint256 before = staked.balanceOf(user);
calldataarg args;
env e;
f(e,args);
assert before == staked.balanceOf(user);
}
// This rule is commented out as it's just a helper rule to easily see which
// functions change the balance of the `StakeManager` contract.
//
// rule whoChangeERC20Balance( method f ) filtered { f -> f.contract != staked }
// {
// address user;
// uint256 before = staked.balanceOf(user);
// calldataarg args;
// env e;
// f(e,args);
// assert before == staked.balanceOf(user);
// }
rule epochOnlyIncreases {
method f;