From 32754bea19ccf1d2359a1f1ff7ff060bd7fa0f67 Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Sat, 15 Oct 2022 22:28:02 +0530 Subject: [PATCH] removed if condition for `_isETH` --- contracts/mainnet/connectors/morpho-compound/main.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mainnet/connectors/morpho-compound/main.sol b/contracts/mainnet/connectors/morpho-compound/main.sol index 171ab731..e302ee87 100644 --- a/contracts/mainnet/connectors/morpho-compound/main.sol +++ b/contracts/mainnet/connectors/morpho-compound/main.sol @@ -364,7 +364,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);