L2 settle function update

This commit is contained in:
Samyak Jain 2021-04-09 05:18:56 +05:30
parent 4158bce7d4
commit 272868a9d6

View File

@ -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++) {