Skip to main content
Solana venue integration crema, exported from @eco-incorp/sauce/svm. Generated from the type declarations of @eco-incorp/sauce.

CREMA_PROGRAM_ID

Variable ยท @eco-incorp/sauce/svm

CLMMPOOL_ACCOUNT_SIZE

Variable ยท @eco-incorp/sauce/svm

CLMMPOOL_DISCRIMINATOR

Variable ยท @eco-incorp/sauce/svm sha256(โ€˜account:Clmmpoolโ€™)[0..8].

CREMA_TICK_ARRAY_ACCOUNT_SIZE

Variable ยท @eco-incorp/sauce/svm

CREMA_TICK_ARRAY_DISCRIMINATOR

Variable ยท @eco-incorp/sauce/svm sha256(โ€˜account:TickArrayโ€™)[0..8] - byte-identical to orca-whirlpoolโ€™s own (name-derived, not program-derived).

TICK_ARRAY_MAP_ACCOUNT_SIZE

Variable ยท @eco-incorp/sauce/svm

TICK_ARRAY_MAP_DISCRIMINATOR

Variable ยท @eco-incorp/sauce/svm sha256(โ€˜account:TickArrayMapโ€™)[0..8].

CREMA_TICK_ARRAY_SIZE

Variable ยท @eco-incorp/sauce/svm

CREMA_OFF_TICK_SPACING

Variable ยท @eco-incorp/sauce/svm

CREMA_OFF_FEE_RATE

Variable ยท @eco-incorp/sauce/svm

CREMA_OFF_LIQUIDITY

Variable ยท @eco-incorp/sauce/svm

CREMA_OFF_SQRT_PRICE

Variable ยท @eco-incorp/sauce/svm

CREMA_OFF_TICK_CURRENT

Variable ยท @eco-incorp/sauce/svm

OFF_TA_ARRAY_INDEX

Variable ยท @eco-incorp/sauce/svm

CREMA_OFF_TA_TICKS

Variable ยท @eco-incorp/sauce/svm

CREMA_TICK_LEN

Variable ยท @eco-incorp/sauce/svm

CREMA_MAX_BOUNDARIES

Variable ยท @eco-incorp/sauce/svm Shipped initialized-tick boundaries per direction - same budget class as orca-whirlpool/raydium-clmm.

crema

Variable ยท @eco-incorp/sauce/svm The Crema Finance venue: a concentrated-liquidity AMM with Orca Whirlpoolโ€™s layout and math.

fetchCremaPoolConfig

Function ยท @eco-incorp/sauce/svm Fetch + decode one Clmmpool and freeze both directionsโ€™ boundary windows. Read-only against the loader.

CREMA_MAX_TICK_INDEX

Variable ยท @eco-incorp/sauce/svm

CREMA_MIN_TICK_INDEX

Variable ยท @eco-incorp/sauce/svm Orca Whirlpools tick math - exact transcription of programs/whirlpool/src/math/tick_math.rs sqrt_price_from_tick_index in orca-so/whirlpools (https://github.com/orca-so/whirlpools) at commit 8ab2e923138badb2fcb1069cc9947f44df3e48eb, Copyright (c) 2022 Orca Foundation, licensed under the Apache License, Version 2.0 (see THIRD_PARTY_NOTICES.md): positive ticks accumulate in Q96 with (r * C) >> 96 steps and a final >> 32, negative ticks accumulate in Q64 with (r * C) >> 64 steps. Verified against the sourceโ€™s own pinned bit-value test table (see the unit suite). Shared by fetchPoolConfig (deriving the shipped boundary sqrt prices), the ladder mirror and the test fixtures. sqrt_price_from_tick_index is a pure function of the tick, which is why a prepare-shipped sqrt price is exact by construction - the engine-side fragment never recomputes it (an in-VM bit ladder costs ~54k CU per call on the interpreter).

CremaBoundary

Interface ยท @eco-incorp/sauce/svm

CremaWindow

Interface ยท @eco-incorp/sauce/svm

CremaPoolConfig

Interface ยท @eco-incorp/sauce/svm