Skip to content

Commit

Permalink
Simplified deposit to WETH
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Oct 1, 2024
1 parent 39086af commit d53a75c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/contracts/LidoLiquidityManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d53a75c

Please sign in to comment.