Skip to content

Commit

Permalink
fix: add required assumptions in noClaimAgain and transferredTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Dec 6, 2023
1 parent b319816 commit 482c728
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions certora/specs/RewardsDistributor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ rule noClaimAgain(address _account, uint256 _claimable, bytes32[] _proof) {
claim(_account, _claimable, _proof);

uint256 _claimable2;
require (_claimable2 <= _claimable);
claim@withrevert(_account, _claimable2, _proof);

assert lastReverted;
}

rule transferredTokens(address _account, uint256 _claimable, bytes32[] _proof) {
require _account != currentContract;

uint256 balanceBefore = MorphoToken.balanceOf(_account);
uint256 claimedBefore = claimed(_account);

Expand Down

0 comments on commit 482c728

Please sign in to comment.