From a069f9569e0f27e23a619862399c0b1ddb6ede6e Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Sat, 15 Oct 2022 22:28:33 +0530 Subject: [PATCH] refactor isETH --- contracts/mainnet/connectors/morpho-compound/main.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contracts/mainnet/connectors/morpho-compound/main.sol b/contracts/mainnet/connectors/morpho-compound/main.sol index e302ee87..e41858c8 100644 --- a/contracts/mainnet/connectors/morpho-compound/main.sol +++ b/contracts/mainnet/connectors/morpho-compound/main.sol @@ -161,11 +161,9 @@ abstract contract MorphoCompound is Helpers, Events { { uint256 _amt = getUint(_getId, _amount); - bool _isETH = _tokenAddress == ethAddr; - MORPHO_COMPOUND.borrow(_poolTokenAddress, _amt); - if (_isETH) convertWethToEth(_isETH, TokenInterface(wethAddr), _amt); + convertWethToEth(_tokenAddress == ethAddr, TokenInterface(wethAddr), _amt); setUint(_setId, _amt);