Crate balancer_maths_rust

Crate balancer_maths_rust 

Source
Expand description

Balancer V3 mathematics library in Rust

This library provides reference implementations of mathematical calculations for Balancer V3 pools, including swaps, liquidity operations, and pool-specific math.

Re-exports§

pub use common::errors::PoolError;
pub use common::pool_base::PoolBase;
pub use common::types::AddLiquidityKind;
pub use common::types::PoolState;
pub use common::types::RemoveLiquidityKind;
pub use common::types::SwapKind;
pub use hooks::types::HookState;
pub use hooks::DefaultHook;
pub use hooks::HookBase;
pub use pools::weighted::WeightedPool;
pub use pools::weighted::WeightedState;
pub use vault::Vault;

Modules§

common
Common types, constants, and utilities shared across all pool implementations
hooks
Hook implementations for Balancer pools
pools
Pool implementations for different Balancer pool types
vault
Vault operations for Balancer pools