raydium-clmm, exported from @eco-incorp/sauce/svm.
Generated from the type declarations of @eco-incorp/sauce.
raydiumClmm
Variable · @eco-incorp/sauce/svm
The Raydium CLMM venue: a concentrated-liquidity AMM.
fetchRaydiumClmmConfig
Function · @eco-incorp/sauce/svm
Fetch + gate one Raydium CLMM pool (see the header for the gate list) and
freeze both directions’ boundary windows. Read-only against the loader.
RAYDIUM_CLMM_PROGRAM_ID
Variable · @eco-incorp/sauce/svm
RAYDIUM_CLMM_MAX_BOUNDARIES
Variable · @eco-incorp/sauce/svm
Shipped initialized-tick boundaries per direction (matches whirlpool: each
crossed boundary is a walk step ~tens of k CU on the interpreter).
raydiumClmmArrayStartIndex
Function · @eco-incorp/sauce/svm
floor division toward negative infinity (TickArrayState::get_array_start_index).
raydiumClmmWindowStartTicks
Function · @eco-incorp/sauce/svm
The three swap-sequence array starts for a direction: the array containing
the live tick, then two more in the walk direction (down for zero_for_one).
Raydium’s first swap array is always the live-tick array (no whirlpool-style
shifted-window rule - next_initialized_tick searches within it first).
RAYDIUM_CLMM_POOL_DISCRIMINATOR
Variable · @eco-incorp/sauce/svm
sha256(‘account:PoolState’)[0..8] (shared with raydium-cp - size+owner discriminate).
RAYDIUM_CLMM_TICK_ARRAY_DISCRIMINATOR
Variable · @eco-incorp/sauce/svm
sha256(‘account:TickArrayState’)[0..8].
RAYDIUM_CLMM_AMM_CONFIG_DISCRIMINATOR
Variable · @eco-incorp/sauce/svm
sha256(‘account:AmmConfig’)[0..8].
RaydiumClmmPoolConfig
Interface · @eco-incorp/sauce/svm
RaydiumClmmWindow
Interface · @eco-incorp/sauce/svm
RaydiumClmmBoundary
Interface · @eco-incorp/sauce/svm
raydiumSqrtPriceAtTick
Function · @eco-incorp/sauce/svm
sqrt_price_from_tick_index (Q64.64) over the UNBIASED tick.
RAYDIUM_MIN_TICK
Variable · @eco-incorp/sauce/svm
Raydium CLMM tick math - exact transcription of
raydium-clmm/programs/amm/src/libraries/tick_math.rs get_sqrt_price_at_tick:
the STANDARD Uniswap-V3 magic-constant ladder, but emitting a Q64.64
sqrt price directly (each factor is 2^64 / 1.0001^(2^(i-1)), accumulated
with (ratio * magic) >> 64, then reciprocated as (2^128 - 1) / ratio
for positive ticks). This is NOT Orca’s whirlpool table - Raydium’s
MAX_SQRT_PRICE (79226673521066979257578248091) differs from Orca’s
(79226673515401279992447579055), so the two families need separate math.
Verified against the source’s pinned bounds AND the live SOL/USDC 0.04%
pool 3ucNos4N… (tick 0 -> 2^64; tick -25007 -> 5283561491725923125,
just below the pool’s live mid-tick sqrt 5283759320557551589).
Used ONLY off-chain (prepare + the mirror): a shipped boundary’s sqrt price
is drift-invariant (a pure function of the PDA-pinned tick), so the in-VM
fragment never recomputes it (an in-VM bit ladder is unaffordable).
RAYDIUM_MAX_TICK
Variable · @eco-incorp/sauce/svm
MIN_SQRT_PRICE_X64
Variable · @eco-incorp/sauce/svm
MAX_SQRT_PRICE_X64
Variable · @eco-incorp/sauce/svm
