Skip to main content
Archived documentation for @eco-incorp/sauce@1.0.0. Install this release with npm install --save-exact @eco-incorp/sauce@1.0.0. Links to guides outside this tab open current documentation.
Solana venue integration solfi-v1, exported from @eco-incorp/sauce/svm. Generated from the type declarations of @eco-incorp/sauce.

SOLFI_V1_PROGRAM_ID

Variable ยท @eco-incorp/sauce/svm

SOLFI_V1_POOL_ACCOUNT_SIZE

Variable ยท @eco-incorp/sauce/svm

SOLFI_V1_OFF_MINT_A

Variable ยท @eco-incorp/sauce/svm

SOLFI_V1_OFF_MINT_B

Variable ยท @eco-incorp/sauce/svm

SOLFI_V1_OFF_VAULT_A

Variable ยท @eco-incorp/sauce/svm

SOLFI_V1_OFF_VAULT_B

Variable ยท @eco-incorp/sauce/svm

SOLFI_V1_POOL_RATES

Variable ยท @eco-incorp/sauce/svm Per-pool, per-direction verified floor rates. A pool absent here THROWS at fetchPoolConfig (see fetchSolfiV1Config) - never borrowed from another pool, mirroring solfi-v2โ€™s POOL_K. direction 0 = mintA -> mintB, 1 = mintB -> mintA (matches the on-chain instructionโ€™s direction byte). โ€˜65ZHSArsโ€ฆโ€™-style single-pool coverage today: the only pool this integrationโ€™s LiteSVM sweep verified (docs/solfi-v1-evidence.md). Extend by running the same sweep against another poolโ€™s real bytes.

fetchSolfiV1Config

Function ยท @eco-incorp/sauce/svm Off-chain gate + decode: pool size, mint/vault pubkeys (plaintext, fixed offsets - verified across all 40 discovered pools), and the per-pool verified floor rate (REQUIRED - see SOLFI_V1_POOL_RATES; a pool not yet independently verified throws rather than guessing).

SolfiV1FloorRate

Interface ยท @eco-incorp/sauce/svm The verified conservative floor rate for a pool + direction: real realized output is >= (num/den)ยทamountIn at every sampled size (see the module doc and docs/solfi-v1-evidence.md for the raw LiteSVM sweep this was derived from - NOT a claim about the venueโ€™s real fee/impact schedule, a safety floor sized so the model never over-promises).

SolfiV1PoolConfig

Interface ยท @eco-incorp/sauce/svm