Remove unneeded cyclical swap exception
This commit is contained in:
@@ -107,9 +107,7 @@ impl TychoRouterEncoder {
|
||||
solution
|
||||
.swaps
|
||||
.iter()
|
||||
.all(|swap| swap.split == 0.0) &&
|
||||
!(solution.given_token == solution.checked_token && solution.swaps.len() > 2))
|
||||
// This is a special case for cyclical swaps
|
||||
.all(|swap| swap.split == 0.0))
|
||||
{
|
||||
self.single_swap_strategy
|
||||
.encode_strategy(solution)?
|
||||
|
||||
Reference in New Issue
Block a user