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

PHOENIX_PROGRAM_ID

Variable · @eco-incorp/sauce/svm

PHOENIX_MARKET_DISCRIMINANT

Variable · @eco-incorp/sauce/svm u64 LE @0 - accounts.rs check_discriminants asserts this exact value for MarketHeader.

OFF_TAKER_FEE_BPS

Variable · @eco-incorp/sauce/svm

BIDS_NODES_BASE

Variable · @eco-incorp/sauce/svm Node array start of the bids tree - market-invariant (the allocator header is fixed size).

PHOENIX_MAX_ORDERS

Variable · @eco-incorp/sauce/svm Shipped top-of-book levels per direction. Half of manifest’s 16 (a heavier per-level walk: two budget checks plus the fee-adjusted-budget setup) - MEASURED (not guessed): 588,522 CU @2 rungs / 831,135 CU @4 rungs on the real engine against the checked-in real SOL/USDC fixture, both comfortably under the ~1.19M admission budget with room for a companion slot. At this depth the shipped bid window alone absorbs ~713 SOL before exhausting (see docs/phoenix-evidence.md) - far beyond a typical trade - so 8 is not a binding liquidity constraint at this snapshot; raise it only if a future measurement shows CU headroom AND a real market where 8 levels genuinely caps absorption.

phoenix

Variable · @eco-incorp/sauce/svm The Phoenix venue: an on-chain central limit order book.

phoenixWindowFor

Function · @eco-incorp/sauce/svm The direction’s window.

fetchPhoenixConfig

Function · @eco-incorp/sauce/svm Fetch + gate one Phoenix market (account size/discriminant, classic-SPL mints - the Swap ix has no separate mint accounts, so it is Tokenkeg-only, mirroring manifest’s identical gate) and freeze both directions’ top-of-book order windows. Read-only against the loader.

referenceQuote

Function · @eco-incorp/sauce/svm Exact mirror of the emitted fragment given the SAME cfg + params + live fee the blob was prepared with. readFee supplies taker_fee_bps from the SAME live account bytes (the fragment reads it live too - see the module header).

referenceCapacities

Function · @eco-incorp/sauce/svm Pointwise mirror of the emitted lx capacity booking - the productive gross input consumed.

depthReserves

Function · @eco-incorp/sauce/svm Depth for the relative filter: the shipped top-of-book aggregate (atoms).

PhoenixOrder

Interface · @eco-incorp/sauce/svm

PhoenixWindow

Interface · @eco-incorp/sauce/svm

PhoenixPoolConfig

Interface · @eco-incorp/sauce/svm