mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
feat: update
This commit is contained in:
parent
ed0c40eceb
commit
e4431e844c
|
@ -404,7 +404,7 @@ abstract contract MorphoAaveV3 is Helpers, Events {
|
||||||
if(_receiver == address(0)) _receiver == address(this);
|
if(_receiver == address(0)) _receiver == address(this);
|
||||||
|
|
||||||
// Morpho will internally handle max amount conversion by taking the minimum of amount or supplied collateral.
|
// 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);
|
if(_receiver == address(this)) convertWethToEth(_isEth, TokenInterface(_token), _withdrawn);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user