Solana IDL reference › Meteora CP AMM (DAMM V2) › Pool

Pool account layout

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

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
pool_feesPoolFeesStruct8160
base_feeBaseFeeStruct840
cliff_fee_numeratoru6488
base_fee_modeu8161
padding_0[u8; 5]175
first_factoru16222
second_factor[u8; 8]248
third_factoru64328
padding_1u64408
protocol_fee_percentu8481
partner_fee_percentu8491
referral_fee_percentu8501
padding_0[u8; 5]515
dynamic_feeDynamicFeeStruct5696
initializedu8561
padding[u8; 7]577
max_volatility_accumulatoru32644
variable_fee_controlu32684
bin_stepu16722
filter_periodu16742
decay_periodu16762
reduction_factoru16782
last_update_timestampu64808
bin_step_u128u1288816
sqrt_price_referenceu12810416
volatility_accumulatoru12812016
volatility_referenceu12813616
padding_1[u64; 2]15216
token_a_mintpubkey16832
token_b_mintpubkey20032
token_a_vaultpubkey23232
token_b_vaultpubkey26432
whitelisted_vaultpubkey29632
partnerpubkey32832
liquidityu12836016
_paddingu12837616
protocol_a_feeu643928
protocol_b_feeu644008
partner_a_feeu644088
partner_b_feeu644168
sqrt_min_priceu12842416
sqrt_max_priceu12844016
sqrt_priceu12845616
activation_pointu644728
activation_typeu84801
pool_statusu84811
token_a_flagu84821
token_b_flagu84831
collect_fee_modeu84841
pool_typeu84851
versionu84861
_padding_0u84871
fee_a_per_liquidity[u8; 32]48832
fee_b_per_liquidity[u8; 32]52032
permanent_lock_liquidityu12855216
metricsPoolMetrics56880
total_lp_a_feeu12856816
total_lp_b_feeu12858416
total_protocol_a_feeu646008
total_protocol_b_feeu646088
total_partner_a_feeu646168
total_partner_b_feeu646248
total_positionu646328
paddingu646408
creatorpubkey64832
_padding_1[u64; 6]68048
reward_infos[RewardInfo; 2]728384

getProgramAccounts filter

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>"
          }
        }
      ]
    }
  ]
}

Decode account data

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.

Other Meteora CP AMM (DAMM V2) account types

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.