mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated Matic deployment script
This commit is contained in:
parent
6508aa6127
commit
71127888a6
|
@ -179,12 +179,14 @@ export const getParamPerNetwork = <T>(param: iParamsPerNetwork<T>, network: eNet
|
|||
}
|
||||
};
|
||||
|
||||
export const getParamPerPool = <T>({ proto, amm }: iParamsPerPool<T>, pool: AavePools) => {
|
||||
export const getParamPerPool = <T>({ proto, amm, matic }: iParamsPerPool<T>, pool: AavePools) => {
|
||||
switch (pool) {
|
||||
case AavePools.proto:
|
||||
return proto;
|
||||
case AavePools.amm:
|
||||
return amm;
|
||||
case AavePools.matic:
|
||||
return matic;
|
||||
default:
|
||||
return proto;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ task('matic:mainnet', 'Deploy development enviroment')
|
|||
await DRE.run('full:deploy-address-provider', { pool: POOL_NAME });
|
||||
|
||||
console.log('2. Deploy lending pool');
|
||||
await DRE.run('full:deploy-lending-pool');
|
||||
await DRE.run('full:deploy-lending-pool', { pool: POOL_NAME});
|
||||
|
||||
console.log('3. Deploy oracles');
|
||||
await DRE.run('full:deploy-oracles', { pool: POOL_NAME });
|
||||
|
|
Loading…
Reference in New Issue
Block a user