mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Slight cleanup
This commit is contained in:
parent
b2123e914c
commit
ed17b5a037
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
});
|
||||
|
|
|
@ -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());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user