What's DAMM v2?
DAMM v2 is one of Meteora’s advanced AMM product that allows you to provide concentrated or spot or single-sided liquidity to a pool and in return minting an NFT that represents your position.
DAMM v2 Configs
Each DAMM v2 pool is a PDA of token mints + config. There are 2 main types of DAMM v2 configs: Static config and Dynamic config.
DAMM v2 Program
At Meteora, we’ve developed aNode.js <> Typescript SDK, a Rust SDK and a Go SDK to make deploying and managing your DAMM v2 liquidity pool easier. The following sections includes information on installing and using the SDKs. It also covers where to find the latest code, and how to contribute to these repositories.
Program Details
DAMM v2 Program
Meteora DAMM v2 Program
DAMM v2 IDL
Meteora DAMM v2 Program IDL
| Network | Program ID |
|---|---|
| Mainnet | cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG |
| Devnet | cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG |
| Authority | Address |
|---|---|
| Pool Authority | HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC |
Compounding Fee Mode
DAMM v2 v0.2.0 introduces a third fee collection mode (collect_fee_mode = 2).
collect_fee_mode | Fee Token | Fee on Input? |
|---|---|---|
| 0 (BothToken) | Output token | No (fee on output) |
| 1 (OnlyB) | Token B | Only for B→A trades |
| 2 (Compounding) | Token B | Only for B→A trades |
compounding_fee_bps on the config) is automatically reinvested back into pool reserves rather than accruing to LP positions. This portion is reported as compounding_fee in EvtSwap2. The remaining claimable portion is reported as claiming_fee.
Compounding mode pools use a constant-product formula with no concentrated liquidity range.
Official SDKs
Typescript SDK
Official Meteora DAMM v2 Typescript SDK
Rust SDK
Official Meteora DAMM v2 Rust SDK
Go SDK
Official Meteora DAMM v2 Go SDK

