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 }
|
aggregatorsAddresses: { [tokenSymbol: string]: tEthereumAddress }
|
||||||
): [string[], string[]] => {
|
): [string[], string[]] => {
|
||||||
const { ETH, USD, WETH, UniWETH, ...assetsAddressesWithoutEth } = allAssetsAddresses;
|
const { ETH, USD, WETH, UniWETH, ...assetsAddressesWithoutEth } = allAssetsAddresses;
|
||||||
|
|
||||||
const pairs = Object.entries(assetsAddressesWithoutEth).map(([tokenSymbol, tokenAddress]) => {
|
const pairs = Object.entries(assetsAddressesWithoutEth).map(([tokenSymbol, tokenAddress]) => {
|
||||||
//if (true/*tokenSymbol !== 'WETH' && tokenSymbol !== 'ETH' && tokenSymbol !== 'UniWETH'*/) {
|
//if (true/*tokenSymbol !== 'WETH' && tokenSymbol !== 'ETH' && tokenSymbol !== 'UniWETH'*/) {
|
||||||
const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex(
|
const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex(
|
||||||
|
|
|
||||||
|
|
@ -89,10 +89,6 @@ export const withSaveAndVerify = async <ContractType extends Contract>(
|
||||||
args: (string | string[])[],
|
args: (string | string[])[],
|
||||||
verify?: boolean
|
verify?: boolean
|
||||||
): Promise<ContractType> => {
|
): 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);
|
addGas(instance.deployTransaction.gasLimit);
|
||||||
console.log("Current totalGas value:", totalGas);
|
console.log("Current totalGas value:", totalGas);
|
||||||
console.log("Logged gas limit:", instance.deployTransaction.gasLimit);
|
console.log("Logged gas limit:", instance.deployTransaction.gasLimit);
|
||||||
|
|
|
||||||
|
|
@ -57,5 +57,5 @@ task('aave:mainnet', 'Deploy development enviroment')
|
||||||
}
|
}
|
||||||
console.log('\nFinished migrations');
|
console.log('\nFinished migrations');
|
||||||
printContracts();
|
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');
|
console.log('\nFinished migrations');
|
||||||
printContracts();
|
printContracts();
|
||||||
console.log("Total gas used:", totalGas);
|
console.log("Total gas used:", totalGas.toString());
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user