All modules

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 published
D06

Constant-Product AMMs

Reserves, spot prices, constant-product swaps, price impact, input fees, and slippage protection in integer arithmetic.

D07

Arbitrage and Pool-Price Restoration

Deriving fee-aware arbitrage, no-arbitrage bands, discrete profit maximisation, and atomic execution for a constant-product AMM.

D08

LP Shares and Liquidity Accounting

Initial liquidity, proportional ownership, imbalanced deposits, withdrawals, fee accrual, and minimum-liquidity locking.

D09

Impermanent Loss and LP Economics

Holding benchmarks, divergence loss, fee income, rewards, costs, and exact LP performance accounting.