goonfi-v2, exported from @eco-incorp/sauce/svm.
Generated from the type declarations of @eco-incorp/sauce.
denomAdjustedFor
Function ยท @eco-incorp/sauce/svm
denomAdjusted = ASSUMED_DENOM * 10^decimalsA / 10^decimalsB - the single scale constant the
live-price formula divides (xToY) or multiplies (yToX) by. Shared between fetchPoolConfig
(threshold baking) and the ladder (the runtime param) so the two can never diverge.
goonfiSwapAccounts
Function ยท @eco-incorp/sauce/svm
The 14-account order for GoonFiโs real swap (shared by v1 buildSwap and v2 buildSwapV2) - read
back off a real captured transactionโs own writable/signer flags (not guessed):
0 user(signer,w) ยท 1 pool(w) ยท 2 user mintA-ATA(w) ยท 3 user mintB-ATA(w) ยท 4 vaultA(w) ยท
5 vaultB(w) ยท 6 mintA ยท 7 mintB ยท 8 oracle-relay ยท 9 GOONFI_GLOBAL_STATE ยท 10 ix-sysvar ยท
11 token program ยท 12 token program (again) ยท 13 GOONFI_CONST_ACCOUNT_13.
User ATA order is FIXED (mintA-ATA, mintB-ATA) regardless of direction - only the tag-1 direction
byte decides which side is pulled from vs paid into, exactly like vaultA/vaultB.
GOONFI_V2_PROGRAM_ID
Variable ยท @eco-incorp/sauce/svm
GOONFI_GLOBAL_STATE
Variable ยท @eco-incorp/sauce/svm
The 719,000-byte account every sampled poolโs swap attaches read-only (account #9) - owned by
the GoonFi program itself, NOT written by swap (confirmed via the real txโs writable-flags
decode), so it is genuine keeper-maintained state the swap only consults. Its internal layout
is >98% zero-padded and not yet decoded; this adapter does not read it directly (the per-pool
oracle-relay account below carries the live price signal instead).
GOONFI_SWAP_TAG
Variable ยท @eco-incorp/sauce/svm
sha256-style single-byte tag observed on all 4 real captured swaps.
GOONFI_OFF_MINT_A
Variable ยท @eco-incorp/sauce/svm
GOONFI_OFF_MINT_B
Variable ยท @eco-incorp/sauce/svm
GOONFI_OFF_VAULT_A
Variable ยท @eco-incorp/sauce/svm
GOONFI_OFF_VAULT_B
Variable ยท @eco-incorp/sauce/svm
GOONFI_OFF_ORACLE
Variable ยท @eco-incorp/sauce/svm
The per-pool oracle-relay account (swap account #8; see module doc).
OFF_ORACLE_P1
Variable ยท @eco-incorp/sauce/svm
OFF_ORACLE_P2
Variable ยท @eco-incorp/sauce/svm
OFF_ORACLE_SLOT
Variable ยท @eco-incorp/sauce/svm
OFF_ORACLE_DENOM
Variable ยท @eco-incorp/sauce/svm
GOONFI_ASSUMED_DENOM
Variable ยท @eco-incorp/sauce/svm
The denominator observed on all 4 sampled oracle-relay accounts - a fail-closed assumption:
the live denom is still read and gated against this at cook time, so a future
pool with a genuinely different denom self-deactivates instead of silently mispricing.
GoonfiFeeSchedule
Interface ยท @eco-incorp/sauce/svm
The empirically-validated fee schedule (ppm, i.e. parts-per-1e6) - see module doc for the
measurement this pins against (tier 5 = 2200 ppm = 22.00 bps, matching a real Jupiter-quoted
10,000 USDC price impact of ~21.8 bps). Read LIVE from the poolโs own bytes (not baked) so a
pool with a genuinely different admin-configured schedule is priced from its own table.
GoonfiV2PoolConfig
Interface ยท @eco-incorp/sauce/svm
goonfiV2
Variable ยท @eco-incorp/sauce/svm
