dapphub / chai

ERC20 wrapper over the Dai Savings Rate
https://chai.money
GNU Affero General Public License v3.0
147 stars 26 forks source link

Mainnet deployment #5

Closed MrChico closed 4 years ago

MrChico commented 4 years ago

This is a mainnet deployment candidate with everything that can be made constant made constant. Contract address is predicted at 0x06af07097c9eeb7fd685c692751d5c66db49c215 as the next mainnet transaction from https://etherscan.io/address/0xc3455912cf4bf115835a655c70bcefc9cf4568eb

dapp address 0xc3455912cf4bf115835a655c70bcefc9cf4568eb $(seth nonce 0xc3455912cf4bf115835a655c70bcefc9cf4568eb)

From this, the DOMAIN_SEPARATOR can be calculated via the procedure demonstrated in the ./bin/domain_separator.sh script.

The MCD addresses were taken from https://github.com/makerdao/dss-deploy-scripts/commit/bad5e39ad7389a78e183234dc29bbdf00f88265a.

This breaks tests since addresses are different.

Leaning against not using the optimizer since it looks like savings are about 1%. Thoughts here?

livnev commented 4 years ago

👍 on not enabling the optimizer.