valiant_vortex_core 0.2.0

Valiant's core rust package.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(non_snake_case)]

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

/// The denominator of the fee rate value.
#[cfg_attr(feature = "wasm", wasm_expose)]
pub const FEE_RATE_DENOMINATOR: u32 = 1_000_000;

// TODO: WASM export (which doesn't work with u128 yet)

/// The minimum sqrt price for a vortex.
pub const MIN_SQRT_PRICE: u128 = 4295048016;

/// The maximum sqrt price for a vortex.
pub const MAX_SQRT_PRICE: u128 = 79226673515401279992447579055;