Solana IDL reference › Meteora CP AMM (DAMM V2) › Pool
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 0xf19a6d0411b16dbc
bytes [241, 154, 109, 4, 17, 177, 109, 188]
base58 hQrXeCntzbV
| Field | Type | Offset | Size |
|---|---|---|---|
| pool_fees | PoolFeesStruct | 8 | 160 |
| base_fee | BaseFeeStruct | 8 | 40 |
| cliff_fee_numerator | u64 | 8 | 8 |
| base_fee_mode | u8 | 16 | 1 |
| padding_0 | [u8; 5] | 17 | 5 |
| first_factor | u16 | 22 | 2 |
| second_factor | [u8; 8] | 24 | 8 |
| third_factor | u64 | 32 | 8 |
| padding_1 | u64 | 40 | 8 |
| protocol_fee_percent | u8 | 48 | 1 |
| partner_fee_percent | u8 | 49 | 1 |
| referral_fee_percent | u8 | 50 | 1 |
| padding_0 | [u8; 5] | 51 | 5 |
| dynamic_fee | DynamicFeeStruct | 56 | 96 |
| initialized | u8 | 56 | 1 |
| padding | [u8; 7] | 57 | 7 |
| max_volatility_accumulator | u32 | 64 | 4 |
| variable_fee_control | u32 | 68 | 4 |
| bin_step | u16 | 72 | 2 |
| filter_period | u16 | 74 | 2 |
| decay_period | u16 | 76 | 2 |
| reduction_factor | u16 | 78 | 2 |
| last_update_timestamp | u64 | 80 | 8 |
| bin_step_u128 | u128 | 88 | 16 |
| sqrt_price_reference | u128 | 104 | 16 |
| volatility_accumulator | u128 | 120 | 16 |
| volatility_reference | u128 | 136 | 16 |
| padding_1 | [u64; 2] | 152 | 16 |
| token_a_mint | pubkey | 168 | 32 |
| token_b_mint | pubkey | 200 | 32 |
| token_a_vault | pubkey | 232 | 32 |
| token_b_vault | pubkey | 264 | 32 |
| whitelisted_vault | pubkey | 296 | 32 |
| partner | pubkey | 328 | 32 |
| liquidity | u128 | 360 | 16 |
| _padding | u128 | 376 | 16 |
| protocol_a_fee | u64 | 392 | 8 |
| protocol_b_fee | u64 | 400 | 8 |
| partner_a_fee | u64 | 408 | 8 |
| partner_b_fee | u64 | 416 | 8 |
| sqrt_min_price | u128 | 424 | 16 |
| sqrt_max_price | u128 | 440 | 16 |
| sqrt_price | u128 | 456 | 16 |
| activation_point | u64 | 472 | 8 |
| activation_type | u8 | 480 | 1 |
| pool_status | u8 | 481 | 1 |
| token_a_flag | u8 | 482 | 1 |
| token_b_flag | u8 | 483 | 1 |
| collect_fee_mode | u8 | 484 | 1 |
| pool_type | u8 | 485 | 1 |
| version | u8 | 486 | 1 |
| _padding_0 | u8 | 487 | 1 |
| fee_a_per_liquidity | [u8; 32] | 488 | 32 |
| fee_b_per_liquidity | [u8; 32] | 520 | 32 |
| permanent_lock_liquidity | u128 | 552 | 16 |
| metrics | PoolMetrics | 568 | 80 |
| total_lp_a_fee | u128 | 568 | 16 |
| total_lp_b_fee | u128 | 584 | 16 |
| total_protocol_a_fee | u64 | 600 | 8 |
| total_protocol_b_fee | u64 | 608 | 8 |
| total_partner_a_fee | u64 | 616 | 8 |
| total_partner_b_fee | u64 | 624 | 8 |
| total_position | u64 | 632 | 8 |
| padding | u64 | 640 | 8 |
| creator | pubkey | 648 | 32 |
| _padding_1 | [u64; 6] | 680 | 48 |
| reward_infos | [RewardInfo; 2] | 728 | 384 |
bytemuck, repr c). Every field here is naturally aligned, so the in-memory layout matches the offsets shown.Every Pool account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches token_a_mint at offset 168. A dataSize: 1112 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": "hQrXeCntzbV"
}
},
{
"memcmp": {
"offset": 168,
"bytes": "<token_a_mint 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.