[package]
edition = "2021"
rust-version = "1.80"
name = "llamma-math"
version = "0.1.0-alpha.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust port of Curve Finance LLAMMA (Lending-Liquidating AMM Algorithm) math. Wei-level precision, fuzz-verified against on-chain contracts."
readme = false
keywords = [
"curve",
"llamma",
"crvusd",
"llamalend",
"amm",
]
categories = [
"cryptography::cryptocurrencies",
"mathematics",
]
license = "MIT"
repository = "https://github.com/sunce86/llamma-math"
[features]
default = []
serde = [
"dep:serde",
"alloy-primitives/serde",
]
swap = []
[lib]
name = "llamma_math"
path = "src/lib.rs"
[[test]]
name = "wad_exp_crosscheck"
path = "tests/wad_exp_crosscheck.rs"
[dependencies.alloy-primitives]
version = "1.5"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dev-dependencies.alloy]
version = "1.7"
features = [
"provider-http",
"contract",
"sol-types",
]
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
]