mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
minor fixes in L1 settle
This commit is contained in:
parent
cc2ccaa5ef
commit
148895b583
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user