Skip to main content
Solana venue integration raydium-clmm under svm/venues/raydium-clmm.
Generated from the type declarations shipped in @eco-incorp/sauce 0.99.4. Each entry shows the package authors’ JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see architecture and deployments.

raydiumClmm

Variable · sdk/dist/svm/venues/raydium-clmm/index.d.ts Family facade for the recipe orchestrator (ladder-only - no v1 adapter).

fetchRaydiumClmmConfig

Function · sdk/dist/svm/venues/raydium-clmm/index.d.ts 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 · sdk/dist/svm/venues/raydium-clmm/index.d.ts

RAYDIUM_CLMM_MAX_BOUNDARIES

Variable · sdk/dist/svm/venues/raydium-clmm/index.d.ts Shipped initialized-tick boundaries per direction (matches whirlpool: each crossed boundary is a walk step ~tens of k CU on the interpreter). Moves in lockstep with the fragment’s unrolled setup (ladder.ts) and the mirror.

raydiumClmmArrayStartIndex

Function · sdk/dist/svm/venues/raydium-clmm/index.d.ts floor division toward negative infinity (TickArrayState::get_array_start_index).

raydiumClmmWindowStartTicks

Function · sdk/dist/svm/venues/raydium-clmm/index.d.ts 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 · sdk/dist/svm/venues/raydium-clmm/index.d.ts sha256(‘account:PoolState’)[0..8] (shared with raydium-cp - size+owner discriminate).

RAYDIUM_CLMM_TICK_ARRAY_DISCRIMINATOR

Variable · sdk/dist/svm/venues/raydium-clmm/index.d.ts sha256(‘account:TickArrayState’)[0..8].

RAYDIUM_CLMM_AMM_CONFIG_DISCRIMINATOR

Variable · sdk/dist/svm/venues/raydium-clmm/index.d.ts sha256(‘account:AmmConfig’)[0..8].

RaydiumClmmPoolConfig

Interface · sdk/dist/svm/venues/raydium-clmm/index.d.ts

RaydiumClmmWindow

Interface · sdk/dist/svm/venues/raydium-clmm/index.d.ts

RaydiumClmmBoundary

Interface · sdk/dist/svm/venues/raydium-clmm/index.d.ts

raydiumSqrtPriceAtTick

Function · sdk/dist/svm/venues/raydium-clmm/tick-math.d.ts sqrt_price_from_tick_index (Q64.64) over the UNBIASED tick.

RAYDIUM_MIN_TICK

Variable · sdk/dist/svm/venues/raydium-clmm/tick-math.d.ts 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 · sdk/dist/svm/venues/raydium-clmm/tick-math.d.ts

MIN_SQRT_PRICE_X64

Variable · sdk/dist/svm/venues/raydium-clmm/tick-math.d.ts

MAX_SQRT_PRICE_X64

Variable · sdk/dist/svm/venues/raydium-clmm/tick-math.d.ts