deriverse under svm/venues/deriverse.
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.conservativeFeePpm
Function · sdk/dist/svm/venues/deriverse/index.d.ts
Bakes ONE conservative fee-ppm constant from a fetch-time snapshot of the
instrument’s fee inputs. ZeroFees (mask bit 0x1) is a protocol invariant
that zeros BOTH the AMM fee_rate and the protocol swap_fee_rate (lib.rs’s
quote(), both branches check it first) - trusted exactly, no margin.
Otherwise: FixedFees (0x2) uses the admin-set static fixed_fee_rate;
the default case uses the DYNAMIC day_volatility * spot_fee_rate * FEE_RATE_STEP, which can drift between this snapshot and the eventual
cook (it is a live, per-trade-recalculated statistic, not frozen). Either
way the raw ppm is DOUBLED plus a flat +20ppm floor: the margin absorbs
(a) day_volatility drift and (b) the deployed binary’s protocol-level
swap_fee_rate (currently the constant 0 in the drv-models crate, but not
independently re-derivable from account state, and a bigger assumed fee
only ever LOWERS the predicted output - the safe direction; assuming it
stays 0 is the unsafe one). This is the ONLY fee derivation this adapter
does off-chain; the ladder never reads day_volatility/fixed_fee_rate live.
deriverseSwapAccounts
Function · sdk/dist/svm/venues/deriverse/index.d.ts
The 14-account order for Deriverse’s Swap (disc 26 - SwapInstruction::
MIN_ACCOUNTS), shared by v1 buildSwap and v2 buildSwapV2: [signer, asset
mint, crncy mint, asset vault, crncy vault, instrument, {asks_tree,
ask_orders} on buy / {bids_tree, bid_orders} on sell, lines, maps, client
infos, asset-side user ATA, crncy-side user ATA, token program]. User ATAs
are POSITIONAL BY MINT (asset vs crncy), not by direction - the same trap
documented on solfi-v2/quantum.
DERIVERSE_PROGRAM_ID
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
DERIVERSE_AUTH
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
find_program_address([b"ndxnt"], programId) - ONE PDA for the whole
program (drv-smart-contract-common’s DRVS_SEED), independent of any
pool. Hardcoded (verified against mainnet via an offline PDA derivation,
not read from any account) exactly like raydium-amm-v4’s AMM_AUTHORITY.
INSTR_ACCOUNT_HEADER_MIN_SIZE
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
The front slice of InstrAccountHeader this adapter reads (1064 bytes,
drv-smart-contract-common v0.2.68). The LIVE deployed account is larger
(2344 bytes observed on both checked instruments) - the extra bytes are
unread reserved tail space (candle/history buffers not yet promoted to
named fields), exactly the pattern jupiter-deriverse’s own
AccountsHolder::from_account relies on (&data[0..size_of::<T>()]).
fetchPoolConfig accepts anything >= this size, never an exact match.
OFF_MASK
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
OFF_LAST_PX
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
OFF_ASSET_TOKENS
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
OFF_CRNCY_TOKENS
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
OFF_DEC_FACTOR
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
MASK_SUSPENDED
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
DeriversePoolConfig
Interface · sdk/dist/svm/venues/deriverse/index.d.ts
deriverse
Variable · sdk/dist/svm/venues/deriverse/index.d.ts
