Skip to content

Commit

Permalink
refactor: simplify transfer summary check
Browse files Browse the repository at this point in the history
Co-authored-by: Jochen Hoenicke <hoenicke@gmail.com>
Signed-off-by: Quentin Garchery <QGarchery@users.noreply.github.com>
  • Loading branch information
QGarchery and jhoenicke committed Aug 17, 2023
1 parent ffc7844 commit 7125c7d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions certora/specs/BlueTransferSummary.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ rule checkTransferSummary(address token, address from, address to, uint256 amoun
doTransfer(token, from, to, amount);
uint256 finalBalance = getBalance(token, currentContract);

mathint initialGhostBalance = myBalances[token];
require myBalances[token] == initialBalance;
summarySafeTransferFrom(token, from, to, amount);
mathint finalGhostBalance = myBalances[token];

assert finalGhostBalance - initialGhostBalance == finalBalance - initialBalance;
assert myBalances[token] == finalBalance;
}

0 comments on commit 7125c7d

Please sign in to comment.