Skip to content

Commit d4e39f3

Browse files
committed
- Misc config updates.
- Added Mainnet deployed addresses. - Fixed testnet-deployment to use onlyProxy.
1 parent b6658e3 commit d4e39f3

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,17 @@ The Solidity code in this repository has undergone 2 traditional smart contracts
102102
- [Certik](audits/AaveTokenReport_CertiK.pdf)
103103
- [Certora](audits/AaveTokenVerification_by_Certora.pdf)
104104

105+
## Current Mainnet contracts (25/09/2020)
106+
107+
- **AaveToken proxy**: [0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9](https://etherscan.io/address/0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9)
108+
- **AaveToken implementation**: [0xea86074fdac85e6a605cd418668c63d2716cdfbc](https://etherscan.io/address/0xea86074fdac85e6a605cd418668c63d2716cdfbc)
109+
- **LendToAaveMigrator proxy**: [0x317625234562b1526ea2fac4030ea499c5291de4](https://etherscan.io/address/0x317625234562b1526ea2fac4030ea499c5291de4)
110+
- **LendToAaveMigrator implementation**: [0x86241b6c526998582556f7c0342d8863b604b17b](https://etherscan.io/address/0x86241b6c526998582556f7c0342d8863b604b17b)
111+
105112
## Credits
106113

107114
For the proxy-related contracts, we have used the implementation of our friend from [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-sdk/).
108115

109116
## License
110117

111-
The contents of this repository are under the AGPLv3 license.
118+
The contents of this repository are under the AGPLv3 license.

buidler.config.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,28 @@ usePlugin("solidity-coverage");
1919
});
2020

2121
const DEFAULT_BLOCK_GAS_LIMIT = 12500000;
22-
const DEFAULT_GAS_PRICE = 1;
22+
const DEFAULT_GAS_PRICE = 50000000000; // 50 gwei
2323
const HARDFORK = "istanbul";
2424
const INFURA_KEY = process.env.INFURA_KEY || "";
2525
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY || "";
2626
const MNEMONIC_PATH = "m/44'/60'/0'/0";
2727
const MNEMONICS: { [network: string]: string } = {
28-
[eEthereumNetwork.kovan]: process.env.MNEMONIC_KOVAN || "",
29-
[eEthereumNetwork.ropsten]: process.env.MNEMONIC_ROPSTEN || "",
30-
[eEthereumNetwork.main]: process.env.MNEMONIC_MAIN || "",
28+
[eEthereumNetwork.kovan]: process.env.MNEMONIC || "",
29+
[eEthereumNetwork.ropsten]: process.env.MNEMONIC || "",
30+
[eEthereumNetwork.main]: process.env.MNEMONIC || "",
3131
};
3232

3333
const getCommonNetworkConfig = (
3434
networkName: eEthereumNetwork,
3535
networkId: number
3636
) => {
3737
return {
38-
url: `https://${networkName}.infura.io/v3/${INFURA_KEY}`,
38+
url: `https://${
39+
networkName == "main" ? `${networkName}net` : networkName
40+
}.infura.io/v3/${INFURA_KEY}`,
3941
hardfork: HARDFORK,
4042
blockGasLimit: DEFAULT_BLOCK_GAS_LIMIT,
4143
gasPrice: 4000000000,
42-
gasMultiplier: DEFAULT_GAS_PRICE,
4344
chainId: networkId,
4445
accounts: {
4546
mnemonic: MNEMONICS[networkName],
@@ -75,7 +76,7 @@ const config: BuidlerConfig = {
7576
hardfork: "istanbul",
7677
blockGasLimit: DEFAULT_BLOCK_GAS_LIMIT,
7778
gas: DEFAULT_BLOCK_GAS_LIMIT,
78-
gasPrice: 8000000000,
79+
gasPrice: DEFAULT_GAS_PRICE,
7980
chainId: BUIDLEREVM_CHAINID,
8081
throwOnTransactionFailures: true,
8182
throwOnCallFailures: true,

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ services:
1010
- ganache
1111
volumes:
1212
- ./:/src
13+
environment:
14+
MNEMONIC: ${MNEMONIC}
15+
ETHERSCAN_KEY: ${ETHERSCAN_KEY}
16+
INFURA_KEY: ${INFURA_KEY}
17+
ETHERSCAN_NETWORK: ${ETHERSCAN_NETWORK}
1318

1419
ganache:
1520
image: trufflesuite/ganache-cli:latest

helpers/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export const getAaveAdminPerNetwork = (
3838
{
3939
[eEthereumNetwork.coverage]: ZERO_ADDRESS,
4040
[eEthereumNetwork.buidlerevm]: ZERO_ADDRESS,
41-
[eEthereumNetwork.kovan]: "0x374d0940dc9a980219e0aA6566C3067159d2F442",
41+
[eEthereumNetwork.kovan]: "0x6940B44a8eFBc625e1309d79F8dea34f155D4330",
4242
[eEthereumNetwork.ropsten]: "0xEd93e49A2d75beA505fD4D1A0Dff745f69F2E997",
43-
[eEthereumNetwork.main]: "0xda8ad436e1dfe962091d86a341e957c6a5168a9d",
43+
[eEthereumNetwork.main]: "0x8a2Efd9A790199F4c94c6effE210fce0B4724f52",
4444
},
4545
network
4646
);

tasks/migrations/testnet-deployment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ task("testnet-deployment", "Deployment in mainnet network")
4040

4141
await BRE.run(`initialize-${eContractid.AaveToken}`, {
4242
admin: aaveAdmin,
43-
onlyProxy: false,
43+
onlyProxy: true,
4444
});
4545

4646
await BRE.run(`initialize-${eContractid.LendToAaveMigrator}`, {
4747
admin: aaveAdmin,
48-
onlyProxy: false,
48+
onlyProxy: true,
4949
});
5050

5151
console.log(

0 commit comments

Comments
 (0)