diff --git a/helpers/contracts-helpers.ts b/helpers/contracts-helpers.ts index eb087500..d7e50664 100644 --- a/helpers/contracts-helpers.ts +++ b/helpers/contracts-helpers.ts @@ -179,12 +179,14 @@ export const getParamPerNetwork = (param: iParamsPerNetwork, network: eNet } }; -export const getParamPerPool = ({ proto, amm }: iParamsPerPool, pool: AavePools) => { +export const getParamPerPool = ({ proto, amm, matic }: iParamsPerPool, pool: AavePools) => { switch (pool) { case AavePools.proto: return proto; case AavePools.amm: return amm; + case AavePools.matic: + return matic; default: return proto; } diff --git a/tasks/migrations/matic.mainnet.ts b/tasks/migrations/matic.mainnet.ts index 0c8efe3c..970fbfc9 100644 --- a/tasks/migrations/matic.mainnet.ts +++ b/tasks/migrations/matic.mainnet.ts @@ -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 });