Skip to main content
Solana venue integration phoenix under svm/venues/phoenix.
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.

PHOENIX_PROGRAM_ID

Variable · sdk/dist/svm/venues/phoenix/index.d.ts

PHOENIX_MARKET_DISCRIMINANT

Variable · sdk/dist/svm/venues/phoenix/index.d.ts u64 LE @ 0 - accounts.rs check_discriminants asserts this exact value for MarketHeader.

OFF_TAKER_FEE_BPS

Variable · sdk/dist/svm/venues/phoenix/index.d.ts

BIDS_NODES_BASE

Variable · sdk/dist/svm/venues/phoenix/index.d.ts Node array start of the bids tree - market-invariant (the allocator header is fixed size).

PHOENIX_MAX_ORDERS

Variable · sdk/dist/svm/venues/phoenix/index.d.ts 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 (the consuming app cu e2e test, CU_FAMILIES.phoenix in budget.ts), 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 · sdk/dist/svm/venues/phoenix/index.d.ts Family facade for the recipe orchestrator (ladder-only - no v1 adapter).

phoenixWindowFor

Function · sdk/dist/svm/venues/phoenix/index.d.ts The direction’s window (the ladder adapter and the orchestrator gate read through this).

fetchPhoenixConfig

Function · sdk/dist/svm/venues/phoenix/index.d.ts 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 · sdk/dist/svm/venues/phoenix/index.d.ts 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 · sdk/dist/svm/venues/phoenix/index.d.ts Pointwise mirror of the emitted lx capacity booking - the productive gross input consumed.

depthReserves

Function · sdk/dist/svm/venues/phoenix/index.d.ts Depth for the relative filter: the shipped top-of-book aggregate (atoms).

PhoenixOrder

Interface · sdk/dist/svm/venues/phoenix/index.d.ts

PhoenixWindow

Interface · sdk/dist/svm/venues/phoenix/index.d.ts

PhoenixPoolConfig

Interface · sdk/dist/svm/venues/phoenix/index.d.ts