Skill based on Uniswap v4 Core (Uniswap/v4-core), generated at 2026-02-09.
Uniswap v4 is an AMM with a singleton PoolManager: all pool state lives in one contract. Interactions go through unlock → unlockCallback, where callers perform swaps, liquidity changes, and donations, then settle balance deltas before the callback returns. Pools can attach hooks for lifecycle callbacks (initialize, add/remove liquidity, swap, donate).
Core References
| Topic |
Description |
Reference |
| Architecture |
Singleton, unlock/callback flow, delta settlement |
core-architecture |
| Unlock callback |
IUnlockCallback, when to use unlock, security |
core-unlock-callback |
| Pool actions |
initialize, swap, modifyLiquidity, donate, take, settle, sync, mint, burn, clear |
core-pool-actions |
| Types |
PoolKey, PoolId, Currency, BalanceDelta, ModifyLiquidityParams, SwapParams |
core-types |
Features
Hooks
| Topic |
Description |
Reference |
| Hooks |
IHooks lifecycle, address-based flags, before/after callbacks |
features-hooks |
1---2name: uniswap-v43description: Uniswap v4 core pool logic — singleton PoolManager, unlock/callback, pool actions, hooks, and types.4metadata:5 author: Hairy6 version: "2026.2.9"7 source: Generated from https://github.com/Uniswap/v4-core, scripts at https://github.com/antfu/skills8---910> Skill based on Uniswap v4 Core (Uniswap/v4-core), generated at 2026-02-09.1112Uniswap v4 is an AMM with a singleton PoolManager: all pool state lives in one contract. Interactions go through `unlock` → `unlockCallback`, where callers perform swaps, liquidity changes, and donations, then settle balance deltas before the callback returns. Pools can attach hooks for lifecycle callbacks (initialize, add/remove liquidity, swap, donate).1314## Core References1516| Topic | Description | Reference |17|-------|-------------|-----------|18| Architecture | Singleton, unlock/callback flow, delta settlement | [core-architecture](references/core-architecture.md) |19| Unlock callback | IUnlockCallback, when to use unlock, security | [core-unlock-callback](references/core-unlock-callback.md) |20| Pool actions | initialize, swap, modifyLiquidity, donate, take, settle, sync, mint, burn, clear | [core-pool-actions](references/core-pool-actions.md) |21| Types | PoolKey, PoolId, Currency, BalanceDelta, ModifyLiquidityParams, SwapParams | [core-types](references/core-types.md) |2223## Features2425### Hooks2627| Topic | Description | Reference |28|-------|-------------|-----------|29| Hooks | IHooks lifecycle, address-based flags, before/after callbacks | [features-hooks](references/features-hooks.md) |