Removed unused function parameter

This commit is contained in:
Thrilok Kumar 2021-04-16 04:28:59 +05:30
parent 019b54fc1a
commit e986095fce
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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();