Skip to content

Commit

Permalink
refactor: readability
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-morpho committed Feb 4, 2025
1 parent 619435e commit 4de56d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certora/specs/Delegation.spec
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ rule updatedDelegatedVPLTEqTotalSupply(address from, address to) {
uint256 balanceOfFromBefore = balanceOf(from);
uint256 delegatedVotingPowerDelegateeToBefore = delegatedVotingPower(delegatee(to));
uint256 totalSupplyBefore = totalSupply();
env e;

requireInvariant sumOfTwoDelegatedVPLTEqTotalVP();
assert isTotalSupplyGTEqSumOfVotingPower();
Expand All @@ -235,6 +234,7 @@ rule updatedDelegatedVPLTEqTotalSupply(address from, address to) {

require delegatee(from) != 0 => delegatedVotingPower(delegatee(from)) >= balanceOfFromBefore;

env e;
// Safe require-statements to perform a ghost call to delegate(from).
require e.msg.value == 0;
require e.msg.sender == from;
Expand Down

0 comments on commit 4de56d8

Please sign in to comment.