From 0273f5827462f6f6cadb5b7e78ae7c1d0bfd2e29 Mon Sep 17 00:00:00 2001 From: royvardhan Date: Thu, 27 Feb 2025 20:08:27 +0530 Subject: [PATCH] fix: remove 0 amount check in _unwrapEth --- foundry/src/TychoRouter.sol | 3 --- 1 file changed, 3 deletions(-) diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol index e6f63c1..af3d7a0 100644 --- a/foundry/src/TychoRouter.sol +++ b/foundry/src/TychoRouter.sol @@ -441,9 +441,6 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard { * @param amount of WETH to unwrap. */ function _unwrapETH(uint256 amount) internal { - if (amount == 0) { - revert TychoRouter__AmountZero(); - } _weth.withdraw(amount); }