From e986095fce47bda41044a82e5e6e33f7b8f897e6 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Fri, 16 Apr 2021 04:28:59 +0530 Subject: [PATCH] Removed unused function parameter --- contracts/receivers/aave-v2-receiver/helpers.sol | 2 +- contracts/receivers/aave-v2-receiver/main.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/receivers/aave-v2-receiver/helpers.sol b/contracts/receivers/aave-v2-receiver/helpers.sol index 259e174..fe7e82b 100644 --- a/contracts/receivers/aave-v2-receiver/helpers.sol +++ b/contracts/receivers/aave-v2-receiver/helpers.sol @@ -93,7 +93,7 @@ abstract contract Helpers is Stores, DSMath, Variables { } } - function borrowAndTransferSpells(AaveInterface aave, address dsa, address[] memory supplyTokens, address[] memory borrowTokens, uint[] memory borrowAmts) internal { + function borrowAndTransferSpells(address dsa, address[] memory supplyTokens, address[] memory borrowTokens, uint[] memory borrowAmts) internal { for (uint i = 0; i < borrowTokens.length; i++) { SpellHelperData memory data; data.token = borrowTokens[i] == maticAddr ? wmaticAddr : borrowTokens[i]; diff --git a/contracts/receivers/aave-v2-receiver/main.sol b/contracts/receivers/aave-v2-receiver/main.sol index 2b3d629..a672253 100644 --- a/contracts/receivers/aave-v2-receiver/main.sol +++ b/contracts/receivers/aave-v2-receiver/main.sol @@ -104,7 +104,7 @@ contract AaveV2Migrator is MigrateResolver { transferAtokens(aave, dsa, supplyTokens, supplyAmts); // Have to borrow from user's account & transfer - borrowAndTransferSpells(aave, dsa, supplyTokens, borrowTokens, borrowAmts); + borrowAndTransferSpells(dsa, supplyTokens, borrowTokens, borrowAmts); isPositionSafe();