Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aave-formal-verification-grant work - add more token v3 rules #2

Open
wants to merge 3 commits into
base: certora-community
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions certora/harness/AaveTokenV3Harness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ contract AaveTokenV3 is BaseAaveTokenV2, IGovernancePowerDelegationToken {
// bool delegatingVoting;
// }

function getDelegationState(address user) view public returns (DelegationState) {
return _balances[user].delegationState;
}


function getBalance(address user) view public returns (uint104) {
return _balances[user].balance;
Expand Down Expand Up @@ -441,6 +445,14 @@ contract AaveTokenV3 is BaseAaveTokenV2, IGovernancePowerDelegationToken {
return _propositionDelegateeV2[user];
}

function getNonce(address user) view public returns (uint256) {
return _nonces[user];
}

function getAllowance(address owner, address spender) view public returns (uint256) {
return _allowances[owner][spender];
}



/**
Expand Down
4 changes: 2 additions & 2 deletions certora/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ fi

certoraRun certora/harness/AaveTokenV3Harness.sol:AaveTokenV3 \
--verify AaveTokenV3:certora/specs/setup.spec \
$RULE \
--solc solc8.13 \
--solc solc \
--optimistic_loop \
--send_only \
--cloud \
# --rule "equivalenceOfDelegateAndDelegateByType" \
--msg "AaveTokenV3:setup.spec $1"
Loading