Skip to content

Commit 749635d

Browse files
committed
feat: add Rari DAO script
1 parent 99b9854 commit 749635d

File tree

5 files changed

+96
-13
lines changed

5 files changed

+96
-13
lines changed

block.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15718407
1+
15731500

contracts/external/rari/IDAOTimelockBurner.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// SPDX-License-Identifier: MIT
2-
pragma solidity =0.8.13;
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
pragma solidity ^0.8.4;
33

44
interface IDAOTimelockBurner {
55
function acceptRariDAOTimelockAdmin() external;

contracts/external/rari/IRariController.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// SPDX-License-Identifier: MIT
2-
pragma solidity =0.8.13;
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
pragma solidity ^0.8.4;
33

44
interface IRariController {
55
function setFundManager(address) external;

contracts/external/rari/IRariManager.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// SPDX-License-Identifier: MIT
2-
pragma solidity =0.8.13;
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
pragma solidity ^0.8.4;
33

44
interface IRariManager {
55
function depositFees() external;

proposals/description/verify_rari_proposal.ts

Lines changed: 89 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,102 @@
11
import { TemplatedProposalDescription } from '@custom-types/types';
22

33
const fip_x: TemplatedProposalDescription = {
4-
title: 'FIP-X: Title',
4+
title: 'Verify Rari deprecation proposal',
55
commands: [
6+
// await controller.methods.setFundManager("0x8ace03fc45139fddba944c6a4082b604041d19fc")
7+
// 0x66f4856F1BBD1eb09e1C8d9D646f5A3a193dA569
68
{
7-
target: '',
8-
values: '',
9-
method: '',
9+
target: 'rariUSDCPoolControllerProxy',
10+
values: '0',
11+
method: 'setFundManager(address)',
12+
arguments: (addresses) => ['0x8ace03fc45139fddba944c6a4082b604041d19fc'],
13+
description: ''
14+
},
15+
// await controller.methods.setFundManager("0x8ace03fc45139fddba944c6a4082b604041d19fc")
16+
// 0xaFD2AaDE64E6Ea690173F6DE59Fc09F5C9190d74
17+
{
18+
target: 'rariDAIPoolControllerProxy',
19+
values: '0',
20+
method: 'setFundManager(address)',
21+
arguments: (addresses) => ['0x8ace03fc45139fddba944c6a4082b604041d19fc'],
22+
description: ''
23+
},
24+
// await manager.methods.depositFees()
25+
// 0xC6BF8C8A55f77686720E0a88e2Fd1fEEF58ddf4a
26+
{
27+
target: 'rariRSPTFundManagerProxy',
28+
values: '0',
29+
method: 'depositFees()',
30+
arguments: (addresses) => [],
31+
description: ''
32+
},
33+
// await manager.methods.depositFees()
34+
// 0xB465BAF04C087Ce3ed1C266F96CA43f4847D9635
35+
{
36+
target: 'rariDAIPoolManagerProxy',
37+
values: '0',
38+
method: 'depositFees()',
39+
arguments: (addresses) => [],
40+
description: ''
41+
},
42+
// await manager.methods.withdraw("USDC", "134818277836212805900127")
43+
// 0xC6BF8C8A55f77686720E0a88e2Fd1fEEF58ddf4a
44+
{
45+
target: 'rariDAIPoolControllerProxy',
46+
values: '0',
47+
method: 'withdraw(string,uint256)',
48+
arguments: (addresses) => [],
49+
description: ''
50+
},
51+
// await manager.methods.withdraw("DAI", "159312000000000000000000")
52+
// 0xB465BAF04C087Ce3ed1C266F96CA43f4847D9635
53+
{
54+
target: 'rariDAIPoolManagerProxy',
55+
values: '0',
56+
method: 'withdraw(string,uint256)',
57+
arguments: (addresses) => [],
58+
description: ''
59+
},
60+
61+
// await erc20.methods.transfer("0x5eA4A9a7592683bF0Bc187d6Da706c6c4770976F", "336235000000")
62+
// 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
63+
{
64+
target: 'usdc',
65+
values: '0',
66+
method: 'transfer(address,uint256)',
67+
arguments: (addresses) => [addresses.fuseMultisig, '336235000000'],
68+
description: ''
69+
},
70+
71+
// await erc20.methods.transfer("0x5eA4A9a7592683bF0Bc187d6Da706c6c4770976F", "94218000000000000000000")
72+
// 0x6B175474E89094C44Da98b954EedeAC495271d0F
73+
{
74+
target: 'dai',
75+
values: '0',
76+
method: 'transfer(address,uint256)',
77+
arguments: (addresses) => [addresses.fuseMultisig, '94218000000000000000000'],
78+
description: ''
79+
},
80+
81+
// await timelock.methods.setPendingAdmin("0x6F6580285a63f1e886548458f427f8695BA1a563")
82+
// 0x8ace03fc45139fddba944c6a4082b604041d19fc
83+
{
84+
target: 'rariTimelock',
85+
values: '0',
86+
method: 'setPendingAdmin(address)',
87+
arguments: (addresses) => [addresses.daoTimelockBurner],
88+
description: ''
89+
},
90+
{
91+
target: 'daoTimelockBurner',
92+
values: '0',
93+
method: 'acceptRariDAOTimelockAdmin()',
1094
arguments: (addresses) => [],
1195
description: ''
1296
}
1397
],
1498
description: `
15-
[TITLE] /n/n
16-
[BODY OF PROPOSAL] \n\n
99+
Verify Rari deprecation proposal
17100
`
18101
};
19102

0 commit comments

Comments
 (0)