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
eb38932cc2
commit
ccb6e36760
|
@ -72,7 +72,6 @@ export const deployLendingPoolAddressesProvider = async (marketId: string, verif
|
||||||
[marketId],
|
[marketId],
|
||||||
verify
|
verify
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
export const deployLendingPoolAddressesProviderRegistry = async (verify?: boolean) =>
|
export const deployLendingPoolAddressesProviderRegistry = async (verify?: boolean) =>
|
||||||
withSaveAndVerify(
|
withSaveAndVerify(
|
||||||
|
|
|
@ -19,7 +19,6 @@ import { verifyContract } from './etherscan-verification';
|
||||||
import { getIErc20Detailed, getFirstSigner } from './contracts-getters';
|
import { getIErc20Detailed, getFirstSigner } from './contracts-getters';
|
||||||
import { addGas, totalGas } from '../gas-tracker';
|
import { addGas, totalGas } from '../gas-tracker';
|
||||||
|
|
||||||
|
|
||||||
export type MockTokenMap = { [symbol: string]: MintableERC20 };
|
export type MockTokenMap = { [symbol: string]: MintableERC20 };
|
||||||
|
|
||||||
export const registerContractInJsonDb = async (contractId: string, contractInstance: Contract) => {
|
export const registerContractInJsonDb = async (contractId: string, contractInstance: Contract) => {
|
||||||
|
@ -96,7 +95,7 @@ export const withSaveAndVerify = async <ContractType extends Contract>(
|
||||||
// console.log("TEST:", gasCost.toString());
|
// 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);
|
||||||
await waitForTx(instance.deployTransaction);
|
await waitForTx(instance.deployTransaction);
|
||||||
await registerContractInJsonDb(id, instance);
|
await registerContractInJsonDb(id, instance);
|
||||||
if (DRE.network.name.includes('tenderly')) {
|
if (DRE.network.name.includes('tenderly')) {
|
||||||
|
|
|
@ -277,8 +277,6 @@ export enum TokenContractId {
|
||||||
YFI = 'YFI',
|
YFI = 'YFI',
|
||||||
UNI = 'UNI',
|
UNI = 'UNI',
|
||||||
ENJ = 'ENJ',
|
ENJ = 'ENJ',
|
||||||
WETHDAI = 'WETHDAI',
|
|
||||||
WETHWBTC = 'WETHWBTC',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
|
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user