Latest News

v3.5.0Jun 27, 2026

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 more
v3.4.0Jun 14, 2026

DeFiMath 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 more
v3.3.0Jun 09, 2026

DeFiMath 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 more
v3.2.0Jun 02, 2026

DeFiMath 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 more
v3.1.0May 27, 2026

DeFiMath 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 more
v3.0.0May 18, 2026

DeFiMath 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 more
v2.0.0May 12, 2026

DeFiMath 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 more
v1.0.4May 11, 2026

DeFiMath v1.0.4 released - CLZ-based ln, sqrt and sqrtTime

Core math primitives rewritten using count-leading-zeros for tighter gas.

Read more
v1.0.3May 07, 2026

DeFiMath 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 more
May 05, 2026

Implied volatility solver and gas optimizations

First implementation of getImpliedVolatility, plus a wave of gas and precision tuning across the math tables.

Read more