orca-whirlpool, exported from @eco-incorp/sauce/svm.
Generated from the type declarations of @eco-incorp/sauce.
whirlpoolSqrtPriceAtTick
Function ยท @eco-incorp/sauce/svm
sqrt_price_from_tick_index (Q64.64) over the UNBIASED tick.
windowStartTicks
Function ยท @eco-incorp/sauce/svm
The programโs expected window start indexes for a direction
(sparse_swap.rs get_start_tick_indexes), unfiltered: exactly three,
including any outside the initializable range (those PDAs never exist and
stay beyond readable).
fetchOrcaWhirlpoolConfig
Function ยท @eco-incorp/sauce/svm
Fetch + gate one whirlpool (see the header for the gate list) and freeze
both directionsโ boundary windows. Read-only against the loader.
ORCA_WHIRLPOOL_PROGRAM_ID
Variable ยท @eco-incorp/sauce/svm
WHIRLPOOL_ACCOUNT_SIZE
Variable ยท @eco-incorp/sauce/svm
TICK_ARRAY_ACCOUNT_SIZE
Variable ยท @eco-incorp/sauce/svm
WHIRLPOOL_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm
sha256(โaccount:Whirlpoolโ)[0..8].
TICK_ARRAY_DISCRIMINATOR
Variable ยท @eco-incorp/sauce/svm
sha256(โaccount:TickArrayโ)[0..8] - the FIXED tick array (the only readable kind).
TICK_ARRAY_SIZE
Variable ยท @eco-incorp/sauce/svm
MAX_TICK_INDEX
Variable ยท @eco-incorp/sauce/svm
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).
WHIRLPOOL_MAX_BOUNDARIES
Variable ยท @eco-incorp/sauce/svm
Shipped initialized-tick boundaries per direction.
OFF_TICK_SPACING
Variable ยท @eco-incorp/sauce/svm
OFF_FEE_TIER_INDEX
Variable ยท @eco-incorp/sauce/svm
OFF_FEE_RATE
Variable ยท @eco-incorp/sauce/svm
OFF_LIQUIDITY
Variable ยท @eco-incorp/sauce/svm
OFF_SQRT_PRICE
Variable ยท @eco-incorp/sauce/svm
OFF_TICK_CURRENT
Variable ยท @eco-incorp/sauce/svm
OFF_TA_START
Variable ยท @eco-incorp/sauce/svm
OFF_TA_TICKS
Variable ยท @eco-incorp/sauce/svm
TICK_LEN
Variable ยท @eco-incorp/sauce/svm
OFF_TA_WHIRLPOOL
Variable ยท @eco-incorp/sauce/svm
WhirlpoolBoundary
Interface ยท @eco-incorp/sauce/svm
WhirlpoolWindow
Interface ยท @eco-incorp/sauce/svm
OrcaWhirlpoolPoolConfig
Interface ยท @eco-incorp/sauce/svm
orcaWhirlpool
Variable ยท @eco-incorp/sauce/svm
The Orca Whirlpools venue: a concentrated-liquidity AMM.
