fix: remove 0 amount check in _unwrapEth

This commit is contained in:
royvardhan
2025-02-27 20:08:27 +05:30
parent 393ed61595
commit 0273f58274

View File

@@ -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);
}