Total Fees
Base Fees
Base Fees includes either a Flat Fee or a Fee Scheduler or Rate Limiter.BaseFeeMode can only be enums 0, 1, or 2.- 0 = Linear Fee Scheduler
- 1 = Exponential Fee Scheduler
- 2 = Rate Limiter
Flat Fee
You can fetch the flat fee directly from thecliffFeeNumerator in the baseFee object if firstFactor, secondFactor, and thirdFactor are all 0.
The Fee Scheduler depends on the
poolState.activationType.- If the
poolState.activationType == 0, thennumberOfPeriodandperiodFrequencyis calculated inSLOT == 400ms - If the
poolState.activationType == 1, thennumberOfPeriodandperiodFrequencyis calculated inSECONDS == 1000ms
Fee Scheduler
- For Fee Scheduler, it contains
numberOfPeriod,periodFrequency, andreductionFactorwhich are paired with thefirstFactor,secondFactor, andthirdFactorrespectively.
You can refer to the math formula for the Fee Scheduler here
Rate Limiter
-
For Rate Limiter, it contains
feeIncrementBps,maxLimiterDuration, andreferenceAmountwhich are paired with thefirstFactor,secondFactor, andthirdFactorrespectively. -
baseFeeModecan only be 2.
You can refer to the math formula for the Rate Limiter here
Dynamic Fees (Variable Fee)
You can refer to the Dynamic Fee calculation herePlotting Charts
Using Transfer logs from Swap transactions is not the correct way of getting the token price as we have Anti-Sniper Suite features that can cause huge fee deductions from
TokenAmountIn OR TokenAmountOut. Plotting the token chart price from these will lead to a very ugly chart.EvtSwap2 CPI logs from the Swap transaction.
EvtSwap is an older version of the swap CPI logs and might be deprecated in the future. Use EvtSwap2 instead.Trading Volume
Track from Swap CPI logs:Liquidity
In the DAMM v2 pool, the liquidity is fetched from thetokenAVault and tokenBVault of the DAMM v2 pool.
Locked or Vested Liquidity
In DAMM v2, there are 3 different modes for liquidity: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
How to Identify Launchpads Using DAMM v2
You can ping us on Discord to get a list of all launchpads configuration who are launching on DAMM v2 directly so that you can index them on your trading terminal.Open a ticket on discord to get access to the list.
Referral Account
- For trading terminals, we have a feature that enables trading terminals to earn referral fees from all swaps that happens on our Meteora DBC program as long as they were swapped through your trading terminal.
- For referral fees, simply add your referral token account within the swap instruction & you will receive 20% of the protocol fees for all swaps.

