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

INVARIANT_PROGRAM_ID

Variable · @eco-incorp/sauce/svm

POOL_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

POOL_DISCRIMINATOR

Variable · @eco-incorp/sauce/svm sha256(‘account:Pool’)[0..8].

TICK_DISCRIMINATOR

Variable · @eco-incorp/sauce/svm sha256(‘account:Tick’)[0..8].

TICK_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

TICKMAP_ACCOUNT_SIZE

Variable · @eco-incorp/sauce/svm

INVARIANT_MAX_BOUNDARIES

Variable · @eco-incorp/sauce/svm Shipped boundaries per direction - one ACCOUNT per boundary (no shared tick-array amortization).

invariant

Variable · @eco-incorp/sauce/svm The Invariant venue: a Uniswap V3-style concentrated-liquidity AMM.

invariantSqrtPriceAtTick

Function · @eco-incorp/sauce/svm

invariantDeltaX

Function · @eco-incorp/sauce/svm

invariantDeltaY

Function · @eco-incorp/sauce/svm

invariantNextSqrtXUp

Function · @eco-incorp/sauce/svm get_next_sqrt_price_x_up(price, liquidity, amount, add=true) - the ONLY branch a by-amount-in ladder ever needs.

invariantNextSqrtYDown

Function · @eco-incorp/sauce/svm get_next_sqrt_price_y_down(price, liquidity, amount, add=true).

invariantComputeSwapStepIn

Function · @eco-incorp/sauce/svm compute_swap_step (math.rs), BY-AMOUNT-IN ONLY (the merge ladder never quotes by-amount-out). xToY is derived exactly like the Rust source (current_price_sqrt >= target_price_sqrt).

fetchInvariantPoolConfig

Function · @eco-incorp/sauce/svm Fetch + decode one Invariant Pool and freeze both directions’ boundary windows. Read-only against the loader.

InvariantSwapStep

Interface · @eco-incorp/sauce/svm

InvariantBoundary

Interface · @eco-incorp/sauce/svm

InvariantWindow

Interface · @eco-incorp/sauce/svm

InvariantPoolConfig

Interface · @eco-incorp/sauce/svm