Slight cleanup

This commit is contained in:
Zer0dot 2021-01-14 20:59:14 -05:00
parent b2123e914c
commit ed17b5a037
4 changed files with 3 additions and 7 deletions

View File

@ -169,7 +169,7 @@ export const getPairsTokenAggregator = (
aggregatorsAddresses: { [tokenSymbol: string]: tEthereumAddress }
): [string[], string[]] => {
const { ETH, USD, WETH, UniWETH, ...assetsAddressesWithoutEth } = allAssetsAddresses;
const pairs = Object.entries(assetsAddressesWithoutEth).map(([tokenSymbol, tokenAddress]) => {
//if (true/*tokenSymbol !== 'WETH' && tokenSymbol !== 'ETH' && tokenSymbol !== 'UniWETH'*/) {
const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex(

View File

@ -89,10 +89,6 @@ export const withSaveAndVerify = async <ContractType extends Contract>(
args: (string | string[])[],
verify?: boolean
): Promise<ContractType> => {
// const signer = await getFirstSigner();
// const factory = ethers.ContractFactory.fromSolidity(instance);
// const gasCost = await signer.estimateGas(await factory.getDeployTransaction());
// console.log("TEST:", gasCost.toString());
addGas(instance.deployTransaction.gasLimit);
console.log("Current totalGas value:", totalGas);
console.log("Logged gas limit:", instance.deployTransaction.gasLimit);

View File

@ -57,5 +57,5 @@ task('aave:mainnet', 'Deploy development enviroment')
}
console.log('\nFinished migrations');
printContracts();
console.log("Total gas used:", totalGas);
console.log("Total gas used:", totalGas.toString());
});

View File

@ -59,5 +59,5 @@ task('uniswap:mainnet', 'Deploy development enviroment')
}
console.log('\nFinished migrations');
printContracts();
console.log("Total gas used:", totalGas);
console.log("Total gas used:", totalGas.toString());
});