Solana instructions › Raydium CPMM (CP Swap) › collect_fund_fee
Raydium CPMM (CP Swap) instruction. Program ID CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C. Position in this snapshot: 0.
Discriminator or tag: 0xa78a4e95dfc2067e — published in the IDL snapshot.
Collect the fund fee accrued to the pool # Arguments * `ctx` - The context of accounts * `amount_0_requested` - The maximum amount of token_0 to send, can be 0 to collect fees in only token_1 * `amount_1_requested` - The maximum amount of token_1 to send, can be 0 to collect fees in only token_0
| # | Account | Role |
|---|---|---|
| 0 | owner | signer |
| 1 | authority | read-only |
| 2 | pool_state | writable |
| 3 | amm_config | read-only |
| 4 | token_0_vault | writable |
| 5 | token_1_vault | writable |
| 6 | vault_0_mint | read-only |
| 7 | vault_1_mint | read-only |
| 8 | recipient_token_0_account | writable |
| 9 | recipient_token_1_account | writable |
| 10 | token_program | read-only |
| 11 | token_program_2022 | read-only |
| Argument | Type |
|---|---|
| amount_0_requested | u64 |
| amount_1_requested | u64 |
To see which instructions a confirmed transaction actually ran, paste its signature into the Rugsight transaction explainer.
Instruction lists and published discriminators come from solana-idls@1.2.1 (MIT) and, for the System Program, Compute Budget and Associated Token Account programs, from their public instruction enums (Apache-2.0). Snapshot date 2026-11-17. Programs can upgrade, so a live program may differ from this snapshot. Computed Anchor discriminators are the first 8 bytes of sha256("global:<snake_case_name>") and are labelled as computed.