Uniswap V4 Hooks
Uniswap V4 hooks are programmable callbacks that execute custom logic at specific points in a pool's lifecycle — before/after a swap, before/after a liquidity position modification, and before/after a donation to the pool. Hooks enable a Cambrian explosion of AMM customization: dynamic fees that adjust to volatility, automated LP position rebalancing, MEV-capture mechanisms that internalize arbitrage profits, TWAP-based oracle integrations, custom on-chain order types, and yield-bearing liquidity where LP tokens are automatically deployed in lending protocols. Each hook is a separate smart contract deployed alongside the pool, and hook developers can permissionlessly innovate without modifying the Uniswap V4 core. The singleton architecture (all pools managed by a single contract) reduces the gas cost of multi-hop trades through hook-enabled pools. Hooks represent the largest architectural expansion of AMM capability since concentrated liquidity in V3.