Documentation Index
Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
Use this file to discover all available pages before exploring further.
What it is
CLMM is Raydium’s concentrated-liquidity AMM, inspired by Uniswap v3’s design and adapted to Solana’s account model. Liquidity providers choose a price range rather than providing across the whole curve; capital efficiency is dramatically higher for stable and correlated pairs. Program ID: see reference/program-addresses. Token-2022: supported (with caveats documented underfees).
Chapter contents
Overview
Conceptual model: sqrt-price representation, ticks, liquidity math, and why positions can go “out of range.”
Accounts
PoolState, AmmConfig, TickArrayState, PersonalPositionState, ObservationState. Seeds, field layouts.
Ticks and positions
Tick spacing, tick arrays, how a position maps to two tick boundaries, how liquidity crosses a tick.
Math
Sqrt-price formulas, liquidity ↔ token-amount conversion, fee growth accounting, swap step algorithm.
Instructions
CreatePool, OpenPosition, IncreaseLiquidity, DecreaseLiquidity, Swap, CollectFee, CollectReward, UpdateRewardInfos.
Fees and rewards
Fee tiers, protocol/fund fee splits, reward schedules (up to three reward mints per pool).
Code demos
Create pool, open position, increase/decrease liquidity, swap, collect fees and rewards.
When to read this
- You are providing concentrated liquidity or building tooling for LPs.
- You are implementing range-order or auto-rebalancing strategies.
- You are a router that needs to price a CLMM swap accurately.


