From e4431e844c475378692141555cee16b683950645 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Tue, 19 Sep 2023 19:57:37 +0530 Subject: [PATCH] feat: update --- contracts/mainnet/connectors/morpho-aave-v3/main.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mainnet/connectors/morpho-aave-v3/main.sol b/contracts/mainnet/connectors/morpho-aave-v3/main.sol index 65fdbd13..2ae8fcf8 100644 --- a/contracts/mainnet/connectors/morpho-aave-v3/main.sol +++ b/contracts/mainnet/connectors/morpho-aave-v3/main.sol @@ -404,7 +404,7 @@ abstract contract MorphoAaveV3 is Helpers, Events { if(_receiver == address(0)) _receiver == address(this); // Morpho will internally handle max amount conversion by taking the minimum of amount or supplied collateral. - uint256 _withdrawn = MORPHO_AAVE_V3.withdraw(_token, _amt, address(this), address(this), _maxIteration); + uint256 _withdrawn = MORPHO_AAVE_V3.withdraw(_token, _amt, address(this), _receiver, _maxIteration); if(_receiver == address(this)) convertWethToEth(_isEth, TokenInterface(_token), _withdrawn);