wp-evm-amm-math 0.1.1

Native Rust CLMM/AMM math (Uniswap V3 compatible, zero SDK deps)
Documentation
//! Native Rust CLMM/AMM math library.
//!
//! Provides Uniswap V3 compatible math functions using only
//! `alloy_primitives::U256`. Zero dependency on `uniswap-v3-sdk`
//! or `uniswap-sdk-core`.

pub mod encode_sqrt_ratio;
pub mod error;
pub mod fee_growth;
pub mod full_math;
pub mod liquidity_math;
pub mod sqrt_price_math;
pub mod swap_math;
pub mod tick_math;

pub use error::AmmMathError;

/// Convenience result type for this crate.
pub type Result<T> = core::result::Result<T, AmmMathError>;