Docs.rs
riptide-amm-math-1.0.0
riptide-amm-math 1.0.0
Docs.rs crate page
Links
crates.io
Source
Owners
riptidewill
Dependencies
borsh ^1.6
normal
ethnum ^1.1
normal
js-sys ^0.3
normal
optional
libm ^0.2
normal
optional
riptide-amm-macros ^1.0.0
normal
serde ^1.0
normal
optional
serde-wasm-bindgen ^0.6
normal
optional
tsify ^0.5
normal
optional
wasm-bindgen ^0.2
normal
optional
rstest ^0.26
dev
Versions
3.61%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
All
riptide_
amm_
math
1.0.0
Crate Items
Structs
Enums
Constants
Functions
Type Aliases
List of all items
Structs
OraclePayload
Price
Prices
Quote
SingleSideLiquidity
Enums
BookSpacingType
LiquidityType
OracleData
QuoteType
SkewExponent
SkewMode
Functions
a_to_b
ask_liquidity
ask_price
b_to_a
bid_liquidity
bid_price
invert_price
quote_exact_in
quote_exact_out
Type Aliases
CoreError
U128
Constants
AMOUNT_EXCEEDS_MAX_I32
AMOUNT_EXCEEDS_MAX_U128
AMOUNT_EXCEEDS_MAX_U32
AMOUNT_EXCEEDS_MAX_U64
ARITHMETIC_OVERFLOW
INVALID_ORACLE_DATA
ORACLE_DATA_LEN
ORACLE_PAYLOAD_LEN
PER_M_DENOMINATOR
SKEW_LEN
SKEW_OFFSET