mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
code fix
This commit is contained in:
parent
9a46bee94b
commit
d4a67f816f
|
|
@ -283,7 +283,7 @@ contract AaveHelpers is Helper {
|
||||||
0,
|
0,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
_tokens[_cntr] = _token;
|
_tokens[_cntr] = tokens[i];
|
||||||
_cntr++;
|
_cntr++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user