-
Notifications
You must be signed in to change notification settings - Fork 98
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
TIP_123: Revoke governance #1097
base: develop
Are you sure you want to change the base?
Conversation
69d5d5f
to
16cea85
Compare
tests relied on governor and deprecated contracts
const tip_123: TemplatedProposalDescription = { | ||
title: 'TIP_123', | ||
commands: [ | ||
// 1. Transfer beneficiary of deprecated Rari FEI timelock to burner timelock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Check everything for which ProxyAdmin is a dependency
TODO: Check all roles Core has ever granted out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: Have checked all roles Core has ever granted out by querying events. Look as expected - permissions.ts config is an exhaustive representation of on-chain state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: Checked all ProxyAdmin dependents. Appears that there were 5 contracts which the proxyAdmin had control over. 2 have since been transferred to Aave's control.
Remaining 3 live are:
- collateralizationOracleWrapper
- tribalChief
- vlAuraDelegatorPCVDeposit
All are fine to deprecate along with the ProxyAdmin. The 2 which have been transferred to Aave are:
- aaveTribeIncentivesController
- balancerGaugeStaker
b783861
to
8e8516c
Compare
8e8516c
to
75940a9
Compare
// expect(await contracts.collateralizationOracle.isOvercollateralized()).to.be.true; | ||
|
||
// 1. Verify Fei DAO timelock admin burned | ||
expect(await contracts.feiDAOTimelock.admin()).to.equal(addresses.daoTimelockBurner); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be extra safe, would be good to verify that even succeeded votes on the DAO can't be executed. They probably can't even be queued.
Also good to verify that the number of addresses with governor role is 0, there is a method on the OZ AccessControlEnumerated which can check this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified num GOVERNORs is 0, and also verified num of addresses with other major roles is as expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added test to verify can not queue successful proposals, and therefore can not execute
}, | ||
|
||
// 2. Transfer beneficiary of deprecated Rari TRIBE timelock to burner timelock | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one side effect here is that the TRIBE will remain delegated to Rari Infra multisig as it unlocks. Probably best to do a "delegate(address)(0x0) call" beforehand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
52a775f
to
cf9d4a8
Compare
c4e0561
to
4abd6f5
Compare
4abd6f5
to
391da85
Compare
f06d561
to
71a5c13
Compare
@@ -112,172 +69,14 @@ export const MainnetContractsConfig = { | |||
category: AddressCategory.PCV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Deprecate escrowedAaveDaiPCVDeposit
after governance removed and Aave has sent funds to the PSM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes after makes sense
@@ -107,12 +102,6 @@ describe('e2e-metagov', function () { | |||
); | |||
}); | |||
|
|||
it('should revert if contract is paused', async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove these test cases?
TIP_123: Revoke governance