This commit is contained in:
Richa-iitr 2022-06-02 11:05:11 +05:30
parent 9a46bee94b
commit d4a67f816f
2 changed files with 1 additions and 4 deletions

View File

@ -283,7 +283,7 @@ contract AaveHelpers is Helper {
0, 0,
0 0
); );
_tokens[_cntr] = _token; _tokens[_cntr] = tokens[i];
_cntr++; _cntr++;
} }
} }

View File

@ -357,12 +357,10 @@ describe("Import Aave v3 Position", function () {
expect(await aDai.connect(walletBsigner).balanceOf(dsaWallet2.address)).to.be.gte( expect(await aDai.connect(walletBsigner).balanceOf(dsaWallet2.address)).to.be.gte(
new BigNumber(10).multipliedBy(1e18).toString() new BigNumber(10).multipliedBy(1e18).toString()
); );
console.log((await aDai.connect(walletBsigner).balanceOf(dsaWallet2.address)).toString());
expect(await usdcToken.connect(walletBsigner).balanceOf(dsaWallet2.address)).to.be.gte( expect(await usdcToken.connect(walletBsigner).balanceOf(dsaWallet2.address)).to.be.gte(
new BigNumber(3).multipliedBy(1e6).toString() new BigNumber(3).multipliedBy(1e6).toString()
); );
console.log((await usdcToken.connect(walletBsigner).balanceOf(dsaWallet2.address)).toString());
}); });
}); });
@ -414,7 +412,6 @@ describe("Import Aave v3 Position", function () {
const amount0 = new BigNumber(await usdcToken.connect(walletBsigner).balanceOf(dsaWallet2.address)); const amount0 = new BigNumber(await usdcToken.connect(walletBsigner).balanceOf(dsaWallet2.address));
const amountB = new BigNumber(amount0.toString()).multipliedBy(5).dividedBy(1e4); const amountB = new BigNumber(amount0.toString()).multipliedBy(5).dividedBy(1e4);
const amountWithFee = amount0.plus(amountB); const amountWithFee = amount0.plus(amountB);
console.log(amountWithFee.toString());
const flashSpells = [ const flashSpells = [
{ {