From 43da90b9893b005b6720b431f2ab3c72dc1fd194 Mon Sep 17 00:00:00 2001 From: The3D Date: Fri, 6 Nov 2020 15:19:09 +0100 Subject: [PATCH] Added Lending rate oracle --- config/commons.ts | 4 ++-- tasks/full/1_address_provider_registry.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/commons.ts b/config/commons.ts index e73e7fbb..41f737fa 100644 --- a/config/commons.ts +++ b/config/commons.ts @@ -163,7 +163,7 @@ export const CommonsConfig: ICommonConfiguration = { [eEthereumNetwork.coverage]: '', [eEthereumNetwork.hardhat]: '', [eEthereumNetwork.buidlerevm]: '', - [eEthereumNetwork.kovan]: '0xdcde9bb6a49e37fa433990832ab541ae2d4feb4a', + [eEthereumNetwork.kovan]: '0xdCde9Bb6a49e37fA433990832AB541AE2d4FEB4a', [eEthereumNetwork.ropsten]: '0x05dcca805a6562c1bdd0423768754acb6993241b', [eEthereumNetwork.main]: '0x4d728a4496e4de35f218d5a214366bde3a62b51c', }, @@ -307,7 +307,7 @@ export const CommonsConfig: ICommonConfiguration = { [eEthereumNetwork.coverage]: '', [eEthereumNetwork.hardhat]: '', [eEthereumNetwork.buidlerevm]: '', - [eEthereumNetwork.kovan]: '0x276C4793F2EE3D5Bf18C5b879529dD4270BA4814', + [eEthereumNetwork.kovan]: '0xB8bE51E6563BB312Cbb2aa26e352516c25c26ac1', [eEthereumNetwork.ropsten]: '', [eEthereumNetwork.main]: '', }, diff --git a/tasks/full/1_address_provider_registry.ts b/tasks/full/1_address_provider_registry.ts index a743d45e..b2d870c8 100644 --- a/tasks/full/1_address_provider_registry.ts +++ b/tasks/full/1_address_provider_registry.ts @@ -53,4 +53,12 @@ task( if (proxyProvider && proxyProvider !== '') { await waitForTx(await addressesProvider.setPriceOracle(proxyProvider)); } + + //register the lending rate oracle + const lendingRateOracle = getParamPerNetwork(poolConfig.LendingRateOracle, network); + + if (lendingRateOracle && lendingRateOracle !== '') { + await waitForTx(await addressesProvider.setLendingRateOracle(proxyProvider)); + } + });