Solana IDL reference › Meteora CP AMM (DAMM V2) › Config
Meteora CP AMM (DAMM V2) account type. Program ID cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG. Data starts with the 8-byte account discriminator, published in the IDL.
Discriminator (published in the IDL)
hex 0x9b0caae01efacc82
bytes [155, 12, 170, 224, 30, 250, 204, 130]
base58 SwB71qnXfS1
| Field | Type | Offset | Size |
|---|---|---|---|
| vault_config_key | pubkey | 8 | 32 |
| pool_creator_authority | pubkey | 40 | 32 |
| pool_fees | PoolFeesConfig | 72 | 128 |
| base_fee | BaseFeeConfig | 72 | 32 |
| cliff_fee_numerator | u64 | 72 | 8 |
| base_fee_mode | u8 | 80 | 1 |
| padding | [u8; 5] | 81 | 5 |
| first_factor | u16 | 86 | 2 |
| second_factor | [u8; 8] | 88 | 8 |
| third_factor | u64 | 96 | 8 |
| dynamic_fee | DynamicFeeConfig | 104 | 48 |
| initialized | u8 | 104 | 1 |
| padding | [u8; 7] | 105 | 7 |
| max_volatility_accumulator | u32 | 112 | 4 |
| variable_fee_control | u32 | 116 | 4 |
| bin_step | u16 | 120 | 2 |
| filter_period | u16 | 122 | 2 |
| decay_period | u16 | 124 | 2 |
| reduction_factor | u16 | 126 | 2 |
| padding_1 | [u8; 8] | 128 | 8 |
| bin_step_u128 | u128 | 136 | 16 |
| protocol_fee_percent | u8 | 152 | 1 |
| partner_fee_percent | u8 | 153 | 1 |
| referral_fee_percent | u8 | 154 | 1 |
| padding_0 | [u8; 5] | 155 | 5 |
| padding_1 | [u64; 5] | 160 | 40 |
| activation_type | u8 | 200 | 1 |
| collect_fee_mode | u8 | 201 | 1 |
| config_type | u8 | 202 | 1 |
| _padding_0 | [u8; 5] | 203 | 5 |
| index | u64 | 208 | 8 |
| sqrt_min_price | u128 | 216 | 16 |
| sqrt_max_price | u128 | 232 | 16 |
| _padding_1 | [u64; 10] | 248 | 80 |
bytemuck, repr c). Every field here is naturally aligned, so the in-memory layout matches the offsets shown.Every Config account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches vault_config_key at offset 8. A dataSize: 328 filter would also work only while live accounts still have the snapshot size; programs often add fields in upgrades, so it is left out here. getProgramAccounts on a large program is heavy; many RPC providers limit or disable it.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG",
{
"encoding": "base64",
"filters": [
{
"memcmp": {
"offset": 0,
"bytes": "SwB71qnXfS1"
}
},
{
"memcmp": {
"offset": 8,
"bytes": "<vault_config_key as base58>"
}
}
]
}
]
}
Decoding runs on Rugsight's server against the bundled snapshot. Nothing is fetched from the chain. Paste public account data only; never paste a private key or seed phrase.
Meteora CP AMM (DAMM V2) instructions · Explain a transaction
Data: solana-idls@1.2.1 (MIT, © Obsidian Protocol) and SPL Token / Token-2022 state layouts (Apache-2.0), snapshot 2026-11-17. Programs can upgrade and an IDL snapshot can lag the deployed program, so check important offsets against current account data.