From 272868a9d69fc79dd66df38a3ce16c8d7b41b2b5 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Fri, 9 Apr 2021 05:18:56 +0530 Subject: [PATCH] L2 settle function update --- contracts/receivers/aave-v2-receiver/main.sol | 5 ----- 1 file changed, 5 deletions(-) diff --git a/contracts/receivers/aave-v2-receiver/main.sol b/contracts/receivers/aave-v2-receiver/main.sol index c7335df..b10fb98 100644 --- a/contracts/receivers/aave-v2-receiver/main.sol +++ b/contracts/receivers/aave-v2-receiver/main.sol @@ -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++) {