mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
L2 settle function update
This commit is contained in:
parent
4158bce7d4
commit
272868a9d6
|
@ -107,11 +107,6 @@ contract MigrateResolver is Helpers, Events {
|
|||
emit LogWithdraw(msg.sender, tokens, _amts);
|
||||
}
|
||||
|
||||
// TODO: @mubaris Things to factor
|
||||
// If there is same token supply and borrow, then close the smaller one
|
||||
// If there is ideal token (other than flashAmt) then payback or deposit according to the position
|
||||
// Keep flashAmt tokens as ideal
|
||||
// Object is the decrease the ratio and pay as less interest
|
||||
function settle() external {
|
||||
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
|
||||
for (uint i = 0; i < supportedTokens.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user