Latest News
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 moreDeFiMath 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 moreDeFiMath 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 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 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 moreImplied volatility solver and gas optimizations
First implementation of getImpliedVolatility, plus a wave of gas and precision tuning across the math tables.
Read moreBinary options pricing and Greeks
Binary call and put pricing landed, with a full set of Greeks — delta, gamma, theta, vega.
Read moreDeFiMath is now on npm
The DeFiMath Solidity library is now installable as an npm package.
Read moreDeFiMath is now public
The DeFiMath Solidity library is open for public use.
Read more