From 94ac69910979d47e862716e0bf3584ec3a91ac11 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi <47134275+shriyatyagii@users.noreply.github.com> Date: Thu, 15 Feb 2024 04:53:54 +0530 Subject: [PATCH] Update contracts/mainnet/connectors/aave/v3/main.sol Co-authored-by: Thrilok kumar --- contracts/mainnet/connectors/aave/v3/main.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mainnet/connectors/aave/v3/main.sol b/contracts/mainnet/connectors/aave/v3/main.sol index afcf8a6b..9975c5ab 100644 --- a/contracts/mainnet/connectors/aave/v3/main.sol +++ b/contracts/mainnet/connectors/aave/v3/main.sol @@ -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);