Skip to content

Commit dc9ec97

Browse files
author
Franck
authored
Mainnet deploy 19 (#608)
* Rinkeby deploy * mainnet deploy 19
1 parent 00e87ce commit dc9ec97

15 files changed

+741
-97
lines changed

contracts/deployments/mainnet/.migrations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
"015_flipper": 1613166856,
1616
"016_chainlink_and_buyback": 1616629649,
1717
"017_3pool_strategy_update": 1621303419,
18-
"018_upgrade_governor": 1624425881
18+
"018_upgrade_governor": 1624425881,
19+
"019_resolution_and_savings": 1625266338
1920
}

contracts/deployments/mainnet/OUSD.json

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

contracts/deployments/mainnet/VaultCore.json

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

contracts/deployments/mainnet/solcInputs/c2ea476b4aec8b6a8c5cdeb6adf2172f.json

Lines changed: 317 additions & 0 deletions
Large diffs are not rendered by default.

contracts/deployments/rinkeby/.migrations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
"015_flipper": 1613166556,
1717
"016_chainlink_and_buyback": 1616624684,
1818
"017_3pool_strategy_update": 1621302942,
19-
"018_upgrade_governor": 1624425066
19+
"018_upgrade_governor": 1624425066,
20+
"019_resolution_and_savings": 1625264902
2021
}

contracts/deployments/rinkeby/OUSD.json

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

contracts/deployments/rinkeby/VaultCore.json

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

contracts/deployments/rinkeby/solcInputs/c2ea476b4aec8b6a8c5cdeb6adf2172f.json

Lines changed: 317 additions & 0 deletions
Large diffs are not rendered by default.

