refactor isETH condition

This commit is contained in:
Thrilok kumar 2022-10-15 22:29:00 +05:30 committed by GitHub
parent a069f9569e
commit c27367aea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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