mirror of https://github.com/logos-co/staking.git
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:
parent
109b684a2c
commit
bb31a4c80d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue