minor fixes in L1 settle

This commit is contained in:
Samyak Jain 2021-04-09 05:02:55 +05:30
parent cc2ccaa5ef
commit 148895b583

View File

@ -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,