From f44879e625b666983cd91233b601c7cc7b1debbc Mon Sep 17 00:00:00 2001 From: Zer0dot Date: Thu, 18 Feb 2021 16:50:15 -0500 Subject: [PATCH] Fixed missing "waitForTx" --- tasks/full/3_oracles.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tasks/full/3_oracles.ts b/tasks/full/3_oracles.ts index 677681ec..67a8fbd7 100644 --- a/tasks/full/3_oracles.ts +++ b/tasks/full/3_oracles.ts @@ -48,23 +48,17 @@ task('full:deploy-oracles', 'Deploy oracles for dev enviroment') }; const [tokens, aggregators] = getPairsTokenAggregator(tokensToWatch, chainlinkAggregators); - // const aaveOracle = notFalsyOrZeroAddress(aaveOracleAddress) - // ? await getAaveOracle(aaveOracleAddress) - // : await deployAaveOracle( - // [tokens, aggregators, fallbackOracleAddress, await getWethAddress(poolConfig)], - // verify - // ); - let aaveOracle: AaveOracle; if (notFalsyOrZeroAddress(aaveOracleAddress)) { aaveOracle = await getAaveOracle(aaveOracleAddress); - await aaveOracle.setAssetSources(tokens, aggregators); + await waitForTx(await aaveOracle.setAssetSources(tokens, aggregators)); } else { aaveOracle = await deployAaveOracle( [tokens, aggregators, fallbackOracleAddress, await getWethAddress(poolConfig)], verify ); } + const lendingRateOracle = notFalsyOrZeroAddress(lendingRateOracleAddress) ? await getLendingRateOracle(lendingRateOracleAddress) : await deployLendingRateOracle(verify);