Latest News

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 released - Portfolio analytics, Solidity 0.8.35, full test coverage

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 released - API rename and finance primitives

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 released - Library and benchmark suite split into separate repos

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
Apr 30, 2026

Binary options pricing and Greeks

Binary call and put pricing landed, with a full set of Greeks — delta, gamma, theta, vega.

Read more
Feb 20, 2026

DeFiMath is now on npm

The DeFiMath Solidity library is now installable as an npm package.

Read more
May 09, 2025

DeFiMath is now public

The DeFiMath Solidity library is open for public use.

Read more