contracts/hardhat.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ const {
4242

4343
const MAINNET_DEPLOYER = "0x71F78361537A6f7B6818e7A760c8bC0146D93f50";
4444
// Mainnet contracts are governed by the Governor contract (which derives off Timelock).
45-
const MAINNET_GOVERNOR = "0x8e7bDFeCd1164C46ad51b58e49A611F954D23377";
46-
const MAINNET_MULTISIG = "0xe011fa2a6df98c69383457d87a056ed0103aa352";
45+
const MAINNET_GOVERNOR = "0x830622BDd79CC677eE6594E20bBda5B26568b781";
46+
// Multi-sig that controls the Governor. Aka "Guardian".
47+
const MAINNET_MULTISIG = "0xbe2AB3d3d8F6a32b96414ebbd865dBD276d3d899";
4748
const MAINNET_CLAIM_ADJUSTER = MAINNET_DEPLOYER;
4849
const MAINNET_STRATEGIST = "0xf14bbdf064e3f67f51cd9bd646ae3716ad938fdc";
4950

contracts/storageLayout/mainnet/OUSD.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
{
9494
"contract": "OUSD",
9595
"label": "rebaseState",
96-
"type": "t_mapping(t_address,t_enum(RebaseOptions)12419)",
96+
"type": "t_mapping(t_address,t_enum(RebaseOptions)14419)",
9797
"src": "contracts/token/OUSD.sol:50"
9898
}
9999
],
@@ -110,10 +110,10 @@
110110
"t_mapping(t_address,t_uint256)": {
111111
"label": "mapping(address => uint256)"
112112
},
113-
"t_mapping(t_address,t_enum(RebaseOptions)12419)": {
113+
"t_mapping(t_address,t_enum(RebaseOptions)14419)": {
114114
"label": "mapping(address => enum OUSD.RebaseOptions)"
115115
},
116-
"t_enum(RebaseOptions)12419": {
116+
"t_enum(RebaseOptions)14419": {
117117
"label": "enum OUSD.RebaseOptions",
118118
"members": [
119119
"NotSet",

contracts/storageLayout/mainnet/VaultCore.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{
2222
"contract": "VaultStorage",
2323
"label": "assets",
24-
"type": "t_mapping(t_address,t_struct(Asset)18894_storage)",
24+
"type": "t_mapping(t_address,t_struct(Asset)18980_storage)",
2525
"src": "contracts/vault/VaultStorage.sol:55"
2626
},
2727
{
@@ -33,7 +33,7 @@
3333
{
3434
"contract": "VaultStorage",
3535
"label": "strategies",
36-
"type": "t_mapping(t_address,t_struct(Strategy)18906_storage)",
36+
"type": "t_mapping(t_address,t_struct(Strategy)18992_storage)",
3737
"src": "contracts/vault/VaultStorage.sol:63"
3838
},
3939
{
@@ -87,7 +87,7 @@
8787
{
8888
"contract": "VaultStorage",
8989
"label": "oUSD",
90-
"type": "t_contract(OUSD)15327",
90+
"type": "t_contract(OUSD)15436",
9191
"src": "contracts/vault/VaultStorage.sol:80"
9292
},
9393
{
@@ -134,13 +134,13 @@
134134
}
135135
],
136136
"types": {
137-
"t_mapping(t_address,t_struct(Asset)18894_storage)": {
137+
"t_mapping(t_address,t_struct(Asset)18980_storage)": {
138138
"label": "mapping(address => struct VaultStorage.Asset)"
139139
},
140140
"t_address": {
141141
"label": "address"
142142
},
143-
"t_struct(Asset)18894_storage": {
143+
"t_struct(Asset)18980_storage": {
144144
"label": "struct VaultStorage.Asset",
145145
"members": [
146146
{
@@ -155,10 +155,10 @@
155155
"t_array(t_address)dyn_storage": {
156156
"label": "address[]"
157157
},
158-
"t_mapping(t_address,t_struct(Strategy)18906_storage)": {
158+
"t_mapping(t_address,t_struct(Strategy)18992_storage)": {
159159
"label": "mapping(address => struct VaultStorage.Strategy)"
160160
},
161-
"t_struct(Strategy)18906_storage": {
161+
"t_struct(Strategy)18992_storage": {
162162
"label": "struct VaultStorage.Strategy",
163163
"members": [
164164
{
@@ -174,7 +174,7 @@
174174
"t_uint256": {
175175
"label": "uint256"
176176
},
177-
"t_contract(OUSD)15327": {
177+
"t_contract(OUSD)15436": {
178178
"label": "contract OUSD"
179179
},
180180
"t_mapping(t_address,t_address)": {

contracts/utils/addresses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ addresses.dead = "0x0000000000000000000000000000000000000001";
1010

1111
addresses.mainnet = {};
1212
// Native stablecoins
13-
addresses.mainnet.Binance = "0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE";
13+
addresses.mainnet.Binance = "0xf977814e90da44bfa03b6295a0616a897441acec";
1414
addresses.mainnet.DAI = "0x6b175474e89094c44da98b954eedeac495271d0f";
1515
addresses.mainnet.USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
1616
addresses.mainnet.USDT = "0xdAC17F958D2ee523a2206206994597C13D831ec7";

contracts/utils/deploy.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const {
1010
isFork,
1111
isRinkeby,
1212
isMainnetOrRinkebyOrFork,
13+
isSmokeTest,
1314
} = require("../test/helpers.js");
1415

1516
const {
@@ -19,6 +20,7 @@ const {
1920

2021
const addresses = require("../utils/addresses.js");
2122
const { getTxOpts } = require("../utils/tx");
23+
const { proposeArgs } = require("../utils/governor");
2224

2325
// Wait for 3 blocks confirmation on Mainnet/Rinkeby.
2426
const NUM_CONFIRMATIONS = isMainnet || isRinkeby ? 3 : 0;
@@ -275,9 +277,14 @@ function deploymentWithProposal(opts, fn) {
275277
} else {
276278
// Hardcoding gas estimate on Rinkeby since it fails for an undetermined reason...
277279
const gasLimit = isRinkeby ? 1000000 : null;
278-
for (const proposal of proposals) {
279-
const { contract, signature, args } = proposal;
280-
log(`Sending goverance action ${signature} to ${address}`);
280+
281+
const { governorAddr } = await getNamedAccounts();
282+
const sGovernor = await ethers.provider.getSigner(governorAddr);
283+
284+
for (const action of proposal.actions) {
285+
const { contract, signature, args } = action;
286+
287+
log(`Sending governance action ${signature} to ${contract.address}`);
281288
await withConfirmation(
282289
contract
283290
.connect(sGovernor)

dapp/network.mainnet.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5786,7 +5786,7 @@
57865786
]
57875787
},
57885788
"OUSD": {
5789-
"address": "0x9d6975591E777D95Eef3bCC2a727846DA25d7083",
5789+
"address": "0x23DCc0Cc5F08b9D85daF8d29490c7f74a655b359",
57905790
"abi": [
57915791
{
57925792
"constant": true,
@@ -11828,7 +11828,7 @@
1182811828
]
1182911829
},
1183011830
"VaultCore": {
11831-
"address": "0xf00d4B19458C594d4Ea9D0B9861EDfD2c444fA9A",
11831+
"address": "0xA4D15507112c0DB37E1320Bf3Fff8891DFd1D2Ed",
1183211832
"abi": [
1183311833
{
1183411834
"constant": true,

dapp/network.rinkeby.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14753,7 +14753,7 @@
1475314753
]
1475414754
},
1475514755
"OUSD": {
14756-
"address": "0x1e4277abF53A0BD4dACC22Fc0Ab2FF9eb2192786",
14756+
"address": "0x06bFb84169EFd5aFafa39cBbf5018EE8624ef29b",
1475714757
"abi": [
1475814758
{
1475914759
"constant": true,
@@ -20810,7 +20810,7 @@
2081020810
]
2081120811
},
2081220812
"VaultCore": {
20813-
"address": "0x24203812AcB90c75860db158c637C286259059ba",
20813+
"address": "0xe5Aeb6fa44234a0648373F6711498E5A2E27B51d",
2081420814
"abi": [
2081520815
{
2081620816
"constant": true,

0 commit comments

Comments
 (0)