From ef9e32f13b7f896fcfa226d4421a490c66af13e6 Mon Sep 17 00:00:00 2001 From: David Racero Date: Fri, 6 Nov 2020 12:14:41 +0100 Subject: [PATCH] Fix typos --- helpers/configuration.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/helpers/configuration.ts b/helpers/configuration.ts index 390739c4..62e7282f 100644 --- a/helpers/configuration.ts +++ b/helpers/configuration.ts @@ -7,13 +7,12 @@ import { ICommonConfiguration, eEthereumNetwork, } from './types'; - import {getParamPerPool} from './contracts-helpers'; import {AaveConfig} from '../config/aave'; import {UniswapConfig} from '../config/uniswap'; import {CommonsConfig} from '../config/commons'; import {ZERO_ADDRESS} from './constants'; -import {DRE} from './misc-utils'; +import {BRE} from './misc-utils'; import {tEthereumAddress} from './types'; import {getParamPerNetwork} from './contracts-helpers'; import {deployWETHMocked} from './contracts-deployments'; @@ -58,7 +57,7 @@ export const getFeeDistributionParamsCommon = ( receiver: tEthereumAddress ): iBasicDistributionParams => { const receivers = [receiver, ZERO_ADDRESS]; - const percentages = ['200:0', '8000']; + const percentages = ['2000', '8000']; return { receivers, percentages, @@ -66,26 +65,26 @@ export const getFeeDistributionParamsCommon = ( }; export const getGenesisPoolAdmin = async (config: ICommonConfiguration) => { - const currentNetwork = DRE.network.name; + const currentNetwork = BRE.network.name; const targetAddress = getParamPerNetwork(config.PoolAdmin, currentNetwork); if (targetAddress) { return targetAddress; } const addressList = await Promise.all( - (await DRE.ethers.getSigners()).map((signer) => signer.getAddress()) + (await BRE.ethers.getSigners()).map((signer) => signer.getAddress()) ); const addressIndex = config.PoolAdminIndex; return addressList[addressIndex]; }; export const getEmergencyAdmin = async (config: ICommonConfiguration) => { - const currentNetwork = DRE.network.name; + const currentNetwork = BRE.network.name; const targetAddress = getParamPerNetwork(config.EmergencyAdmin, currentNetwork); if (targetAddress) { return targetAddress; } const addressList = await Promise.all( - (await DRE.ethers.getSigners()).map((signer) => signer.getAddress()) + (await BRE.ethers.getSigners()).map((signer) => signer.getAddress()) ); const addressIndex = config.EmergencyAdminIndex; return addressList[addressIndex]; @@ -97,16 +96,14 @@ export const getATokenDomainSeparatorPerNetwork = ( ): tEthereumAddress => getParamPerNetwork(config.ATokenDomainSeparator, network); export const getWethAddress = async (config: ICommonConfiguration) => { - const currentNetwork = DRE.network.name; + const currentNetwork = BRE.network.name; const wethAddress = getParamPerNetwork(config.WETH, currentNetwork); if (wethAddress) { - console.log('here', wethAddress); return wethAddress; } if (currentNetwork.includes('main')) { throw new Error('WETH not set at mainnet configuration.'); } const weth = await deployWETHMocked(); - console.log('here2'); return weth.address; };