minor modifications

This commit is contained in:
Richa-iitr 2022-04-03 18:26:58 +05:30
parent 5f7449fd27
commit 775f062cf9
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,6 @@ import { TokenInterface, AccountInterface } from "../../../common/interfaces.sol
import { AaveInterface, AavePoolProviderInterface, AaveDataProviderInterface } from "./interface.sol";
import "./events.sol";
import "./interface.sol";
import "hardhat/console.sol";
abstract contract Helper is DSMath, Basic {
/**
@ -240,8 +239,6 @@ contract AaveHelpers is Helper {
bytes32[] memory s,
uint256[] memory expiry
) internal {
console.log("this");
console.log(address(this));
for(uint256 i = 0; i < tokens.length; i++) {
ATokenInterface aTokenContracts = ATokenInterface(tokens[i]);
aTokenContracts.permit(userAccount, address(this), uint(-1), expiry[i], v[i], r[i], s[i]);

View File

@ -478,12 +478,13 @@ describe("Import Aave", function () {
const amount0 = new BigNumber(await usdcToken.connect(wallet0).balanceOf(wallet.address));
const amountB = new BigNumber(amount0.toString()).multipliedBy(5).dividedBy(1e4);
const amountWithFee = amount0.plus(amountB);
console.log(amountWithFee);
const flashSpells = [
{
connector: "AAVE-V3-IMPORT-PERMIT-X",
method: "importAave",
args: [wallet.address, [[DAI], [USDC], false, [amountB]], [[v], [r], [s], [expiry]]]
args: [wallet.address, [[DAI], [USDC], false, [amountB.toFixed(0)]], [[v], [ethers.utils.hexlify(r)], [ethers.utils.hexlify(s)], [expiry]]]
},
{
connector: "INSTAPOOL-C",