mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Fix aave v2 payback
This commit is contained in:
parent
d78bc8f8be
commit
70e3bc6348
|
@ -926,7 +926,9 @@ contract AaveV2Helpers is AaveV1Helpers {
|
|||
|
||||
_amt = amt == uint(-1) ? getPaybackBalanceV2(aaveData, _token, rateMode) : amt;
|
||||
|
||||
convertEthToWeth(isEth, tokenContract, amt);
|
||||
convertEthToWeth(isEth, tokenContract, _amt);
|
||||
|
||||
tokenContract.approve(address(aave), _amt);
|
||||
|
||||
aave.repay(_token, _amt, rateMode, address(this));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user