From ed16a59387025be654841bf8f72bd0934090b509 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi <47134275+shriyatyagii@users.noreply.github.com> Date: Sat, 15 Oct 2022 05:26:44 +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 92f83b60..13baf6e2 100644 --- a/contracts/mainnet/connectors/morpho-compound/main.sol +++ b/contracts/mainnet/connectors/morpho-compound/main.sol @@ -337,7 +337,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(morphoCompound), _amt);