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

quantumSideBase

Function · @eco-incorp/sauce/svm Side-struct base offset for a direction (zeroIn reads side1, oneIn reads side0).

quantumOutScale

Function · @eco-incorp/sauce/svm 10^decimals of the direction’s OUTPUT token.

quantumOutVault

Function · @eco-incorp/sauce/svm The direction’s output vault (whose live balance is the hard out cap).

quantumInVault

Function · @eco-incorp/sauce/svm The direction’s input vault (the swap CPI’s transfer destination).

quantumOutReserveOffset

Function · @eco-incorp/sauce/svm Cached out-reserve offset for the direction (the second half of the out cap).

fetchQuantumConfig

Function · @eco-incorp/sauce/svm Fetch + gate one Quantum pool and freeze both directions’ walkable level prefixes. Read-only against the loader.

QUANTUM_PROGRAM_ID

Variable · @eco-incorp/sauce/svm

QUANTUM_GLOBAL

Variable · @eco-incorp/sauce/svm The program’s single global config account (one for every pool). Lived in this venue’s ladder module until the merge-decomposition ladders moved out; it is a program address, not decomposition state, so it stays here.

QUANTUM_POOL_SIZE

Variable · @eco-incorp/sauce/svm Exact pool account size (all 27 live mainnet pools).

OFF_MINT0

Variable · @eco-incorp/sauce/svm

OFF_MINT1

Variable · @eco-incorp/sauce/svm

OFF_VAULT0

Variable · @eco-incorp/sauce/svm

OFF_VAULT1

Variable · @eco-incorp/sauce/svm

OFF_RESERVE0

Variable · @eco-incorp/sauce/svm

OFF_RESERVE1

Variable · @eco-incorp/sauce/svm

OFF_SIDE0

Variable · @eco-incorp/sauce/svm

OFF_SIDE1

Variable · @eco-incorp/sauce/svm

OFF_DEC0

Variable · @eco-incorp/sauce/svm

OFF_DEC1

Variable · @eco-incorp/sauce/svm

OFF_LEVEL_COUNT

Variable · @eco-incorp/sauce/svm

SIDE_LEVELS

Variable · @eco-incorp/sauce/svm

SIDE_LEVEL_STRIDE

Variable · @eco-incorp/sauce/svm

SIDE_EXPIRY

Variable · @eco-incorp/sauce/svm

SIDE_KINDS

Variable · @eco-incorp/sauce/svm

QUANTUM_LEVEL_SLOTS

Variable · @eco-incorp/sauce/svm Hard array bound inside a side struct (the venue’s own index guard is < 17).

EXPIRY_SCALE

Variable · @eco-incorp/sauce/svm expirySlot is stored scaled by 1e4; the venue divides before comparing (.text 0x1058).

QUANTUM_MAX_LEVELS

Variable · @eco-incorp/sauce/svm Shipped levels per direction. 16 is the venue’s own array bound; all but 5 of the 27 live pools publish 5. The walk is a bounded loop (not unrolled), so this costs three 16-entry arrays of slot locals, not 16x the fragment.

QUANTUM_KIND_TRAPEZOID

Variable · @eco-incorp/sauce/svm Level kinds the fragment implements: 1 = trapezoid (every live pool side).

QuantumLevel

Interface · @eco-incorp/sauce/svm

QuantumWindow

Interface · @eco-incorp/sauce/svm

QuantumPoolConfig

Interface · @eco-incorp/sauce/svm

quantum

Variable · @eco-incorp/sauce/svm The Quantum venue: a market maker that posts priced levels, each with an expiry slot.