From 148895b58380c8bc38503b6b1e8279e21d1b5ec4 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Fri, 9 Apr 2021 05:02:55 +0530 Subject: [PATCH] minor fixes in L1 settle --- contracts/senders/aave-v2-migrator/main.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/senders/aave-v2-migrator/main.sol b/contracts/senders/aave-v2-migrator/main.sol index 9440174..170fd7c 100644 --- a/contracts/senders/aave-v2-migrator/main.sol +++ b/contracts/senders/aave-v2-migrator/main.sol @@ -140,6 +140,10 @@ contract LiquidityResolver is Helpers, Events { } IERC20 _tokenContract = IERC20(_token); uint _tokenBal = _tokenContract.balanceOf(address(this)); + if (_tokenBal > 0) { + _tokenContract.approve(address(this), _tokenBal); + aave.deposit(_token, _tokenBal, address(this), 3288); + } ( uint supplyBal,, uint borrowBal,