Skip to content

Proof of AuditsExplore EvidenceSolana programsRaydium CPMM

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.

  1. 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.
  2. 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.
  3. 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.
  4. There is no on-chain Anchor IDL account for this program.
  5. No top-level deposit or withdraw was found in about 1,400 recent program transactions, so no liquidity example is published.
  6. 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.
  7. Other reports in raydium-docs/audit cover other Raydium programs (AMM v4, CLMM, staking, LaunchLab, liquidity locking) and are not recorded here.
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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.

  1. The proof chain
    1. Instruction decoded

      14 of 14 instructions

    2. Live code rebuilt by POA

      14 of 14 instructions

    3. Report names the handler file

      0 of 14 instructions

    4. Reviewed commit printed

      0 of 14 instructions

    5. 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.

ReportChecked version (commit)Names the file that runs itCovers the program, no files namedChecked version vs running code
Mad Shield8f10f250 of 1414 of 14Code changed since: 41 files
Sec3f361e340 of 1414 of 14Other 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.

  1. 01

    Mad Shield

    Raydium Constant Product AMM Program Audit Report (raydium-cp-swap v1.0.0)

    published 2024-03-25

    Report PDF (opens in a new tab)

    Reviewed commits

    • 0d56d2cinitial · p. 5
    • 8f10f25final · p. 5

    Scope paths

    No paths named

    Exclusions

    None stated

    Findings

    • 3 critical
    • 1 high
    • – medium
    • – low
    • 1 info
    PDF SHA-2566af661…380560 6af6618aefd3f259c59477bf01af6620569d4cc9f31d0053946a64dc6d380560Printed in the report · PDF text
  2. 02

    Sec3

    Security Assessment Report Raydium CP Swap PR55

    published 2025-09-10

    Report PDF (opens in a new tab)

    Reviewed commits

    • 7732131initial · p. 2
    • 0ddfda5initial · p. 2
    • f361e34fix review · p. 6

    Scope paths

    No paths named

    Exclusions

    • 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.

  1. 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
    FileStatusAddedRemoved
    programs/cp-swap/Cargo.tomlmodified2522
    programs/cp-swap/src/curve/calculator.rsmodified9771
    programs/cp-swap/src/curve/constant_product.rsmodified3041
    programs/cp-swap/src/curve/fees.rsmodified429
    programs/cp-swap/src/error.rsmodified183
    programs/cp-swap/src/instructions/admin/close_creator_fee_share.rsadded380
    programs/cp-swap/src/instructions/admin/close_permission_pda.rsadded330
    programs/cp-swap/src/instructions/admin/close_support_mint_associated.rsadded360
    programs/cp-swap/src/instructions/admin/collect_excess_lamports.rsadded1050
    programs/cp-swap/src/instructions/admin/collect_fund_fee.rsmodified21
    programs/cp-swap/src/instructions/admin/collect_protocol_fee.rsmodified21
    programs/cp-swap/src/instructions/admin/create_config.rsmodified53
    programs/cp-swap/src/instructions/admin/create_creator_fee_share.rsadded640
    programs/cp-swap/src/instructions/admin/create_permission_pda.rsadded450
    programs/cp-swap/src/instructions/admin/create_support_mint_associated.rsadded500
    programs/cp-swap/src/instructions/admin/mod.rsmodified210
    programs/cp-swap/src/instructions/admin/update_config.rsmodified172
    programs/cp-swap/src/instructions/admin/update_pool_status.rsmodified21
    programs/cp-swap/src/instructions/collect_creator_fee.rsadded1370
    programs/cp-swap/src/instructions/collect_creator_fee_permissionless.rsadded1460
    programs/cp-swap/src/instructions/deposit.rsmodified1916
    programs/cp-swap/src/instructions/initialize.rsmodified27898
    programs/cp-swap/src/instructions/initialize_v2.rsadded2300
    programs/cp-swap/src/instructions/initialize_with_permission.rsadded2350
    programs/cp-swap/src/instructions/mod.rsmodified120
    programs/cp-swap/src/instructions/swap_base_input.rsmodified7186
    programs/cp-swap/src/instructions/swap_base_output.rsmodified7787
    programs/cp-swap/src/instructions/withdraw.rsmodified3226
    programs/cp-swap/src/lib.rsmodified21722
    programs/cp-swap/src/states/config.rsmodified202
    programs/cp-swap/src/states/creator_fee_share.rsadded1370
    programs/cp-swap/src/states/events.rsmodified137
    programs/cp-swap/src/states/mod.rsmodified142
    programs/cp-swap/src/states/oracle.rsadded1690
    programs/cp-swap/src/states/permission.rsadded170
    programs/cp-swap/src/states/pool.rsmodified33031
    programs/cp-swap/src/states/support_mint_associated.rsadded240
    programs/cp-swap/src/utils/account_load.rsadded1690
    programs/cp-swap/src/utils/math.rsmodified1824
    programs/cp-swap/src/utils/mod.rsmodified20
    programs/cp-swap/src/utils/token.rsmodified26435

Accounts that are not programs

State, config, mint and multisig accounts. None of these is an executable program, and none has a verdict.

AddressKindLabelNoteSource
OtherRaydium CPMM ProgramDataProgramData 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.

SignatureInstructionSlotBlock timeCode that ran
5JEh36vF…5ZDPrs 5JEh36vFpd8uJFfhsZa8aMqzpcLE8tvJLmPc4q3vAkRPhhvjg5WeEKj6dNAbyXeoty2AWdBQFwqngvW9Yc5ZDPrs (opens Solana Explorer in a new tab)swap_base_input472,699,8972026-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_output472,706,4952026-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