mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Slight fixed for fork deployment
This commit is contained in:
parent
0d94e8fa66
commit
f8d8f40232
|
@ -1,7 +1,7 @@
|
|||
import { task } from 'hardhat/config';
|
||||
import { AaveConfig } from '../../markets/aave/index';
|
||||
import { getParamPerNetwork } from '../../helpers/contracts-helpers';
|
||||
import { loadPoolConfig, ConfigNames } from '../../helpers/configuration';
|
||||
import { loadPoolConfig, ConfigNames, getWethAddress } from '../../helpers/configuration';
|
||||
import { deployWETHGateway } from '../../helpers/contracts-deployments';
|
||||
import { DRE } from '../../helpers/misc-utils';
|
||||
import { eEthereumNetwork } from '../../helpers/types';
|
||||
|
@ -14,8 +14,8 @@ task(`full-deploy-weth-gateway`, `Deploys the ${CONTRACT_NAME} contract`)
|
|||
.setAction(async ({ verify, pool }, localBRE) => {
|
||||
await localBRE.run('set-DRE');
|
||||
const network = <eEthereumNetwork>localBRE.network.name;
|
||||
const Weth = AaveConfig.ReserveAssets[DRE.network.name].WETH;
|
||||
const poolConfig = loadPoolConfig(pool);
|
||||
const Weth = await getWethAddress(poolConfig);
|
||||
const { WethGateway } = poolConfig;
|
||||
|
||||
if (!localBRE.network.config.chainId) {
|
||||
|
|
|
@ -29,7 +29,7 @@ task('aave:mainnet', 'Deploy development enviroment')
|
|||
console.log('4. Deploy Data Provider');
|
||||
await DRE.run('full:data-provider', { pool: POOL_NAME });
|
||||
|
||||
console.log('5. Deploy weth Gethway provider');
|
||||
console.log('5. Deploy WETH Gateway');
|
||||
await DRE.run('full-deploy-weth-gateway', { pool: POOL_NAME });
|
||||
|
||||
console.log('6. Initialize lending pool');
|
||||
|
|
|
@ -29,15 +29,18 @@ task('lp:mainnet', 'Deploy development enviroment')
|
|||
console.log('4. Deploy Data Provider');
|
||||
await DRE.run('full:data-provider', { pool: POOL_NAME });
|
||||
|
||||
console.log('5. Initialize lending pool');
|
||||
console.log('5. Deploy WETH Gateway');
|
||||
await DRE.run('full-deploy-weth-gateway', { pool: POOL_NAME });
|
||||
|
||||
console.log('6. Initialize lending pool');
|
||||
await DRE.run('full:initialize-lending-pool', { pool: POOL_NAME });
|
||||
|
||||
if (verify) {
|
||||
printContracts();
|
||||
console.log('4. Veryfing contracts');
|
||||
console.log('7. Veryfing contracts');
|
||||
await DRE.run('verify:general', { all: true, pool: POOL_NAME });
|
||||
|
||||
console.log('5. Veryfing aTokens and debtTokens');
|
||||
console.log('8. Veryfing aTokens and debtTokens');
|
||||
await DRE.run('verify:tokens', { pool: POOL_NAME });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user