Skip to content

Commit 16cea85

Browse files
committed
feat: transfer dao timelock admin to burner, verify
1 parent 72380a2 commit 16cea85

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed

proposals/dao/tip_123.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,13 @@ const teardown: TeardownUpgradeFunc = async (addresses, oldContracts, contracts,
6060
// IE check balances, check state of contracts, etc.
6161
const validate: ValidateUpgradeFunc = async (addresses, oldContracts, contracts, logging) => {
6262
// 1. Verify Fei DAO timelock admin burned
63+
expect(await contracts.feiDAOTimelock.admin()).to.equal(addresses.daoTimelockBurner);
6364

64-
// 2. Verify
65+
// 2. Verify Rari Fei deprecated timelock burned
66+
expect(await contracts.rariInfraFeiTimelock.beneficiary()).to.equal(addresses.deprecatedRariFeiTimelockBurner);
67+
68+
// 3. Verify Rari Tribe deprecated timelock burned
69+
expect(await contracts.rariInfraTribeTimelock.beneficiary()).to.equal(addresses.deprecatedRariTribeTimelockBurner);
6570
};
6671

6772
export { deploy, setup, teardown, validate };

proposals/description/tip_123.ts

+41-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,37 @@ const tip_123: TemplatedProposalDescription = {
1212
// arguments: (addresses) => [ethers.utils.id('GOVERN_ROLE'), addresses.feiDAOTimelock],
1313
// description: 'Revoke the GOVERN_ROLE from the TribeDAO timelock'
1414
// },
15-
// 2. Set pending beneficiary of deprecated Rari TRIBE timelock to burner timelock
15+
// 2. Transfer beneficiary of deprecated Rari FEI timelock to burner timelock
16+
{
17+
target: 'rariInfraFeiTimelock',
18+
values: '0',
19+
method: 'setPendingBeneficiary(address)',
20+
arguments: (addresses) => [addresses.deprecatedRariFeiTimelockBurner],
21+
description: 'Set pending beneficiary of deprecated Rari Fei timelock burner to Fei burner timelock'
22+
},
23+
{
24+
target: 'deprecatedRariFeiTimelockBurner',
25+
values: '0',
26+
method: 'acceptBeneficiary()',
27+
arguments: (addresses) => [],
28+
description: 'Accept deprecated Rari Fei timelock beneficiary to burner'
29+
},
30+
31+
// 2. Transfer beneficiary of deprecated Rari TRIBE timelock to burner timelock
1632
{
1733
target: 'rariInfraTribeTimelock',
1834
values: '0',
1935
method: 'setPendingBeneficiary(address)',
2036
arguments: (addresses) => [addresses.deprecatedRariTribeTimelockBurner],
2137
description: 'Set pending beneficiary of deprecated Rari Tribe timelock burner to Tribe burner timelock'
2238
},
39+
{
40+
target: 'deprecatedRariTribeTimelockBurner',
41+
values: '0',
42+
method: 'acceptBeneficiary()',
43+
arguments: (addresses) => [],
44+
description: 'Accept deprecated Rari Tribe timelock beneficiary to burner'
45+
},
2346
// 2. Cleanup Collaterisation Oracle
2447
{
2548
target: 'collateralizationOracle',
@@ -49,18 +72,30 @@ const tip_123: TemplatedProposalDescription = {
4972
target: 'core',
5073
values: '0',
5174
method: 'revokeRole(bytes32,address)',
52-
arguments: (addresses) => [ethers.utils.id('GOVERN_ROLE'), addresses.feiDAOTimelock],
53-
description: 'Revoke the GOVERN_ROLE from the TribeDAO timelock'
75+
arguments: (addresses) => [ethers.utils.id('GOVERN_ROLE'), addresses.core],
76+
description: 'Revoke the GOVERN_ROLE from the Core Treasury'
5477
},
5578
{
5679
target: 'core',
5780
values: '0',
5881
method: 'revokeRole(bytes32,address)',
59-
arguments: (addresses) => [ethers.utils.id('GOVERN_ROLE'), addresses.core],
60-
description: 'Revoke the GOVERN_ROLE from the Core Treasury'
82+
arguments: (addresses) => [ethers.utils.id('GOVERN_ROLE'), addresses.feiDAOTimelock],
83+
description: 'Revoke the GOVERN_ROLE from the TribeDAO timelock'
84+
},
85+
// 6. Transfer admin of DAO timelock to DAO timelock burner
86+
{
87+
target: 'feiDAOTimelock',
88+
values: '0',
89+
method: 'setPendingAdmin(address)',
90+
arguments: (addresses) => [addresses.daoTimelockBurner],
91+
description: 'Set pending Fei DAO timelock admin to be the DAO timelock burner'
6192
},
93+
{
94+
target: 'daoTimelockBurner',
95+
values: '0',
96+
method: 'acceptFeiDAOTimelockAdmin()',
6297
arguments: (addresses) => [],
63-
description: ''
98+
description: 'Accept Fei DAO timelock admin transfer to the DAO timelock burner'
6499
}
65100
],
66101
description: `

0 commit comments

Comments
 (0)