Skip to content

Upgrade OZ contracts, make use of CANCELLER role#739

Merged
thomas-waite merged 6 commits intofeat-governance-upgradefrom
deps-upgrade-oz
Apr 26, 2022
Merged

Upgrade OZ contracts, make use of CANCELLER role#739
thomas-waite merged 6 commits intofeat-governance-upgradefrom
deps-upgrade-oz

Conversation

@thomas-waite
Copy link
Contributor

Summary

Upgrades the OZ contracts to the next release. The next release contains a version of the TimelockController.sol that has a more granular CANCELLOR_ROLE we can make use of.

We are technically using the 'pre-release' here - the pre-release period ended on the 22nd April and it is now going to main release. Have confirmed with the OZ team that there are no planned differences between this pre-release and the main release - it is being released as is in a few days.

Code changes

Previously, all proposers passed to the new TimelockController() created for a pod in podFactory were given the PROPOSER_ROLE which entitled the proposers to both proposal creation and cancellation abilities.

This upgrade restricts the proposer to just the pod safeAddress and not the pod admin contract. Both the pod safe and podAdmin have cancellation rights.

take into account getVotes has become an internal method _getVotes on GovernorVotesComp
@thomas-waite thomas-waite requested a review from a team as a code owner April 26, 2022 14:52
@thomas-waite thomas-waite changed the base branch from develop to feat-governance-upgrade April 26, 2022 15:08
/// @dev Roles that individual addresses are granted on the relevant timelock:
// safeAddress - PROPOSER_ROLE, CANCELLER_ROLE, EXECUTOR_ROLE
// podAdmin - CANCELLER_ROLE
// publicExecutor - EXECUTOR_ROLE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just want to double check, is the publicExecutor pausable/revokable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have made pausable

@thomas-waite thomas-waite merged commit 2f386a9 into feat-governance-upgrade Apr 26, 2022
@thomas-waite thomas-waite deleted the deps-upgrade-oz branch April 26, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments