Skip to main content

Module math

Module math 

Source
Expand description

Bonding-curve and AMM quote math (u128 intermediates, u64 at the boundary).

Re-exports§

pub use bonding_curve::TOKEN_SUPPLY;

Modules§

amm
AMM (pump-swap) quote helpers.
bonding_curve
Bonding-curve buy/sell quotes.
fees
Fee math for bonding-curve and AMM quotes (basis points as u64).
utils
Shared numeric helpers for quote math.

Enums§

QuoteError
Quote failure modes (empty reserves, bad inputs, fee overflow, etc.).

Type Aliases§

QuoteResult