balancer_maths_rust/
lib.rs

1//! Balancer V3 mathematics library in Rust
2//!
3//! This library provides reference implementations of mathematical calculations
4//! for Balancer V3 pools, including swaps, liquidity operations, and pool-specific math.
5
6pub mod common;
7pub mod hooks;
8pub mod pools;
9pub mod vault;
10
11// Re-export commonly used types for convenience
12pub use common::errors::PoolError;
13pub use common::pool_base::PoolBase;
14pub use common::types::{AddLiquidityKind, PoolState, RemoveLiquidityKind, SwapKind};
15
16// Re-export hook types and traits
17pub use hooks::types::HookState;
18pub use hooks::{DefaultHook, HookBase};
19
20// Re-export pool implementations
21pub use pools::weighted::{WeightedPool, WeightedState};
22
23pub use vault::Vault;