Software Development

Dimensional Analysis

Audits code for unit and decimal-scaling bugs and annotates it with dimensional comments recording the units of each value. Use when someone asks to audit or review code for unit confusion, decimals or scaling mismatches, WAD/RAY scale errors, or the wrong token's decimals; to annotate units in a codebase; or to perform a dimensional analysis of a DeFi protocol, offchain code, or other arithmetic-heavy codebase. Catches formulas that combine values carrying different units or scales.

Publisher / source
trailofbits/skills (found on skills.sh, an awesome list, the CSV list)
Upstream record
trailofbits/skills
Version
Version 3
Published
Publication review
Approved for publication
Content fingerprint
e3a091ca6acd079a00044a74929153bd569731b08c24b4bbaba59203c734a67c