Docs.rs
dex-math-0.2.0
dex-math 0.2.0
Permalink
Docs.rs crate page
MIT
17 October 2026
Links
Homepage
Repository
crates.io
Source
Owners
darklake-bot
Dependencies
anchor-lang ^0.31.1
normal
borsh ^0.10
normal
proptest ^1.7.0
dev
spl-math ^0.3.0
dev
Versions
16.33%
of the crate is documented
Platform
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
Module utils
dex_
math
0.2.0
Module utils
Module Items
Functions
In crate dex_
math
dex_math
Module
utils
Copy item path
Source
Functions
ยง
floor_
div
get_
protocol_
fee
get_
trade_
fee
rebalance_
pool_
ratio
swap
This is guaranteed to work for all values such that:
swap_
base_
input_
without_
fees