INTERMEDIATE
The mathematics, mechanics, and security of decentralised finance — from constant-product AMMs and interest rate models to MEV extraction and oracle manipulation. Build the intuition to read, audit, and design production DeFi protocols.
The architectural principles behind decentralised finance: composability, token standards, liquidity mechanics, and the smart contract patterns every protocol is built on.
The mathematics of on-chain liquidity: constant-product invariants, concentrated liquidity, stableswap curves, and the economics of providing liquidity.
Overcollateralised borrowing, interest rate models, liquidation mechanisms, and flash loans — the complete mechanics of on-chain credit markets.
Maximal Extractable Value: how arbitrageurs, sandwich bots, and liquidators compete for block space, and how PBS and private mempools are reshaping the landscape.
Oracle design, reentrancy patterns, access control failures, and a capstone challenge to design a production-grade lending protocol with real security trade-offs.