mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
Removed unused function parameter
This commit is contained in:
parent
019b54fc1a
commit
e986095fce
|
@ -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];
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user