Skip to content

Commit

Permalink
Update ACDAR FV rules following #4230 and #4238
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed May 12, 2023
1 parent ad7a450 commit be9aa53
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions certora/specs/AccessControlDefaultAdminRules.spec
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ rule renounceRoleEffect(env e, bytes32 role) {
assert success <=> (
account == e.msg.sender &&
(
role != DEFAULT_ADMIN_ROLE() ||
account != adminBefore ||
(
role != DEFAULT_ADMIN_ROLE()
) || (
pendingAdminBefore == 0 &&
isSet(scheduleBefore) &&
hasPassed(e, scheduleBefore)
Expand All @@ -157,7 +157,7 @@ rule renounceRoleEffect(env e, bytes32 role) {
) ? (
adminAfter == 0 &&
pendingAdminAfter == 0 &&
scheduleAfter == scheduleBefore // For some reason this is not reset. needs fix ?
scheduleAfter == 0
) : (
adminAfter == adminBefore &&
pendingAdminAfter == pendingAdminBefore &&
Expand Down Expand Up @@ -209,7 +209,8 @@ rule noPendingDefaultAdminChange(env e, method f, calldataarg args) {
) => (
f.selector == beginDefaultAdminTransfer(address).selector ||
f.selector == acceptDefaultAdminTransfer().selector ||
f.selector == cancelDefaultAdminTransfer().selector
f.selector == cancelDefaultAdminTransfer().selector ||
f.selector == renounceRole(bytes32,address).selector
),
"pending admin and its schedule is only affected by beginning, accepting or cancelling an admin transfer";
}
Expand Down

0 comments on commit be9aa53

Please sign in to comment.