diff --git a/helpers/contracts-getters.ts b/helpers/contracts-getters.ts index c1f7c4a4..f1b847da 100644 --- a/helpers/contracts-getters.ts +++ b/helpers/contracts-getters.ts @@ -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( diff --git a/helpers/contracts-helpers.ts b/helpers/contracts-helpers.ts index 702e54ad..4b6a2830 100644 --- a/helpers/contracts-helpers.ts +++ b/helpers/contracts-helpers.ts @@ -89,10 +89,6 @@ export const withSaveAndVerify = async ( args: (string | string[])[], verify?: boolean ): Promise => { - // 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); diff --git a/tasks/migrations/aave.mainnet.ts b/tasks/migrations/aave.mainnet.ts index deba3b04..7ee32855 100644 --- a/tasks/migrations/aave.mainnet.ts +++ b/tasks/migrations/aave.mainnet.ts @@ -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()); }); diff --git a/tasks/migrations/uniswap.mainnet.ts b/tasks/migrations/uniswap.mainnet.ts index 5657f6eb..ab795d23 100644 --- a/tasks/migrations/uniswap.mainnet.ts +++ b/tasks/migrations/uniswap.mainnet.ts @@ -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()); });