Raydium CPMM
constant product AMM program
What this page showsOne program (code at one address on Solana): who can change it, whether POA rebuilt the running code, which audit covers which of its instructions (actions), and the answer for each one.
The proof chain, per instruction
For each link, how many of the program's 14 published instruction proofs hold it.
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.
Why this program verdict
Reasons
- 14 instruction(s) changed since review.
- 14 instructions: 0 MATCHED, 14 CHANGED, 0 PARTIAL, 0 UNKNOWN.
- 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.
- 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.
- 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.
- Instruction initialize_v2 has a handler in source (programs/cp-swap/src/instructions/initialize_v2.rs) but is not in the pinned IDL.
- 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.
- 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.
- 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.
Coverage counters
Counts of instructions, not shares. Each counter is independent.
- instructions discovered
- 14
- decoded
- 14
- in report-named files
- 0
- review scope established
- 0
- matching reviewed live code
- 0
- changed
- 14
- partial
- 0
- unknown
- 0
Which audit covers what
One row per report that relates to this program. Counts are instructions of this program, out of 14.
| 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.
Deployment evidence
Read by POA from mainnet. RPC endpoints are listed by host.
- Upgrade authority
- Upgradeable. Held byFytDrV…sceZQK FytDrVzDybM1TwFQPGb8qaxZR7dBCzNeqT3vtQsceZQK (opens Solana Explorer in a new tab)
- Loader
- BPF upgradeable loader
- ProgramData address
- DMawCQ…zntHhU DMawCQzbgNTmbzaESc7o6pvL1KAeetY8zA7jNpzntHhU (opens Solana Explorer in a new tab)Derived address equals the stored address
- Deployment slot
- 463,522,946
- Observed
- 472,718,3012026-11-22 23:04 UTC · finalized
- Agreement
- All endpoints returned identical bytes2 of 2 endpoints answered
- Executable hash
- 7e691824f591…f50951a4f83e 7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83eSHA-256 of the executable region with trailing zero bytes removed (the solana-verify rule).
Other deployment fields
- Cluster
- mainnet-beta
- Executable
- Yes
- Executable bytes
- 749,833 hashed of 793,824 stored
- ELF header
- Valid ELF magic
- Executable hash, full
- 7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e
RPC endpoints
| Endpoint | Slot | Account data SHA-256 | Result |
|---|---|---|---|
| api.mainnet-beta.solana.com | 472,718,301 | 12d322…331eff | ok |
| solana-rpc.publicnode.com | 472,718,299 | 12d322…331eff | ok |
POA's rebuild, then a provider's claim
Left: what POA ran and compared itself. Right: what a third-party API returned. A provider claim alone never establishes the live source.
What POA ran itself
Independent build (POA)
POA rebuilt the source itself and compared the hash with the one it read from mainnet.
State: Rebuilt by POA, hash matches
Built hash equals the on-chain hash
POA rebuilt 3d69122 (#83, add initialize v2 instruction) with the image solana-verify selects from [workspace.metadata.cli] (Solana 3.1.10). The executable hash equals the on-chain hash. The commit is dated 2026-11-01, one day after the deployment at slot 463522946 (2026-10-31T02:37:24Z), so the code was deployed before it was merged. OtterSec's recorded commit cfdb70a8 (2024-12-24) was not built: it lacks instructions the on-chain bytes name (InitializeV2, CollectExcessLamports). Source input: GitHub codeload tarball of 3d69122 (sha256 not recorded); the sandbox git gateway does not serve this repository, so no git clone was used.
- Live source used for verdicts
- Established by POA's build · 3d69122790e9POA rebuilt 3d691227 and the executable hash equals the on-chain hash 7e691824f591… read at slot 472718301.
- Commit
- 3d69122790e97cd6aff24e8ba95940793773f58c
- Library
- raydium_cp_swap
- Toolchain
- image auto-selected by solana-verify for workspace.metadata.cli solana = 3.1.10 (Anchor.toml solana_version 3.1.10); solana-verify 0.5.2
- Image digest
- solanafoundation/solana-verifiable-build (auto-selected for Solana 3.1.10 from [workspace.metadata.cli])@sha256:f71be5ca7620b7e40933b7f1294fa44e01d08c1fc5ba1f375a2478f5a01580d3
- Command
solana-verify build --library-name raydium_cp_swap && solana-verify get-executable-hash target/deploy/raydium_cp_swap.so- Build log SHA-256
- 34cc3f…5f0a66 34cc3f7f57b69ae409c71990c59c46510da3df578ea473ab761330a9055f0a66
- Ran at
- 2026-11-22 21:38 UTC
- Comparison
- Built hash equals the on-chain hash
- Built hash, full
- 7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e
What a provider says
Third-party claim (OtterSec verify API) — not POA's own check
What the provider's API returned. Shown as a claim; it does not establish the live source on its own.
Provider says verified: No
Not established
- Agrees with POA's hash
- Yes
- Repository
- raydium-io/raydium-cp-swap/tree/cfdb70a8ca9ea62bb5c304d4492ac0fc371ae8ce (opens in a new tab)
- Commit
- cfdb70a8ca9ea62bb5c304d4492ac0fc371ae8ce
- Last verified
- Not established
- Frozen
- No
- Queried
- 2026-11-22 23:04 UTC
- HTTP status
- 200
- Response SHA-256
- cd3eda…1374e6 cd3edaf4267e79bbe8bff6517d3a09fa9c3a3d2c63a5a02abe4384af001374e6
Snapshot history
Every POA snapshot of this program. Snapshots are never overwritten.
| Observed slot | Observed | Executable hash | Upgrade authority | File |
|---|---|---|---|---|
| 472,718,301 | 2026-11-22 23:04 UTC | 7e6918…a4f83e | FytDrV…sceZQK (opens Solana Explorer in a new tab) | Published JSON |
Change events
Differences between consecutive POA snapshots. This is not a complete upgrade history.
No change between POA's snapshots is recorded.
Instructions
Every instruction in the pinned interface definition, with the verdict for each.
14 of 14 instructions shown
- close_permission_pda
9c5420764587467b · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - collect_creator_fee
1416567bc61cdb84 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - collect_fund_fee
a78a4e95dfc2067e · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - collect_protocol_fee
8888fcddc2427e59 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - create_amm_config
8934edd4d7756c68 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - create_permission_pda
878802d889a9b5ca · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - deposit
f223c68952e1f2b6 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - initialize
afaf6d1f0d989bed · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - initialize_with_permission
3f37fe4131b25979 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - swap_base_input
8fbe5adac41e33de · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - swap_base_output
37d96256a34ab4ad · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - update_amm_config
313cae889a1c74c8 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - update_pool_status
82576c062ee0757b · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed - withdraw
b712469c946da122 · Anchor IDL discriminator
- Instruction decoded: Established
- Live code rebuilt by POA: Established
- Report names the handler file: Not established
- Reviewed commit printed: Not established
- Reviewed code is the live code: Known difference
Changed