chore: (single swap) remove unnecessary cycle check
- It's not possible to have a single cyclical swap.
This commit is contained in:
committed by
Diana Carvalho
parent
64345663d0
commit
49e0c49828
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user