~/talk

PRBMath: A Modern Smart Contract Library for Fixed-Point Math

Talkat code.talks 2022 · 2022-09-15..09-16· [smart-contracts, cryptography]
links:none on file
slides:none on file

Library adds 18-decimal fixed‑point math to Solidity 0.8 with ready implementations of logarithms, exponentials, pow, sqrt and a binary exponent, plus a ud60x18 type and 10^18 scaling. It reimplements a mulDiv-style overflow-avoiding routine so intermediate products never revert, uses custom errors to cut revert gas ~10x, and ships an AMM formula proof-of-concept. Test suite totals 1,400 tests with about 96% coverage and reports only minor rounding edge cases after long use.

AI-written summary · about

  1. 0:00Start
  2. 2:22What is Solidity?
  3. 3:16What is the Problem?
  4. 5:53Example Projects
  5. 10:21Basic Features
  6. 10:38Advanced Features
  7. 11:03Simple Numbers
  8. 15:42Solidity v0.8 Features
  9. 18:16Developer Experience
  10. 19:43Testing and Security
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.