From 2117e2ca622e59d9432b8f763e50994497ca8706 Mon Sep 17 00:00:00 2001 From: David Racero Date: Mon, 10 May 2021 15:53:01 +0200 Subject: [PATCH] misc: remove logs --- contracts/protocol/lendingpool/LendingPoolConfigurator.sol | 6 ------ helpers/oracles-helpers.ts | 3 --- 2 files changed, 9 deletions(-) diff --git a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol index f1306484..e41531a1 100644 --- a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol +++ b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol @@ -18,7 +18,6 @@ import {IInitializableDebtToken} from '../../interfaces/IInitializableDebtToken. import {IInitializableAToken} from '../../interfaces/IInitializableAToken.sol'; import {IAaveIncentivesController} from '../../interfaces/IAaveIncentivesController.sol'; import {ILendingPoolConfigurator} from '../../interfaces/ILendingPoolConfigurator.sol'; -import 'hardhat/console.sol'; /** * @title LendingPoolConfigurator contract @@ -62,7 +61,6 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur * @dev Initializes reserves in batch **/ function batchInitReserve(InitReserveInput[] calldata input) external onlyPoolAdmin { - console.log('batch init'); ILendingPool cachedPool = pool; for (uint256 i = 0; i < input.length; i++) { _initReserve(cachedPool, input[i]); @@ -70,7 +68,6 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur } function _initReserve(ILendingPool pool, InitReserveInput calldata input) internal { - console.log('0'); address aTokenProxyAddress = _initTokenWithProxy( input.aTokenImpl, @@ -116,7 +113,6 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur input.params ) ); - console.log('1'); pool.initReserve( input.underlyingAsset, aTokenProxyAddress, @@ -124,7 +120,6 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur variableDebtTokenProxyAddress, input.interestRateStrategyAddress ); - console.log('2'); DataTypes.ReserveConfigurationMap memory currentConfig = pool.getConfiguration(input.underlyingAsset); @@ -136,7 +131,6 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur pool.setConfiguration(input.underlyingAsset, currentConfig.data); - console.log('3'); emit ReserveInitialized( input.underlyingAsset, aTokenProxyAddress, diff --git a/helpers/oracles-helpers.ts b/helpers/oracles-helpers.ts index 6ec8827a..9fd2ba44 100644 --- a/helpers/oracles-helpers.ts +++ b/helpers/oracles-helpers.ts @@ -72,9 +72,6 @@ export const setInitialAssetPricesInOracle = async ( priceOracleInstance: PriceOracle ) => { for (const [assetSymbol, price] of Object.entries(prices) as [string, string][]) { - - console.log("Trying for ", assetsAddresses, assetSymbol); - const assetAddressIndex = Object.keys(assetsAddresses).findIndex( (value) => value === assetSymbol );