From d53a75ccd63aeb40ce5565e681f6a66bc07b2cb4 Mon Sep 17 00:00:00 2001 From: Nicholas Addison Date: Wed, 2 Oct 2024 09:40:52 +1000 Subject: [PATCH] Simplified deposit to WETH --- src/contracts/LidoLiquidityManager.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contracts/LidoLiquidityManager.sol b/src/contracts/LidoLiquidityManager.sol index 5b27093..324a694 100644 --- a/src/contracts/LidoLiquidityManager.sol +++ b/src/contracts/LidoLiquidityManager.sol @@ -77,8 +77,7 @@ abstract contract LidoLiquidityManager is OwnableOperable { outstandingEther -= etherAfter - etherBefore; // Wrap all the received ETH to WETH. - (bool success,) = address(weth).call{value: etherAfter}(new bytes(0)); - require(success, "ARM: ETH transfer failed"); + weth.deposit{value: etherAfter}(); } function _externalWithdrawQueue() internal view virtual returns (uint256 assets) {