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

meteoraDlmm

Variable ยท @eco-incorp/sauce/svm The Meteora DLMM venue: a liquidity book of discrete price bins.

fetchMeteoraDlmmConfig

Function ยท @eco-incorp/sauce/svm Fetch + gate one DLMM pair (see the header for the gate list) and freeze both directionsโ€™ bin windows. Read-only against the loader.

fetchMeteoraDlmmConfigBytes

Function ยท @eco-incorp/sauce/svm Fetch from a 32-byte pair key, reusing its bytes for every bin-array and bitmap PDA seed.

METEORA_DLMM_PROGRAM_ID

Variable ยท @eco-incorp/sauce/svm

METEORA_DLMM_MAX_BINS

Variable ยท @eco-incorp/sauce/svm Shipped liquid bins per direction.

LB_PAIR_DISCRIMINATOR

Variable ยท @eco-incorp/sauce/svm sha256(โ€˜account:LbPairโ€™)[0..8].

BIN_ARRAY_DISCRIMINATOR

Variable ยท @eco-incorp/sauce/svm sha256(โ€˜account:BinArrayโ€™)[0..8].

meteoraDlmmWindowArrayIndexes

Function ยท @eco-incorp/sauce/svm The three bin-array indexes the walk touches: the active array then two more in the walk direction.

MeteoraDlmmPoolConfig

Interface ยท @eco-incorp/sauce/svm

DlmmWindow

Interface ยท @eco-incorp/sauce/svm

DlmmBin

Interface ยท @eco-incorp/sauce/svm

dlmmPriceFromId

Function ยท @eco-incorp/sauce/svm get_price_from_id(bin_id, bin_step): (1 + bin_step/1e4)^bin_id in Q64.64.

dlmmPow

Function ยท @eco-incorp/sauce/svm pow(base, exp) in Q64.64 - the u64x64_math.rs binary-exponentiation with per-step >> 64, the reciprocal trick for base >= ONE, and the final invert for negative exponents. Returns null on the venueโ€™s overflow/exp-cap aborts.

dlmmAmountOut

Function ยท @eco-incorp/sauce/svm get_amount_out(amount_in, price, swap_for_y, rounding).

dlmmAmountIn

Function ยท @eco-incorp/sauce/svm get_amount_in(amount_out, price, swap_for_y, rounding).

dlmmBinArrayIndex

Function ยท @eco-incorp/sauce/svm floor(bin_id / 70) - the bin array index (toward negative infinity).