valiant_vortex_core 0.2.0

Valiant's core rust package.
Documentation
#![allow(non_snake_case)]

#[cfg(feature = "wasm")]
use valiant_vortex_macros::wasm_expose;

/// The number of ticks in a tick array.
#[cfg_attr(feature = "wasm", wasm_expose)]
pub const TICK_ARRAY_SIZE: usize = 88;

/// Pools with tick spacing above this threshold are considered full range only.
/// This means the program rejects any non-full range positions in these pools.
#[cfg_attr(feature = "wasm", wasm_expose)]
pub const FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD: u16 = 32768; // 2^15

/// The minimum tick index.
#[cfg_attr(feature = "wasm", wasm_expose)]
pub const MIN_TICK_INDEX: i32 = -443636;

/// The maximum tick index.
#[cfg_attr(feature = "wasm", wasm_expose)]
pub const MAX_TICK_INDEX: i32 = 443636;