From 49e0c498284e73f14a70900052fd4d845c3a732c Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Mon, 17 Mar 2025 13:18:02 -0400 Subject: [PATCH] chore: (single swap) remove unnecessary cycle check - It's not possible to have a single cyclical swap. --- foundry/src/TychoRouter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol index 3fceeb1..a899469 100644 --- a/foundry/src/TychoRouter.sol +++ b/foundry/src/TychoRouter.sol @@ -446,7 +446,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard { uint256 amountConsumed = initialBalance - currentBalance; - if (tokenIn != tokenOut && amountConsumed != amountIn) { + if (amountConsumed != amountIn) { revert TychoRouter__AmountInDiffersFromConsumed( amountIn, amountConsumed );