Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
shriyatyagii committed Sep 19, 2023
1 parent ed0c40e commit e4431e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/mainnet/connectors/morpho-aave-v3/main.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e4431e8

Please sign in to comment.