All modulesD06
Phase 1 · Financial primitives · Module 02
AMMs and Liquidity
Pricing, price impact, arbitrage, LP economics, and concentrated liquidity.
Build: Multi-model AMM simulator Source code
Published notes
4 publishedConstant-Product AMMs
Reserves, spot prices, constant-product swaps, price impact, input fees, and slippage protection in integer arithmetic.
10 min read
D07Arbitrage and Pool-Price Restoration
Deriving fee-aware arbitrage, no-arbitrage bands, discrete profit maximisation, and atomic execution for a constant-product AMM.
12 min read
D08LP Shares and Liquidity Accounting
Initial liquidity, proportional ownership, imbalanced deposits, withdrawals, fee accrual, and minimum-liquidity locking.
12 min read
D09Impermanent Loss and LP Economics
Holding benchmarks, divergence loss, fee income, rewards, costs, and exact LP performance accounting.
11 min read