Update contracts/mainnet/connectors/aave/v3/main.sol

Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
Shriya Tyagi 2024-02-15 04:53:54 +05:30 committed by GitHub
parent eb053692e8
commit 94ac699109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,7 +366,7 @@ abstract contract AaveResolver is Events, Helpers {
rateMode,
onBehalfOf
);
_amt = _amtDSA <= _amtDebt ? _amtDSA : _amtDebt;
_amt = _amtDSA > _amtDebt ? _amtDebt : _amtDSA;
}
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);