diff --git a/rust-sdk/core/src/math/tick_array.rs b/rust-sdk/core/src/math/tick_array.rs index c5d4c349f..b3c30902d 100644 --- a/rust-sdk/core/src/math/tick_array.rs +++ b/rust-sdk/core/src/math/tick_array.rs @@ -30,8 +30,8 @@ impl TickArraySequence { for i in 0..tick_arrays.len() - 1 { let current_start_tick_index = start_tick_index(&tick_arrays[i]); let next_start_tick_index = start_tick_index(&tick_arrays[i + 1]); - if next_start_tick_index - current_start_tick_index != required_tick_array_spacing - && next_start_tick_index != ::MAX + if next_start_tick_index != ::MAX + && next_start_tick_index - current_start_tick_index != required_tick_array_spacing { return Err(TICK_ARRAY_NOT_EVENLY_SPACED); }