DeFiMath is an open-source Solidity library offering optimized math and DeFi primitives, designed for precision and efficiency in financial calculations. Compared to other open-source libraries, it offers more optimized Solidity functions, with outstanding precision. If you are building in DeFi, you'll going to need fast and safe math, as well as derivatives, options, greeks, compounding interest, ARR, conversions, and statistics. Check it out!
No reviews yetBe the first to leave a review for DeFiMath
Maker
📌
DefiMath started as a library for optimized Black-Scholes calculations, needed mainly for on-chain European options pricing. I soon implemented all the Greeks needed.
Since Black-Scholes model is computationally heavy, I had to optimize a lot of math functions, namely exp, ln, sqrt and stdNormCDF. After that I realized that my math is quite good, and actually faster (consumes less gas) than all of the Solidity libraries existing in space. So I bundled all together into one easy to use MIT licensed bundle.
I added over 30+ more functions used across DeFi: binary options for prediction markets, statistical and rate functions used in vaults, bots, and by market makers. All optimized, because sitting on a highly optimized math. Everything is 100% tested, audit coming soon.