From fa00586039a823fddf65ea2586a925d46b670bab Mon Sep 17 00:00:00 2001 From: Shriya Tyagi <47134275+shriyatyagii@users.noreply.github.com> Date: Sat, 15 Oct 2022 05:25:54 +0400 Subject: [PATCH] Update contracts/mainnet/connectors/morpho-compound/main.sol Co-authored-by: Romain Milon --- 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 66845a89..58aa1d37 100644 --- a/contracts/mainnet/connectors/morpho-compound/main.sol +++ b/contracts/mainnet/connectors/morpho-compound/main.sol @@ -151,7 +151,7 @@ abstract contract MorphoCompound is Helpers, Events { : _tokenContract.balanceOf(address(this)); } - if (_isETH) convertEthToWeth(_isETH, _tokenContract, _amt); + convertEthToWeth(_isETH, _tokenContract, _amt); approve(_tokenContract, address(morphoCompound), _amt); morphoCompound.supply(_poolTokenAddress, _onBehalf, _amt);