Skip to content

Commit

Permalink
feat: check increasing claim amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Mar 11, 2024
1 parent f5daa10 commit b6f4f2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions certora/specs/RewardsDistributor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ rule claimTwice(address _account, uint256 _claim1, uint256 _claim2) {
bytes32[] _proof1; bytes32[] _proof2;
claim(_account, _claim1, _proof1);
claim(_account, _claim2, _proof2);
assert _claim2 >= _claim1;

storage afterBothStorage = lastStorage;

bytes32[] _proof;
claim(_account, _claim2, _proof) at initStorage;
bytes32[] _proof3;
claim(_account, _claim2, _proof3) at initStorage;

assert lastStorage == afterBothStorage;
}
Expand Down

0 comments on commit b6f4f2a

Please sign in to comment.