mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
Fixed spells length bug
This commit is contained in:
parent
f145687cc9
commit
009305e423
|
@ -135,8 +135,8 @@ abstract contract Helpers is Stores, DSMath, Variables {
|
|||
}
|
||||
}
|
||||
|
||||
targets[spellsAmt] = "BASIC-A"; // TODO: right spell?
|
||||
castData[spellsAmt] = abi.encodeWithSignature("withdraw(address,uint256,address,uint256,uint256)", data.atoken, data.borrowAmt, address(this), 0, 0); // encode the data of atoken withdrawal
|
||||
targets[spellsAmt - 1] = "BASIC-A"; // TODO: right spell?
|
||||
castData[spellsAmt - 1] = abi.encodeWithSignature("withdraw(address,uint256,address,uint256,uint256)", data.atoken, data.borrowAmt, address(this), 0, 0); // encode the data of atoken withdrawal
|
||||
AccountInterface(dsa).castMigrate(targets, castData, address(this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user