mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor modifications
This commit is contained in:
parent
5f7449fd27
commit
775f062cf9
|
@ -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]);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user