All modulesD01
Phase 1 · Financial primitives · Module 01
DeFi Accounting
Assets, shares, rounding, returns, fees, and reconciliation.
Build: Vault-accounting library Source code
Published notes
5 publishedDeFi Accounting From First Principles: Assets, Shares, Profit, and Loss
Deriving the accounting rules behind vault shares, fair deposits, redemptions, and proportional profit and loss.
7 min read
D02Fixed-Point Arithmetic and Rounding in DeFi Vaults
Why integer division moves value, how ERC-4626 chooses rounding directions, and how precision and slippage checks protect vault users.
11 min read
D03APR, APY, and Time-Based Interest Accrual
From simple and compound interest to a call-independent index that accrues yield without letting user activity choose the compounding schedule.
13 min read
D04Vault Fees and High-Water Marks
Management fees, performance fees, dilution-correct share minting, and high-water marks that charge each gain only once.
14 min read
D05Reconciliation and Adversarial Accounting
Closing Module 1 by reconciling every asset and share, testing complete operation sequences, and fixing a zero-share vault windfall.
13 min read