Docs.rs
  • hydra-dx-math-4.4.3
    • hydra-dx-math 4.4.3
    • Permalink
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • Crates.io
    • Source
    • Owners
    • enthusiastmartin
    • Dependencies
      • parity-scale-codec ^2.3.1 normal
      • fixed ^1.9.0 normal
      • num-traits ^0.2.14 normal
      • primitive-types ^0.8.0 normal
      • sp-arithmetic ^4.0.0 normal
      • approx ^0.3.0 dev
      • criterion ^0.3 dev
      • proptest ^1.0.0 dev
      • rand ^0.7 dev
      • rand_xoshiro ^0.4 dev
    • Versions
      • 4.4.3
      • 4.4.2
      • 4.4.1
      • 4.1.1
      • 4.1.0
      • 4.0.0
      • 3.4.0
      • 3.3.0
      • 3.2.0
      • 3.1.0
      • 3.0.0
      • 2.0.0
      • 1.0.0
    • 46.3% of the crate is documented
  • Platform
    • x86_64-unknown-linux-gnu
    • x86_64-pc-windows-msvc
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
  • Feature flags
  • Releases
    • All Releases
    • Releases by Stars
    • Recent Build Failures
    • Build Failures by Stars
    • Release Activity
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • Rust Cookbook
    • Crates.io
    • The Cargo Guide
About docs.rs Privacy policy Build queue
logo

logo

Crate hydra_dx_math

  • Version 4.4.3
  • All Items
  • Modules
  • Macros
  • Enums
logo
Change settings

Crate hydra_dx_math

source · [−]
Expand description

HydraDX Math

A collection of utilities to make performing liquidity pool calculations more convenient.

Modules

fee
lbp
liquidity_mining
stableswap
transcendental
types
xyk

Macros

ensure
round_up
to_balance
to_balance_from_fixed
to_fixed_balance
to_lbp_weight
to_u256

Enums

MathError