Raydium CPMM
Raydium CPMM (CP-Swap) is a constant product AMM on Solana that supports Token-2022 mints and needs no OpenBook market. One upgradeable Anchor program holds all pools.
- Recorded data
- 1programs
- 2audit reports
- 2curated transactions
- 15open questions
- observed at slot472,718,301
What this page showsEvery program Raydium CPMM runs on Solana, the audit reports POA holds for it, which report covers which instructions (actions), and what POA could not establish.
Open questions
What is not established
15 open questions recorded
Facts research could not establish, copied from the evidence as written.
- Neither report lists file paths. Mad Shield reviewed the repository up to 8f10f25 (March 2024); Sec3 reviewed only the PR55 creator-fee diff (August 2025). POA's rebuild of 3d69122 (November 2026) reproduces the on-chain executable hash; 41 files under programs/cp-swap changed after 8f10f25. POA found no report that reviewed the deployed version.
- The deployment (2026-10-31) predates the commit that reproduces it (3d69122, dated 2026-11-01), so the code was deployed before it was merged to the default branch.
- The pinned IDL (raydium-io/raydium-idl, Anchor 0.31 era) lists 14 instructions. The deployed source has 21; the 7 newer instructions are not decoded by POA.
- There is no on-chain Anchor IDL account for this program.
- No top-level deposit or withdraw was found in about 1,400 recent program transactions, so no liquidity example is published.
- The upgrade authority FytDrVzD... (the same key as Raydium CLMM's) can replace the program. POA has not checked what kind of account controls it.
- Other reports in raydium-docs/audit cover other Raydium programs (AMM v4, CLMM, staking, LaunchLab, liquidity locking) and are not recorded here.
- Static CPI lists come from source pattern matching in the handler function and same-file helpers it calls (three levels). An empty list does not prove the handler makes no CPI.
- Raydium CPMM: Instruction collect_creator_fee_permissionless has a handler in source (programs/cp-swap/src/instructions/collect_creator_fee_permissionless.rs) but is not in the pinned IDL.
- Raydium CPMM: Instruction create_creator_fee_share has a handler in source (programs/cp-swap/src/instructions/admin/create_creator_fee_share.rs) but is not in the pinned IDL.
- Raydium CPMM: Instruction close_creator_fee_share has a handler in source (programs/cp-swap/src/instructions/admin/close_creator_fee_share.rs) but is not in the pinned IDL.
- Raydium CPMM: Instruction initialize_v2 has a handler in source (programs/cp-swap/src/instructions/initialize_v2.rs) but is not in the pinned IDL.
- Raydium CPMM: Instruction create_support_mint_associated has a handler in source (programs/cp-swap/src/instructions/admin/create_support_mint_associated.rs) but is not in the pinned IDL.
- Raydium CPMM: Instruction close_support_mint_associated has a handler in source (programs/cp-swap/src/instructions/admin/close_support_mint_associated.rs) but is not in the pinned IDL.
- Raydium CPMM: Instruction collect_excess_lamports has a handler in source (programs/cp-swap/src/instructions/admin/collect_excess_lamports.rs) but is not in the pinned IDL.
Programs
Executable programs POA read from mainnet, each with its proof chain counted over its instructions.
Raydium CPMM
constant product AMM program
- Verdict
- Changed
- Upgrade authority
- FytDrV…sceZQK (opens Solana Explorer in a new tab)
- Independent build
- Rebuilt by POA, hash matches
The proof chain Instruction decoded
14 of 14 instructions
Live code rebuilt by POA
14 of 14 instructions
Report names the handler file
0 of 14 instructions
Reviewed commit printed
0 of 14 instructions
Reviewed code is the live code
0 of 14 instructions
14 with a known difference
Every link must hold before POA says Matched. A missing link is not a failure, and never an approval.
Audit reports
2 reports, 2 with a reviewed commit printed.
Which audit covers what
For each program, one row per report that relates to it. Counts are instructions of that program.
| Report | Checked version (commit) | Names the file that runs it | Covers the program, no files named | Checked version vs running code |
|---|---|---|---|---|
| Mad Shield | 8f10f25 | 0 of 14 | 14 of 14 | Code changed since: 41 files |
| Sec3 | f361e34 | 0 of 14 | 14 of 14 | Other commit, no recorded diff |
No report's checked version can be tied to the running code: POA cannot show the audited version is the running version.
As extracted from each PDF. Commits, scope paths and exclusions are what the report prints. A dash means the record states no count for that severity.
01
Mad Shield
Raydium Constant Product AMM Program Audit Report (raydium-cp-swap v1.0.0)
published 2024-03-25
Reviewed commits
- 0d56d2cinitial · p. 5
- 8f10f25final · p. 5
Scope paths
No paths namedExclusions
None statedFindings
- 3 critical
- 1 high
- – medium
- – low
- 1 info
PDF SHA-2566af661…380560 6af6618aefd3f259c59477bf01af6620569d4cc9f31d0053946a64dc6d380560Printed in the report · PDF text02
Sec3
Security Assessment Report Raydium CP Swap PR55
published 2025-09-10
Reviewed commits
- 7732131initial · p. 2
- 0ddfda5initial · p. 2
- f361e34fix review · p. 6
Scope paths
No paths namedExclusions
- tests
- soundness of the economics design and algorithm (report appendix: out of scope)
Findings
- – critical
- – high
- – medium
- 3 low
- 5 info
PDF SHA-256df0efd…01ea15 df0efd141a24f1f7a62a3877113883afd92b710b713652a91d32095fdd01ea15Printed in the report · PDF text
Source diffs
File-level git diffs between pinned commits, restricted to the program crate.
8f10f253d69122MadShield end-of-audit commit (8f10f25) → POA rebuilt live commit (3d69122)
From MadShield end-of-audit commit (8f10f25)
To POA rebuilt live commit (3d69122)
4141 files changed under programs/cp-swap
+3,263 −590 lines
computed 2026-11-22 · Compare on GitHub (opens in a new tab)
Show the 41 changed files
File Status Added Removed programs/cp-swap/Cargo.toml modified 25 22 programs/cp-swap/src/curve/calculator.rs modified 97 71 programs/cp-swap/src/curve/constant_product.rs modified 30 41 programs/cp-swap/src/curve/fees.rs modified 42 9 programs/cp-swap/src/error.rs modified 18 3 programs/cp-swap/src/instructions/admin/close_creator_fee_share.rs added 38 0 programs/cp-swap/src/instructions/admin/close_permission_pda.rs added 33 0 programs/cp-swap/src/instructions/admin/close_support_mint_associated.rs added 36 0 programs/cp-swap/src/instructions/admin/collect_excess_lamports.rs added 105 0 programs/cp-swap/src/instructions/admin/collect_fund_fee.rs modified 2 1 programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs modified 2 1 programs/cp-swap/src/instructions/admin/create_config.rs modified 5 3 programs/cp-swap/src/instructions/admin/create_creator_fee_share.rs added 64 0 programs/cp-swap/src/instructions/admin/create_permission_pda.rs added 45 0 programs/cp-swap/src/instructions/admin/create_support_mint_associated.rs added 50 0 programs/cp-swap/src/instructions/admin/mod.rs modified 21 0 programs/cp-swap/src/instructions/admin/update_config.rs modified 17 2 programs/cp-swap/src/instructions/admin/update_pool_status.rs modified 2 1 programs/cp-swap/src/instructions/collect_creator_fee.rs added 137 0 programs/cp-swap/src/instructions/collect_creator_fee_permissionless.rs added 146 0 programs/cp-swap/src/instructions/deposit.rs modified 19 16 programs/cp-swap/src/instructions/initialize.rs modified 278 98 programs/cp-swap/src/instructions/initialize_v2.rs added 230 0 programs/cp-swap/src/instructions/initialize_with_permission.rs added 235 0 programs/cp-swap/src/instructions/mod.rs modified 12 0 programs/cp-swap/src/instructions/swap_base_input.rs modified 71 86 programs/cp-swap/src/instructions/swap_base_output.rs modified 77 87 programs/cp-swap/src/instructions/withdraw.rs modified 32 26 programs/cp-swap/src/lib.rs modified 217 22 programs/cp-swap/src/states/config.rs modified 20 2 programs/cp-swap/src/states/creator_fee_share.rs added 137 0 programs/cp-swap/src/states/events.rs modified 13 7 programs/cp-swap/src/states/mod.rs modified 14 2 programs/cp-swap/src/states/oracle.rs added 169 0 programs/cp-swap/src/states/permission.rs added 17 0 programs/cp-swap/src/states/pool.rs modified 330 31 programs/cp-swap/src/states/support_mint_associated.rs added 24 0 programs/cp-swap/src/utils/account_load.rs added 169 0 programs/cp-swap/src/utils/math.rs modified 18 24 programs/cp-swap/src/utils/mod.rs modified 2 0 programs/cp-swap/src/utils/token.rs modified 264 35
Accounts that are not programs
State, config, mint and multisig accounts. None of these is an executable program, and none has a verdict.
| Address | Kind | Label | Note | Source |
|---|---|---|---|---|
DMawCQ…zntHhU DMawCQzbgNTmbzaESc7o6pvL1KAeetY8zA7jNpzntHhU (opens Solana Explorer in a new tab)Not an executable program | Other | Raydium CPMM ProgramData | ProgramData account of the BPF upgradeable loader for Raydium CPMM. Upgrade authority FytDrVzDybM1TwFQPGb8qaxZR7dBCzNeqT3vtQsceZQK; last deployment slot 463522946 (block time 2026-10-31T02:37:24Z). | Read by POA from mainnet · 2026-11-22 |
Curated transactions
Finalized mainnet transactions POA decoded. Each opens on Solana Explorer.
| Signature | Instruction | Slot | Block time | Code that ran |
|---|---|---|---|---|
| 5JEh36vF…5ZDPrs 5JEh36vFpd8uJFfhsZa8aMqzpcLE8tvJLmPc4q3vAkRPhhvjg5WeEKj6dNAbyXeoty2AWdBQFwqngvW9Yc5ZDPrs (opens Solana Explorer in a new tab) | swap_base_input | 472,699,897 | 2026-11-22 21:58 UTC | Current deployment predates this transaction. Deployment slot 463,522,946, transaction slot 472,699,897, snapshot slot 472,718,301. |
| hq9cd2Td…Zmp5XD hq9cd2Td1ibp13rutfcU5bKJGydAJZFAEDchc3knmgmuHGrpWeifokrgsMtaAsKa8tcnaBeRYqcKg1uLZZmp5XD (opens Solana Explorer in a new tab) | swap_base_output | 472,706,495 | 2026-11-22 22:21 UTC | Current deployment predates this transaction. Deployment slot 463,522,946, transaction slot 472,706,495, snapshot slot 472,718,301. |
Summary
- Category
- constant product AMM
- Depth
- Catalog only
- Observed at slot
- 472,718,301
- Generated
- 2026-11-22
- Input file SHA-256
- 854e2ac5f9…0f2fa7119c 854e2ac5f93785395ed33bb97e0f7491d4bfcc0f5bd995127d30190f2fa7119c
- Published JSON
- /explorer/solana/api/v1/protocols/raydium-cpmm