From 305ae2a2cb2fe2866e9f9c363dea57e6850c4ffd Mon Sep 17 00:00:00 2001 From: David Racero Date: Thu, 3 Jun 2021 12:54:46 +0200 Subject: [PATCH] feat: Added Tenderly addresses. Minor print fix at oracles task. Add AaveOracleV2 to eContractId enum --- helpers/contracts-deployments.ts | 2 +- helpers/types.ts | 1 + markets/usd-amm/index.ts | 12 ++++++------ tasks/full/3_oracles.ts | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/helpers/contracts-deployments.ts b/helpers/contracts-deployments.ts index e7122ac9..925b4828 100644 --- a/helpers/contracts-deployments.ts +++ b/helpers/contracts-deployments.ts @@ -242,7 +242,7 @@ export const deployAaveOracleV2 = async ( ) => withSaveAndVerify( await new AaveOracleV2Factory(await getFirstSigner()).deploy(...args), - eContractid.AaveOracle, + eContractid.AaveOracleV2, args, verify ); diff --git a/helpers/types.ts b/helpers/types.ts index d9e00d21..b2f0df72 100644 --- a/helpers/types.ts +++ b/helpers/types.ts @@ -91,6 +91,7 @@ export enum eContractid { RewardsATokenMock = 'RewardsATokenMock', RewardsToken = 'RewardsToken', CurveRewardsAwareAToken = 'CurveRewardsAwareAToken', + AaveOracleV2 = 'AaveOracleV2', } /* diff --git a/markets/usd-amm/index.ts b/markets/usd-amm/index.ts index 05f6164a..6ea99bcf 100644 --- a/markets/usd-amm/index.ts +++ b/markets/usd-amm/index.ts @@ -151,8 +151,8 @@ export const AmmConfig: IUsdAmmConfiguration = { [eEthereumNetwork.buidlerevm]: '', [eEthereumNetwork.kovan]: '0x8fb777d67e9945e2c01936e319057f9d41d559e6', // Need to re-deploy because of onlyOwner [eEthereumNetwork.ropsten]: ZERO_ADDRESS, - [eEthereumNetwork.main]: '0x35ec8Af921Fd99aA2370D329AF2Ef6605469012c', - [eEthereumNetwork.tenderlyMain]: '0x35ec8Af921Fd99aA2370D329AF2Ef6605469012c', + [eEthereumNetwork.main]: ZERO_ADDRESS, + [eEthereumNetwork.tenderlyMain]: ZERO_ADDRESS, }, FallbackOracle: { [eEthereumNetwork.coverage]: '', @@ -174,16 +174,16 @@ export const AmmConfig: IUsdAmmConfiguration = { SUSD: '0xad35Bd71b9aFE6e4bDc266B345c198eaDEf9Ad94', USDC: '0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6', USDT: '0x3E7d1eAB13ad0104d2750B8863b489D65364e32D', - a3CRVGauge: ZERO_ADDRESS, - saCRVGauge: ZERO_ADDRESS, + a3CRVGauge: '0x602df949e38335714E135ce94180255Dae79a659', // Oracle deployed at fork + saCRVGauge: '0x61B9302Ad4534D44D993764CB569a56A6d8dE25f', // Oracle deployed at fork }, [eEthereumNetwork.tenderlyMain]: { DAI: '0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9', SUSD: '0xad35Bd71b9aFE6e4bDc266B345c198eaDEf9Ad94', USDC: '0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6', USDT: '0x3E7d1eAB13ad0104d2750B8863b489D65364e32D', - a3CRVGauge: ZERO_ADDRESS, - saCRVGauge: ZERO_ADDRESS, + a3CRVGauge: '0x602df949e38335714E135ce94180255Dae79a659', // Oracle deployed at fork + saCRVGauge: '0x61B9302Ad4534D44D993764CB569a56A6d8dE25f', // Oracle deployed at fork }, }, ATokenDomainSeparator: { diff --git a/tasks/full/3_oracles.ts b/tasks/full/3_oracles.ts index a4f3f5c8..771701b4 100644 --- a/tasks/full/3_oracles.ts +++ b/tasks/full/3_oracles.ts @@ -85,7 +85,7 @@ task('full:deploy-oracles', 'Deploy oracles for dev enviroment') ); } - console.log('Aave Oracle: %s', lendingRateOracle.address); + console.log('Aave Oracle: %s', aaveOracle.address); console.log('Lending Rate Oracle: %s', lendingRateOracle.address); // Register the proxy price provider on the addressesProvider