removed if condition for _isETH

This commit is contained in:
Thrilok kumar 2022-10-15 22:28:02 +05:30 committed by GitHub
parent f6db02d83a
commit 32754bea19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ abstract contract MorphoCompound is Helpers, Events {
_amt = _amtDSA < _amtDebt ? _amtDSA : _amtDebt; _amt = _amtDSA < _amtDebt ? _amtDSA : _amtDebt;
} }
if (_isETH) convertEthToWeth(_isETH, _tokenContract, _amt); convertEthToWeth(_isETH, _tokenContract, _amt);
approve(_tokenContract, address(MORPHO_COMPOUND), _amt); approve(_tokenContract, address(MORPHO_COMPOUND), _amt);