chore: (single swap) remove unnecessary cycle check

- It's not possible to have a single cyclical swap.
This commit is contained in:
TAMARA LIPOWSKI
2025-03-17 13:18:02 -04:00
committed by Diana Carvalho
parent 64345663d0
commit 49e0c49828

View File

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