Remove unneeded cyclical swap exception

This commit is contained in:
johnwhitton
2025-09-29 10:04:18 -07:00
parent a40d30d3d9
commit b114ef7e28

View File

@@ -107,9 +107,7 @@ impl TychoRouterEncoder {
solution solution
.swaps .swaps
.iter() .iter()
.all(|swap| swap.split == 0.0) && .all(|swap| swap.split == 0.0))
!(solution.given_token == solution.checked_token && solution.swaps.len() > 2))
// This is a special case for cyclical swaps
{ {
self.single_swap_strategy self.single_swap_strategy
.encode_strategy(solution)? .encode_strategy(solution)?