minor bug fix

This commit is contained in:
Samyak Jain 2021-04-09 04:35:41 +05:30
parent 1a85a15551
commit cc2ccaa5ef

View File

@ -153,7 +153,7 @@ contract LiquidityResolver is Helpers, Events {
aave.repay(_token, borrowBal, 2, address(this)); aave.repay(_token, borrowBal, 2, address(this));
} else { } else {
aave.withdraw(_token, supplyBal, address(this)); // TODO: fail because of not enough withdrawing capacity? aave.withdraw(_token, supplyBal, address(this)); // TODO: fail because of not enough withdrawing capacity?
IERC20(_token).approve(address(aave), borrowBal); IERC20(_token).approve(address(aave), supplyBal);
aave.repay(_token, supplyBal, 2, address(this)); aave.repay(_token, supplyBal, 2, address(this));
} }
} }