finalize fist 3 rules; fix old governor spec

This commit is contained in:
teryanarmen
2022-05-16 14:26:31 -07:00
parent c45f34adc8
commit 793b88efd8
9 changed files with 165 additions and 92 deletions

View File

@ -7,7 +7,6 @@ methods {
proposalVotes(uint256) returns (uint256, uint256, uint256) envfree
quorumNumerator() returns uint256
_executor() returns address
getExecutor() returns address
@ -184,7 +183,7 @@ rule hasVotedCorrelation(uint256 pId, method f, env e, uint256 bn) {
bool hasVotedAfter = hasVoted(e, pId, acc);
assert (!hasVotedBefore && hasVotedAfter) => againstBefore <= againstAfter || forBefore <= forAfter || abstainBefore <= abstainAfter, "no correlation";
assert (!hasVotedBefore && hasVotedAfter) => againstBefore <= againstAfter && forBefore <= forAfter && abstainBefore <= abstainAfter, "no correlation";
}