mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fixed console messages
This commit is contained in:
parent
d864836ec5
commit
76031c878f
|
@ -799,7 +799,7 @@ export const initReserves = async (
|
||||||
stableRateSlope2,
|
stableRateSlope2,
|
||||||
},
|
},
|
||||||
] = (Object.entries(reservesParams) as [string, IReserveParams][])[reserveParamIndex];
|
] = (Object.entries(reservesParams) as [string, IReserveParams][])[reserveParamIndex];
|
||||||
console.log('deploy def reserve');
|
console.log('deploy the interest rate strategy for ', assetSymbol);
|
||||||
const rateStrategyContract = await deployDefaultReserveInterestRateStrategy(
|
const rateStrategyContract = await deployDefaultReserveInterestRateStrategy(
|
||||||
[
|
[
|
||||||
lendingPoolAddressesProvider.address,
|
lendingPoolAddressesProvider.address,
|
||||||
|
@ -812,7 +812,7 @@ export const initReserves = async (
|
||||||
verify
|
verify
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('deploy stable deb totken ', assetSymbol);
|
console.log('deploy the stable debt totken for ', assetSymbol);
|
||||||
const stableDebtToken = await deployStableDebtToken(
|
const stableDebtToken = await deployStableDebtToken(
|
||||||
[
|
[
|
||||||
`Aave stable debt bearing ${assetSymbol === 'WETH' ? 'ETH' : assetSymbol}`,
|
`Aave stable debt bearing ${assetSymbol === 'WETH' ? 'ETH' : assetSymbol}`,
|
||||||
|
@ -824,7 +824,7 @@ export const initReserves = async (
|
||||||
verify
|
verify
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('deploy var deb totken ', assetSymbol);
|
console.log('deploy the variable debt totken for ', assetSymbol);
|
||||||
const variableDebtToken = await deployVariableDebtToken(
|
const variableDebtToken = await deployVariableDebtToken(
|
||||||
[
|
[
|
||||||
`Aave variable debt bearing ${assetSymbol === 'WETH' ? 'ETH' : assetSymbol}`,
|
`Aave variable debt bearing ${assetSymbol === 'WETH' ? 'ETH' : assetSymbol}`,
|
||||||
|
@ -836,7 +836,7 @@ export const initReserves = async (
|
||||||
verify
|
verify
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('deploy a token ', assetSymbol);
|
console.log('deploy the aToken for ', assetSymbol);
|
||||||
const aToken = await deployGenericAToken(
|
const aToken = await deployGenericAToken(
|
||||||
[
|
[
|
||||||
lendingPool.address,
|
lendingPool.address,
|
||||||
|
@ -856,7 +856,7 @@ export const initReserves = async (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('init reserve currency ', assetSymbol);
|
console.log('initialize the reserve ', assetSymbol);
|
||||||
await waitForTx(
|
await waitForTx(
|
||||||
await lendingPoolConfigurator.initReserve(
|
await lendingPoolConfigurator.initReserve(
|
||||||
tokenAddress,
|
tokenAddress,
|
||||||
|
|
|
@ -30,6 +30,8 @@ export const enableReservesToBorrow = async (
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('Enabling borrowing on reserve ', assetSymbol);
|
||||||
|
|
||||||
await waitForTx(
|
await waitForTx(
|
||||||
await lendingPoolConfigurator.enableBorrowingOnReserve(
|
await lendingPoolConfigurator.enableBorrowingOnReserve(
|
||||||
tokenAddress,
|
tokenAddress,
|
||||||
|
@ -72,6 +74,8 @@ export const enableReservesAsCollateral = async (
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
console.log(`Enabling reserve ${assetSymbol} as collateral`);
|
||||||
|
|
||||||
await waitForTx(
|
await waitForTx(
|
||||||
await lendingPoolConfigurator.enableReserveAsCollateral(
|
await lendingPoolConfigurator.enableReserveAsCollateral(
|
||||||
tokenAddress,
|
tokenAddress,
|
||||||
|
|
|
@ -41,7 +41,7 @@ export const increaseTime = async (secondsToIncrease: number) => {
|
||||||
await BRE.ethers.provider.send('evm_mine', []);
|
await BRE.ethers.provider.send('evm_mine', []);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const waitForTx = async (tx: ContractTransaction) => await tx.wait();
|
export const waitForTx = async (tx: ContractTransaction) => await tx.wait(1);
|
||||||
|
|
||||||
export const filterMapBy = (raw: {[key: string]: any}, fn: (key: string) => boolean) =>
|
export const filterMapBy = (raw: {[key: string]: any}, fn: (key: string) => boolean) =>
|
||||||
Object.keys(raw)
|
Object.keys(raw)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user