Everything you need to know to integrate with Meteora’s DAMM v2 Program
BaseFeeMode
can only be enums 0 or 1.
0 = Linear Fee Scheduler
1 = Exponential Fee SchedulercliffFeeNumerator
in the baseFee
object if numberOfPeriod
, periodFrequency
, and reductionFactor
are all 0.
poolState.activationType
.poolState.activationType == 0
, then numberOfPeriod
and periodFrequency
is calculated in SLOT == 400ms
poolState.activationType == 1
, then numberOfPeriod
and periodFrequency
is calculated in SECONDS == 1000ms
feeSchedulerMode
can only be 0 or 1.TokenAmountIn
OR TokenAmountOut
. Plotting the token chart price from these will lead to a very ugly chart.EvtSwap
CPI logs from the Swap transaction.
Because of the Anti-Sniper Suite features, you will have to apply the following checks to get the correct token price either before/after the fee deduction.
collectFeeMode
.tokenAVault
and tokenBVault
of the DAMM v2 pool.
lockedLiquidity
- which means that the liquidity is permanently lockedvestedLiquidity
- which means that the liqudiity is vestedLiquidityunlockedLiquidity
- which means that the liquidity is unlocked and claimable