diff --git a/contracts/polygon/connectors/aave/v3-import-permit/helpers.sol b/contracts/polygon/connectors/aave/v3-import-permit/helpers.sol index ce1ba6a9..b7eb7cd9 100644 --- a/contracts/polygon/connectors/aave/v3-import-permit/helpers.sol +++ b/contracts/polygon/connectors/aave/v3-import-permit/helpers.sol @@ -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]); diff --git a/test/polygon/aave/aaveV3-import-test.ts b/test/polygon/aave/aaveV3-import-test.ts index 4c762685..d9ddbf5c 100644 --- a/test/polygon/aave/aaveV3-import-test.ts +++ b/test/polygon/aave/aaveV3-import-test.ts @@ -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",