fix: fixed test

This commit is contained in:
Hadrien Charlanes 2021-06-10 19:06:02 +02:00
parent a6b71313e1
commit ce6a07be62

View File

@ -50,7 +50,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
}); });
it('Takes WETH flash loan with mode = 0, returns the funds correctly', async () => { it('Takes WETH flash loan with mode = 0, returns the funds correctly', async () => {
const { pool, helpersContract, weth } = testEnv; const { pool, helpersContract, weth, aWETH } = testEnv;
const flashBorrowedAmount = ethers.utils.parseEther('0.8'); const flashBorrowedAmount = ethers.utils.parseEther('0.8');
const fees = new BigNumber(flashBorrowedAmount.mul(9).div(10000).toString()); const fees = new BigNumber(flashBorrowedAmount.mul(9).div(10000).toString());
@ -117,7 +117,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
'0' '0'
); );
await pool.mintToTreasury([weth.address]); await pool.mintToTreasury([aave.address]);
ethers.utils.parseUnits('10000'); ethers.utils.parseUnits('10000');