Latest News
DeFiMath v3.5.0 — Extended boundaries
Three input ceilings pushed out to their actual mathematical limits — sqrt accepts the full FP18-safe uint256 range, Options and Binary admit horizons up to 32 years. Same precision, same gas, no API change.
Read moreDeFiMath v3.4.0 — Foundry property-fuzz testing layer added
Adds a Foundry property-based fuzz testing layer — 92 mathematical properties × 32,000 random runs = 2.94M executions per CI run. Plus a signed-int refactor of EXP_LOWER_BOUND that saves 1–3 gas across every function calling exp.
Read moreDeFiMath v3.3.0 — stdNormCDF rewrite, call/put 5% cheaper
Pure optimization release. Black-Scholes call and put each drop ~5% in gas; every option pricer and greek that touches the standard normal CDF gets faster.
Read moreDeFiMath v3.2.0 released — 7 new utility math primitives
Adds mulDiv, mul, abs, min, max, clamp and avg to the Math module — the small primitives every DeFi protocol ends up reimplementing.
Read moreDeFiMath v3.1.0 released - cbrt function
Adds a CLZ + Newton-Raphson cube root that beats Solady's cbrtWad by ~33% on gas at identical precision.
Read moreDeFiMath v3.0.0 — Portfolio analytics module
A major release adding statistics, risk and return functions for on-chain portfolio analytics, with a Solidity bump and 100% test coverage.
Read moreDeFiMath v2.0.0 — API rename, finance module
Breaking — function names drop the `get` prefix. Adds compound interest, present value, log returns, and continuous/discrete conversions.
Read moreDeFiMath v1.0.4 released - CLZ-based ln, sqrt and sqrtTime
Core math primitives rewritten using count-leading-zeros for tighter gas.
Read moreDeFiMath v1.0.3 — Benchmarks split into own repo
DeFiMath is now a focused Solidity library; benchmark comparisons live in the new defimath-compare repo.
Read moreImplied volatility solver and gas optimizations
First implementation of getImpliedVolatility, plus a wave of gas and precision tuning across the math tables.
Read more