{"schemaVersion":"poa-solana-protocol-proof-v1","slug":"raydium-cpmm","name":"Raydium CPMM","category":"constant product AMM","summary":"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.","website":"https://raydium.io","depth":"catalog","programs":[{"input":{"programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","label":"Raydium CPMM","role":"constant product AMM program","framework":"anchor","firstParty":true,"sourceRepo":"https://github.com/raydium-io/raydium-cp-swap","sourceAvailability":"public","libraryName":"raydium_cp_swap","mountPath":".","programPath":"programs/cp-swap","idl":{"url":"https://github.com/raydium-io/raydium-idl/blob/e7e0c96fe77bcf6a020b84a44c47a722aac8e359/raydium_cpmm/raydium_cp_swap.json","commit":"e7e0c96fe77bcf6a020b84a44c47a722aac8e359","provenance":"repo","format":"anchor-0.30","localFile":"raydium-cpmm/raydium_cp_swap.json","sha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81"},"buildCommitCandidates":[{"commit":"3d69122790e97cd6aff24e8ba95940793773f58c","source":{"url":"https://github.com/raydium-io/raydium-cp-swap/commit/3d69122790e97cd6aff24e8ba95940793773f58c","method":"derived_from_source","retrievedAt":"2026-11-22T21:27:00Z","states":"The on-chain bytes contain the log string 'Instruction: InitializeV2'. initialize_v2 is added by 3d69122 (#83, 2026-11-01) and is absent from lib.rs at f4b9b26 (2026-10-20), the last commit before the deployment at slot 463522946 (2026-10-31T02:37:24Z)."}},{"commit":"cfdb70a8ca9ea62bb5c304d4492ac0fc371ae8ce","source":{"url":"https://verify.osec.io/status/CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","method":"trusted_provider","retrievedAt":"2026-11-22T21:27:00Z","states":"OtterSec verify API: is_verified false, on_chain_hash 7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e, empty executable_hash, commit cfdb70a8 (2024-12-24), last_verified_at null."}}],"identitySources":[{"url":"https://docs.raydium.io/reference/program-addresses","method":"official_docs","retrievedAt":"2026-11-22T21:27:00Z","states":"Raydium's program address page lists CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C."},{"url":"https://github.com/raydium-io/raydium-cp-swap/blob/3d69122790e97cd6aff24e8ba95940793773f58c/programs/cp-swap/src/lib.rs","method":"derived_from_source","retrievedAt":"2026-11-22T21:27:00Z","states":"declare_id! uses CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C when the devnet feature is off; Anchor.toml names the same ID."},{"url":"https://api.mainnet-beta.solana.com","method":"independent_rpc_read","retrievedAt":"2026-11-22T21:27:00Z","states":"getAccountInfo at slot 472691187: executable true, owner BPFLoaderUpgradeab1e11111111111111111111111, programData DMawCQzbgNTmbzaESc7o6pvL1KAeetY8zA7jNpzntHhU (deployed slot 463522946, upgrade authority FytDrVzDybM1TwFQPGb8qaxZR7dBCzNeqT3vtQsceZQK)."}]},"evidence":{"snapshot":{"schemaVersion":"poa-solana-program-snapshot-v1","chain":"solana","cluster":"mainnet-beta","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","exists":true,"executable":true,"owner":"BPFLoaderUpgradeab1e11111111111111111111111","loader":"bpf-loader-upgradeable","programDataAddress":"DMawCQzbgNTmbzaESc7o6pvL1KAeetY8zA7jNpzntHhU","programDataLinkValid":true,"deploymentSlot":463522946,"upgradeAuthority":"FytDrVzDybM1TwFQPGb8qaxZR7dBCzNeqT3vtQsceZQK","immutable":false,"executableRegionBytes":793824,"executableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e","executableTrimmedBytes":749833,"elfMagicOk":true,"observedSlot":472718301,"observedAt":"2026-11-22T23:04:17.451Z","commitment":"finalized","rpc":[{"endpoint":"api.mainnet-beta.solana.com","slot":472718301,"accountDataSha256":"12d322ccdce467564bea705c4802a96e9ebc18f7e291553c14c4a060e1331eff","ok":true},{"endpoint":"solana-rpc.publicnode.com","slot":472718299,"accountDataSha256":"12d322ccdce467564bea705c4802a96e9ebc18f7e291553c14c4a060e1331eff","ok":true}],"rpcAgreement":"agree","method":"independent_rpc_read","notes":[]},"providerClaims":[{"provider":"otter-sec-verify-api","endpoint":"https://verify.osec.io/status/CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","observedAt":"2026-11-22T23:04:18.360Z","httpStatus":200,"isVerified":false,"reportedOnChainHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e","reportedExecutableHash":null,"repoUrl":"https://github.com/raydium-io/raydium-cp-swap/tree/cfdb70a8ca9ea62bb5c304d4492ac0fc371ae8ce","commit":"cfdb70a8ca9ea62bb5c304d4492ac0fc371ae8ce","lastVerifiedAt":null,"isFrozen":false,"agreesWithPoaHash":true,"rawSha256":"cd3edaf4267e79bbe8bff6517d3a09fa9c3a3d2c63a5a02abe4384af001374e6","method":"trusted_provider"}],"build":{"state":"reproduced_match","repo":"https://github.com/raydium-io/raydium-cp-swap","commit":"3d69122790e97cd6aff24e8ba95940793773f58c","libraryName":"raydium_cp_swap","mountPath":".","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","imageDigest":"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","comparedToHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e","logsSha256":"34cc3f7f57b69ae409c71990c59c46510da3df578ea473ab761330a9055f0a66","ranAt":"2026-11-22T21:38:16Z","method":"independent_build","builtHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e","logFile":"logs/raydium-cpmm-3d69122.build.log","reason":"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."},"liveSource":{"commit":"3d69122790e97cd6aff24e8ba95940793773f58c","repo":"https://github.com/raydium-io/raydium-cp-swap","basis":"independent_build","note":"POA rebuilt 3d691227 and the executable hash equals the on-chain hash 7e691824f591… read at slot 472718301."}},"instructions":[{"name":"close_permission_pda","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"9c5420764587467b","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[],"accounts":[{"name":"owner","signer":true,"writable":true,"address":"GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"},{"name":"permission_authority","signer":false,"writable":false},{"name":"permission","signer":false,"writable":true,"docs":"Initialize config state account to store protocol owner address and fee rates."},{"name":"system_program","signer":false,"writable":false,"address":"11111111111111111111111111111111"}],"collisions":[],"handler":{"instruction":"close_permission_pda","handlerPath":"programs/cp-swap/src/instructions/admin/close_permission_pda.rs","handlerFn":"instructions::close_permission_pda","startLine":31,"endLine":33,"relatedFiles":["programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/admin/close_permission_pda.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs"],"staticCpis":[],"mapping":"anchor-program-module"}},{"name":"collect_creator_fee","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"1416567bc61cdb84","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[],"accounts":[{"name":"creator","signer":true,"writable":true,"docs":"Only pool creator can collect fee"},{"name":"authority","signer":false,"writable":false},{"name":"pool_state","signer":false,"writable":true,"docs":"Pool state stores accumulated protocol fee amount"},{"name":"amm_config","signer":false,"writable":false,"docs":"Amm config account stores fund_owner"},{"name":"token_0_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_0"},{"name":"token_1_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_1"},{"name":"vault_0_mint","signer":false,"writable":false,"docs":"The mint of token_0 vault"},{"name":"vault_1_mint","signer":false,"writable":false,"docs":"The mint of token_1 vault"},{"name":"creator_token_0","signer":false,"writable":true,"docs":"The address that receives the collected token_0 fund fees"},{"name":"creator_token_1","signer":false,"writable":true,"docs":"The address that receives the collected token_1 fund fees"},{"name":"token_0_program","signer":false,"writable":false,"docs":"Spl token program or token program 2022"},{"name":"token_1_program","signer":false,"writable":false,"docs":"Spl token program or token program 2022"},{"name":"associated_token_program","signer":false,"writable":false,"docs":"Program to create an ATA for receiving position NFT","address":"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"},{"name":"system_program","signer":false,"writable":false,"docs":"To create a new program account","address":"11111111111111111111111111111111"}],"collisions":[],"handler":{"instruction":"collect_creator_fee","handlerPath":"programs/cp-swap/src/instructions/collect_creator_fee.rs","handlerFn":"instructions::collect_creator_fee","startLine":101,"endLine":137,"relatedFiles":["programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/collect_creator_fee.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/token.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_pool_vault_to_user (transfer_checked signed by the pool authority PDA)"}],"mapping":"anchor-program-module"}},{"name":"collect_fund_fee","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"a78a4e95dfc2067e","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"amount_0_requested","type":"u64"},{"name":"amount_1_requested","type":"u64"}],"accounts":[{"name":"owner","signer":true,"writable":false,"docs":"Only admin or fund_owner can collect fee now"},{"name":"authority","signer":false,"writable":false},{"name":"pool_state","signer":false,"writable":true,"docs":"Pool state stores accumulated protocol fee amount"},{"name":"amm_config","signer":false,"writable":false,"docs":"Amm config account stores fund_owner"},{"name":"token_0_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_0"},{"name":"token_1_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_1"},{"name":"vault_0_mint","signer":false,"writable":false,"docs":"The mint of token_0 vault"},{"name":"vault_1_mint","signer":false,"writable":false,"docs":"The mint of token_1 vault"},{"name":"recipient_token_0_account","signer":false,"writable":true,"docs":"The address that receives the collected token_0 fund fees"},{"name":"recipient_token_1_account","signer":false,"writable":true,"docs":"The address that receives the collected token_1 fund fees"},{"name":"token_program","signer":false,"writable":false,"docs":"The SPL program to perform token transfers","address":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"name":"token_program_2022","signer":false,"writable":false,"docs":"The SPL program 2022 to perform token transfers","address":"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"}],"collisions":[],"handler":{"instruction":"collect_fund_fee","handlerPath":"programs/cp-swap/src/instructions/admin/collect_fund_fee.rs","handlerFn":"instructions::collect_fund_fee","startLine":73,"endLine":122,"relatedFiles":["programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/admin/collect_fund_fee.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/token.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_pool_vault_to_user (transfer_checked signed by the pool authority PDA)"}],"mapping":"anchor-program-module"}},{"name":"collect_protocol_fee","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"8888fcddc2427e59","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"amount_0_requested","type":"u64"},{"name":"amount_1_requested","type":"u64"}],"accounts":[{"name":"owner","signer":true,"writable":false,"docs":"Only admin or owner can collect fee now"},{"name":"authority","signer":false,"writable":false},{"name":"pool_state","signer":false,"writable":true,"docs":"Pool state stores accumulated protocol fee amount"},{"name":"amm_config","signer":false,"writable":false,"docs":"Amm config account stores owner"},{"name":"token_0_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_0"},{"name":"token_1_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_1"},{"name":"vault_0_mint","signer":false,"writable":false,"docs":"The mint of token_0 vault"},{"name":"vault_1_mint","signer":false,"writable":false,"docs":"The mint of token_1 vault"},{"name":"recipient_token_0_account","signer":false,"writable":true,"docs":"The address that receives the collected token_0 protocol fees"},{"name":"recipient_token_1_account","signer":false,"writable":true,"docs":"The address that receives the collected token_1 protocol fees"},{"name":"token_program","signer":false,"writable":false,"docs":"The SPL program to perform token transfers","address":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"name":"token_program_2022","signer":false,"writable":false,"docs":"The SPL program 2022 to perform token transfers","address":"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"}],"collisions":[],"handler":{"instruction":"collect_protocol_fee","handlerPath":"programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs","handlerFn":"instructions::collect_protocol_fee","startLine":74,"endLine":131,"relatedFiles":["programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/mod.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_pool_vault_to_user (transfer_checked signed by the pool authority PDA)"}],"mapping":"anchor-program-module"}},{"name":"create_amm_config","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"8934edd4d7756c68","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"index","type":"u16"},{"name":"trade_fee_rate","type":"u64"},{"name":"protocol_fee_rate","type":"u64"},{"name":"fund_fee_rate","type":"u64"},{"name":"create_pool_fee","type":"u64"},{"name":"creator_fee_rate","type":"u64"}],"accounts":[{"name":"owner","signer":true,"writable":true,"docs":"Address to be set as protocol owner.","address":"GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"},{"name":"amm_config","signer":false,"writable":true,"docs":"Initialize config state account to store protocol owner address and fee rates."},{"name":"system_program","signer":false,"writable":false,"address":"11111111111111111111111111111111"}],"collisions":[],"handler":{"instruction":"create_amm_config","handlerPath":"programs/cp-swap/src/instructions/admin/create_config.rs","handlerFn":"instructions::create_amm_config","startLine":32,"endLine":53,"relatedFiles":["programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/admin/create_config.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs"],"staticCpis":[],"mapping":"anchor-program-module"}},{"name":"create_permission_pda","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"878802d889a9b5ca","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[],"accounts":[{"name":"owner","signer":true,"writable":true,"address":"GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"},{"name":"permission_authority","signer":false,"writable":false},{"name":"permission","signer":false,"writable":true,"docs":"Initialize config state account to store protocol owner address and fee rates."},{"name":"system_program","signer":false,"writable":false,"address":"11111111111111111111111111111111"}],"collisions":[],"handler":{"instruction":"create_permission_pda","handlerPath":"programs/cp-swap/src/instructions/admin/create_permission_pda.rs","handlerFn":"instructions::create_permission_pda","startLine":41,"endLine":45,"relatedFiles":["programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/admin/create_permission_pda.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs"],"staticCpis":[],"mapping":"anchor-program-module"}},{"name":"deposit","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"f223c68952e1f2b6","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"lp_token_amount","type":"u64"},{"name":"maximum_token_0_amount","type":"u64"},{"name":"maximum_token_1_amount","type":"u64"}],"accounts":[{"name":"owner","signer":true,"writable":false,"docs":"Pays to mint the position"},{"name":"authority","signer":false,"writable":false},{"name":"pool_state","signer":false,"writable":true},{"name":"owner_lp_token","signer":false,"writable":true,"docs":"Owner lp token account"},{"name":"token_0_account","signer":false,"writable":true,"docs":"The payer's token account for token_0"},{"name":"token_1_account","signer":false,"writable":true,"docs":"The payer's token account for token_1"},{"name":"token_0_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_0"},{"name":"token_1_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_1"},{"name":"token_program","signer":false,"writable":false,"docs":"token Program","address":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"name":"token_program_2022","signer":false,"writable":false,"docs":"Token program 2022","address":"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"},{"name":"vault_0_mint","signer":false,"writable":false,"docs":"The mint of token_0 vault"},{"name":"vault_1_mint","signer":false,"writable":false,"docs":"The mint of token_1 vault"},{"name":"lp_mint","signer":false,"writable":true,"docs":"Lp token mint"}],"collisions":[],"handler":{"instruction":"deposit","handlerPath":"programs/cp-swap/src/instructions/deposit.rs","handlerFn":"instructions::deposit","startLine":87,"endLine":205,"relatedFiles":["programs/cp-swap/src/curve/mod.rs","programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/deposit.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/token.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_user_to_pool_vault (transfer_checked)"},{"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","program":"SPL Token","via":"utils::token::token_mint_to (mint LP tokens, signed by the pool authority PDA)"}],"mapping":"anchor-program-module"}},{"name":"initialize","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"afaf6d1f0d989bed","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"init_amount_0","type":"u64"},{"name":"init_amount_1","type":"u64"},{"name":"open_time","type":"u64"}],"accounts":[{"name":"creator","signer":true,"writable":true,"docs":"Address paying to create the pool. Can be anyone"},{"name":"amm_config","signer":false,"writable":false,"docs":"Which config the pool belongs to."},{"name":"authority","signer":false,"writable":false,"docs":"pool vault and lp mint authority"},{"name":"pool_state","signer":false,"writable":true,"docs":"PDA account: seeds = [ POOL_SEED.as_bytes(), amm_config.key().as_ref(), token_0_mint.key().as_ref(), token_1_mint.key().as_ref(), ],  Or random account: must be signed by cli"},{"name":"token_0_mint","signer":false,"writable":false,"docs":"Token_0 mint, the key must smaller than token_1 mint."},{"name":"token_1_mint","signer":false,"writable":false,"docs":"Token_1 mint, the key must grater then token_0 mint."},{"name":"lp_mint","signer":false,"writable":true,"docs":"pool lp mint"},{"name":"creator_token_0","signer":false,"writable":true,"docs":"payer token0 account"},{"name":"creator_token_1","signer":false,"writable":true,"docs":"creator token1 account"},{"name":"creator_lp_token","signer":false,"writable":true,"docs":"creator lp token account"},{"name":"token_0_vault","signer":false,"writable":true},{"name":"token_1_vault","signer":false,"writable":true},{"name":"create_pool_fee","signer":false,"writable":true,"docs":"create pool fee account","address":"DNXgeM9EiiaAbaWvwjHj9fQQLAX5ZsfHyvmYUNRAdNC8"},{"name":"observation_state","signer":false,"writable":true,"docs":"an account to store oracle observations"},{"name":"token_program","signer":false,"writable":false,"docs":"Program to create mint account and mint tokens","address":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"name":"token_0_program","signer":false,"writable":false,"docs":"Spl token program or token program 2022"},{"name":"token_1_program","signer":false,"writable":false,"docs":"Spl token program or token program 2022"},{"name":"associated_token_program","signer":false,"writable":false,"docs":"Program to create an ATA for receiving position NFT","address":"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"},{"name":"system_program","signer":false,"writable":false,"docs":"To create a new program account","address":"11111111111111111111111111111111"},{"name":"rent","signer":false,"writable":false,"docs":"Sysvar for program account","address":"SysvarRent111111111111111111111111111111111"}],"collisions":[],"handler":{"instruction":"initialize","handlerPath":"programs/cp-swap/src/instructions/initialize.rs","handlerFn":"instructions::initialize","startLine":216,"endLine":231,"relatedFiles":["programs/cp-swap/src/curve/mod.rs","programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/initialize.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/mod.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_user_to_pool_vault (transfer_checked)"},{"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","program":"SPL Token","via":"utils::token::token_mint_to (mint LP tokens, signed by the pool authority PDA)"},{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::create_token_account (vault token account)"},{"programId":"11111111111111111111111111111111","program":"System Program","via":"utils::token::create_or_allocate_account"}],"mapping":"anchor-program-module"}},{"name":"initialize_with_permission","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"3f37fe4131b25979","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"init_amount_0","type":"u64"},{"name":"init_amount_1","type":"u64"},{"name":"open_time","type":"u64"},{"name":"creator_fee_on","type":"CreatorFeeOn"}],"accounts":[{"name":"payer","signer":true,"writable":true,"docs":"Address paying to create the pool. Can be anyone"},{"name":"creator","signer":false,"writable":false},{"name":"amm_config","signer":false,"writable":false,"docs":"Which config the pool belongs to."},{"name":"authority","signer":false,"writable":false,"docs":"pool vault and lp mint authority"},{"name":"pool_state","signer":false,"writable":true,"docs":"PDA account: seeds = [ POOL_SEED.as_bytes(), amm_config.key().as_ref(), token_0_mint.key().as_ref(), token_1_mint.key().as_ref(), ],  Or random account: must be signed by cli"},{"name":"token_0_mint","signer":false,"writable":false,"docs":"Token_0 mint, the key must smaller than token_1 mint."},{"name":"token_1_mint","signer":false,"writable":false,"docs":"Token_1 mint, the key must grater then token_0 mint."},{"name":"lp_mint","signer":false,"writable":true,"docs":"pool lp mint"},{"name":"payer_token_0","signer":false,"writable":true,"docs":"payer token0 account"},{"name":"payer_token_1","signer":false,"writable":true,"docs":"payer token1 account"},{"name":"payer_lp_token","signer":false,"writable":true,"docs":"payer lp token account"},{"name":"token_0_vault","signer":false,"writable":true},{"name":"token_1_vault","signer":false,"writable":true},{"name":"create_pool_fee","signer":false,"writable":true,"docs":"create pool fee account","address":"DNXgeM9EiiaAbaWvwjHj9fQQLAX5ZsfHyvmYUNRAdNC8"},{"name":"observation_state","signer":false,"writable":true,"docs":"an account to store oracle observations"},{"name":"permission","signer":false,"writable":false},{"name":"token_program","signer":false,"writable":false,"docs":"Program to create mint account and mint tokens","address":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"name":"token_0_program","signer":false,"writable":false,"docs":"Spl token program or token program 2022"},{"name":"token_1_program","signer":false,"writable":false,"docs":"Spl token program or token program 2022"},{"name":"associated_token_program","signer":false,"writable":false,"docs":"Program to create an ATA for receiving position NFT","address":"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"},{"name":"system_program","signer":false,"writable":false,"docs":"To create a new program account","address":"11111111111111111111111111111111"}],"collisions":[],"handler":{"instruction":"initialize_with_permission","handlerPath":"programs/cp-swap/src/instructions/initialize_with_permission.rs","handlerFn":"instructions::initialize_with_permission","startLine":219,"endLine":235,"relatedFiles":["programs/cp-swap/src/instructions/initialize.rs","programs/cp-swap/src/instructions/initialize_with_permission.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs"],"staticCpis":[],"mapping":"anchor-program-module"}},{"name":"swap_base_input","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"8fbe5adac41e33de","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"amount_in","type":"u64"},{"name":"minimum_amount_out","type":"u64"}],"accounts":[{"name":"payer","signer":true,"writable":false,"docs":"The user performing the swap"},{"name":"authority","signer":false,"writable":false},{"name":"amm_config","signer":false,"writable":false,"docs":"The factory state to read protocol fees"},{"name":"pool_state","signer":false,"writable":true,"docs":"The program account of the pool in which the swap will be performed"},{"name":"input_token_account","signer":false,"writable":true,"docs":"The user token account for input token"},{"name":"output_token_account","signer":false,"writable":true,"docs":"The user token account for output token"},{"name":"input_vault","signer":false,"writable":true,"docs":"The vault token account for input token"},{"name":"output_vault","signer":false,"writable":true,"docs":"The vault token account for output token"},{"name":"input_token_program","signer":false,"writable":false,"docs":"SPL program for input token transfers"},{"name":"output_token_program","signer":false,"writable":false,"docs":"SPL program for output token transfers"},{"name":"input_token_mint","signer":false,"writable":false,"docs":"The mint of input token"},{"name":"output_token_mint","signer":false,"writable":false,"docs":"The mint of output token"},{"name":"observation_state","signer":false,"writable":true,"docs":"The program account for the most recent oracle observation"}],"collisions":[],"handler":{"instruction":"swap_base_input","handlerPath":"programs/cp-swap/src/instructions/swap_base_input.rs","handlerFn":"instructions::swap_base_input","startLine":75,"endLine":212,"relatedFiles":["programs/cp-swap/src/curve/calculator.rs","programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/swap_base_input.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/token.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_user_to_pool_vault (transfer_checked)"},{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_pool_vault_to_user (transfer_checked signed by the pool authority PDA)"}],"mapping":"anchor-program-module"}},{"name":"swap_base_output","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"37d96256a34ab4ad","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"max_amount_in","type":"u64"},{"name":"amount_out","type":"u64"}],"accounts":[{"name":"payer","signer":true,"writable":false,"docs":"The user performing the swap"},{"name":"authority","signer":false,"writable":false},{"name":"amm_config","signer":false,"writable":false,"docs":"The factory state to read protocol fees"},{"name":"pool_state","signer":false,"writable":true,"docs":"The program account of the pool in which the swap will be performed"},{"name":"input_token_account","signer":false,"writable":true,"docs":"The user token account for input token"},{"name":"output_token_account","signer":false,"writable":true,"docs":"The user token account for output token"},{"name":"input_vault","signer":false,"writable":true,"docs":"The vault token account for input token"},{"name":"output_vault","signer":false,"writable":true,"docs":"The vault token account for output token"},{"name":"input_token_program","signer":false,"writable":false,"docs":"SPL program for input token transfers"},{"name":"output_token_program","signer":false,"writable":false,"docs":"SPL program for output token transfers"},{"name":"input_token_mint","signer":false,"writable":false,"docs":"The mint of input token"},{"name":"output_token_mint","signer":false,"writable":false,"docs":"The mint of output token"},{"name":"observation_state","signer":false,"writable":true,"docs":"The program account for the most recent oracle observation"}],"collisions":[],"handler":{"instruction":"swap_base_output","handlerPath":"programs/cp-swap/src/instructions/swap_base_output.rs","handlerFn":"instructions::swap_base_output","startLine":9,"endLine":154,"relatedFiles":["programs/cp-swap/src/curve/calculator.rs","programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/swap_base_input.rs","programs/cp-swap/src/instructions/swap_base_output.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/token.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_user_to_pool_vault (transfer_checked)"},{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_pool_vault_to_user (transfer_checked signed by the pool authority PDA)"}],"mapping":"anchor-program-module"}},{"name":"update_amm_config","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"313cae889a1c74c8","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"param","type":"u8"},{"name":"value","type":"u64"}],"accounts":[{"name":"owner","signer":true,"writable":false,"docs":"The amm config owner or admin","address":"GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"},{"name":"amm_config","signer":false,"writable":true,"docs":"Amm config account to be changed"}],"collisions":[],"handler":{"instruction":"update_amm_config","handlerPath":"programs/cp-swap/src/instructions/admin/update_config.rs","handlerFn":"instructions::update_amm_config","startLine":17,"endLine":40,"relatedFiles":["programs/cp-swap/src/curve/fees.rs","programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/admin/update_config.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs"],"staticCpis":[],"mapping":"anchor-program-module"}},{"name":"update_pool_status","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"82576c062ee0757b","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"status","type":"u8"}],"accounts":[{"name":"authority","signer":true,"writable":false,"address":"GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"},{"name":"pool_state","signer":false,"writable":true}],"collisions":[],"handler":{"instruction":"update_pool_status","handlerPath":"programs/cp-swap/src/instructions/admin/update_pool_status.rs","handlerFn":"instructions::update_pool_status","startLine":15,"endLine":21,"relatedFiles":["programs/cp-swap/src/instructions/admin/update_pool_status.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs"],"staticCpis":[],"mapping":"anchor-program-module"}},{"name":"withdraw","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","discriminatorHex":"b712469c946da122","decoding":"anchor-idl-discriminator","idlSha256":"1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81","args":[{"name":"lp_token_amount","type":"u64"},{"name":"minimum_token_0_amount","type":"u64"},{"name":"minimum_token_1_amount","type":"u64"}],"accounts":[{"name":"owner","signer":true,"writable":false,"docs":"Pays to mint the position"},{"name":"authority","signer":false,"writable":false},{"name":"pool_state","signer":false,"writable":true,"docs":"Pool state account"},{"name":"owner_lp_token","signer":false,"writable":true,"docs":"Owner lp token account"},{"name":"token_0_account","signer":false,"writable":true,"docs":"The token account for receive token_0,"},{"name":"token_1_account","signer":false,"writable":true,"docs":"The token account for receive token_1"},{"name":"token_0_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_0"},{"name":"token_1_vault","signer":false,"writable":true,"docs":"The address that holds pool tokens for token_1"},{"name":"token_program","signer":false,"writable":false,"docs":"token Program","address":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"name":"token_program_2022","signer":false,"writable":false,"docs":"Token program 2022","address":"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"},{"name":"vault_0_mint","signer":false,"writable":false,"docs":"The mint of token_0 vault"},{"name":"vault_1_mint","signer":false,"writable":false,"docs":"The mint of token_1 vault"},{"name":"lp_mint","signer":false,"writable":true,"docs":"Pool lp token mint"},{"name":"memo_program","signer":false,"writable":false,"docs":"memo program","address":"MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"}],"collisions":[],"handler":{"instruction":"withdraw","handlerPath":"programs/cp-swap/src/instructions/withdraw.rs","handlerFn":"instructions::withdraw","startLine":99,"endLine":220,"relatedFiles":["programs/cp-swap/src/curve/mod.rs","programs/cp-swap/src/error.rs","programs/cp-swap/src/instructions/withdraw.rs","programs/cp-swap/src/lib.rs","programs/cp-swap/src/states/mod.rs","programs/cp-swap/src/utils/token.rs"],"staticCpis":[{"program":"SPL Token or Token-2022 (mint's token program)","via":"utils::token::transfer_from_pool_vault_to_user (transfer_checked signed by the pool authority PDA)"},{"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","program":"SPL Token","via":"utils::token::token_burn (burn LP tokens)"}],"mapping":"anchor-program-module"}}],"proofs":[{"instruction":"close_permission_pda","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 9c5420764587467b.","Handler programs/cp-swap/src/instructions/admin/close_permission_pda.rs#L31 (instructions::close_permission_pda).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/admin/close_permission_pda.rs (A +33 -0), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/close_permission_pda.rs","status":"A","additions":33,"deletions":0},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"collect_creator_fee","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 1416567bc61cdb84.","Handler programs/cp-swap/src/instructions/collect_creator_fee.rs#L101 (instructions::collect_creator_fee).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/collect_creator_fee.rs (A +137 -0), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/token.rs (M +264 -35)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/collect_creator_fee.rs","status":"A","additions":137,"deletions":0},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"collect_fund_fee","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator a78a4e95dfc2067e.","Handler programs/cp-swap/src/instructions/admin/collect_fund_fee.rs#L73 (instructions::collect_fund_fee).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/admin/collect_fund_fee.rs (M +2 -1), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/token.rs (M +264 -35)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/collect_fund_fee.rs","status":"M","additions":2,"deletions":1},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"collect_protocol_fee","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 8888fcddc2427e59.","Handler programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs#L74 (instructions::collect_protocol_fee).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs (M +2 -1), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/mod.rs (M +2 -0)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs","status":"M","additions":2,"deletions":1},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/mod.rs","status":"M","additions":2,"deletions":0}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"create_amm_config","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 8934edd4d7756c68.","Handler programs/cp-swap/src/instructions/admin/create_config.rs#L32 (instructions::create_amm_config).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/admin/create_config.rs (M +5 -3), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/create_config.rs","status":"M","additions":5,"deletions":3},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"create_permission_pda","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 878802d889a9b5ca.","Handler programs/cp-swap/src/instructions/admin/create_permission_pda.rs#L41 (instructions::create_permission_pda).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/admin/create_permission_pda.rs (A +45 -0), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/create_permission_pda.rs","status":"A","additions":45,"deletions":0},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"deposit","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator f223c68952e1f2b6.","Handler programs/cp-swap/src/instructions/deposit.rs#L87 (instructions::deposit).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/deposit.rs (M +19 -16), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/token.rs (M +264 -35)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/deposit.rs","status":"M","additions":19,"deletions":16},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"initialize","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator afaf6d1f0d989bed.","Handler programs/cp-swap/src/instructions/initialize.rs#L216 (instructions::initialize).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/initialize.rs (M +278 -98), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/mod.rs (M +2 -0)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/initialize.rs","status":"M","additions":278,"deletions":98},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/mod.rs","status":"M","additions":2,"deletions":0}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"initialize_with_permission","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 3f37fe4131b25979.","Handler programs/cp-swap/src/instructions/initialize_with_permission.rs#L219 (instructions::initialize_with_permission).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/instructions/initialize.rs (M +278 -98), programs/cp-swap/src/instructions/initialize_with_permission.rs (A +235 -0), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/instructions/initialize.rs","status":"M","additions":278,"deletions":98},{"path":"programs/cp-swap/src/instructions/initialize_with_permission.rs","status":"A","additions":235,"deletions":0},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"swap_base_input","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 8fbe5adac41e33de.","Handler programs/cp-swap/src/instructions/swap_base_input.rs#L75 (instructions::swap_base_input).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/curve/calculator.rs (M +97 -71), programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/swap_base_input.rs (M +71 -86), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/token.rs (M +264 -35)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/curve/calculator.rs","status":"M","additions":97,"deletions":71},{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/swap_base_input.rs","status":"M","additions":71,"deletions":86},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"swap_base_output","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 37d96256a34ab4ad.","Handler programs/cp-swap/src/instructions/swap_base_output.rs#L9 (instructions::swap_base_output).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/curve/calculator.rs (M +97 -71), programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/swap_base_input.rs (M +71 -86), programs/cp-swap/src/instructions/swap_base_output.rs (M +77 -87), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/token.rs (M +264 -35)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/curve/calculator.rs","status":"M","additions":97,"deletions":71},{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/swap_base_input.rs","status":"M","additions":71,"deletions":86},{"path":"programs/cp-swap/src/instructions/swap_base_output.rs","status":"M","additions":77,"deletions":87},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"update_amm_config","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 313cae889a1c74c8.","Handler programs/cp-swap/src/instructions/admin/update_config.rs#L17 (instructions::update_amm_config).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/curve/fees.rs (M +42 -9), programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/admin/update_config.rs (M +17 -2), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/curve/fees.rs","status":"M","additions":42,"deletions":9},{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/update_config.rs","status":"M","additions":17,"deletions":2},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"update_pool_status","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator 82576c062ee0757b.","Handler programs/cp-swap/src/instructions/admin/update_pool_status.rs#L15 (instructions::update_pool_status).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/instructions/admin/update_pool_status.rs (M +2 -1), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/instructions/admin/update_pool_status.rs","status":"M","additions":2,"deletions":1},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"},{"instruction":"withdraw","programId":"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","verdict":"CHANGED","reasons":["Program snapshot at slot 472718301: executable, RPC agree, hash 7e691824f591….","Decoded by anchor-idl-discriminator b712469c946da122.","Handler programs/cp-swap/src/instructions/withdraw.rs#L99 (instructions::withdraw).","Only partly reviewed per raydium-cpmm-sec3-2025-pr55 (PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope); these reports give neither MATCHED nor CHANGED for this instruction.","Live source 3d691227 established by POA's independent build.","No report with directly extracted scope names a path covering the handler file.","CHANGED: between raydium-cpmm-madshield-2024's reviewed commit 8f10f251 and live 3d691227 the handler's traced files changed: programs/cp-swap/src/error.rs (M +18 -3), programs/cp-swap/src/instructions/withdraw.rs (M +32 -26), programs/cp-swap/src/lib.rs (M +217 -22), programs/cp-swap/src/states/mod.rs (M +14 -2), programs/cp-swap/src/utils/token.rs (M +264 -35)."],"unknowns":["A report whose printed scope paths cover the handler file."],"checks":{"decoded":true,"handlerLocated":true,"inReportNamedFiles":false,"reviewScopeEstablished":false,"reviewedCommitKnown":true,"liveSourceIndependentlyEstablished":true,"liveSourceEqualsReviewed":false,"handlerChangedSinceReview":true,"crateChangedSinceReview":true,"programImmutable":false,"evidenceFresh":true},"audits":[{"auditId":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","reviewedCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","scopeConfidence":"direct","relation":"program-named-no-paths"},{"auditId":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","reviewedCommit":"f361e34","scopeConfidence":"direct","relation":"program-named-no-paths"}],"changedFiles":[{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/withdraw.rs","status":"M","additions":32,"deletions":26},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"checkedAtSlot":472718301,"snapshotExecutableHash":"7e691824f591590ed44f5716ffc5e1040914e3aaa9ee4effdc47f50951a4f83e"}],"coverage":{"totalDiscovered":14,"decoded":14,"inReportNamedFiles":0,"reviewScopeEstablished":0,"matchingReviewedLiveCode":0,"changed":14,"unknown":0,"partial":0},"programVerdict":"CHANGED","programReasons":["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."],"handlerMap":{"repo":"https://github.com/raydium-io/raydium-cp-swap","commit":"3d69122790e97cd6aff24e8ba95940793773f58c"}}],"nonExecutableAccounts":[{"address":"DMawCQzbgNTmbzaESc7o6pvL1KAeetY8zA7jNpzntHhU","kind":"other","label":"Raydium CPMM ProgramData","note":"ProgramData account of the BPF upgradeable loader for Raydium CPMM. Upgrade authority FytDrVzDybM1TwFQPGb8qaxZR7dBCzNeqT3vtQsceZQK; last deployment slot 463522946 (block time 2026-10-31T02:37:24Z).","source":{"url":"https://api.mainnet-beta.solana.com","method":"independent_rpc_read","retrievedAt":"2026-11-22T21:27:00Z","states":"getAccountInfo base64 at slot 472691325: ProgramData tag 3, slot 463522946, authority FytDrVzDybM1TwFQPGb8qaxZR7dBCzNeqT3vtQsceZQK; getBlockTime(463522946) = 2026-10-31T02:37:24Z."}}],"demoAccounts":[],"audits":[{"id":"raydium-cpmm-madshield-2024","auditor":"Mad Shield","title":"Raydium Constant Product AMM Program Audit Report (raydium-cp-swap v1.0.0)","reportUrl":"https://raw.githubusercontent.com/raydium-io/raydium-docs/09d705ffc044430a6d6aa888f096f176df7077af/audit/MadShield%20Q1%202024/raydium-cp-swap-v-1.0.0.pdf","pdfSha256":"6af6618aefd3f259c59477bf01af6620569d4cc9f31d0053946a64dc6d380560","pdfBytes":622201,"retrievedAt":"2026-11-22T21:40:00Z","dates":{"published":"2024-03-25"},"reviewedRepo":"https://github.com/raydium-io/raydium-cp-swap","reviewedCommits":[{"commit":"0d56d2cbde2e6215fdfefdbfb13fb92b32479a55","role":"initial","page":5,"note":"Printed as 'Commit (start of audit)'."},{"commit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","role":"final","page":5,"note":"Printed as 'Commit (end of audit)' (2024-03-18)."}],"scopePaths":[],"exclusions":[],"programsInScope":["CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C"],"findings":[{"id":"MAD_T22_01","title":"Calculating inverse fee doesn't account for mints with ONE_IN_BASIS_POINT fee-rate and max_fee for SPL-Token-22","severity":"critical","status":"RESOLVED","recheckEvidence":"The issue is in the Token-2022 program; the report says Raydium's own inverse-fee implementation is not affected."},{"id":"MAD_RAY_02","title":"The pool account could not be initialized due to the stack limits of the Solana runtime","severity":"critical","status":"RESOLVED","fixCommit":"b05d1dd1","recheckEvidence":"Report: patch commit b05d1dd1."},{"id":"MAD_RAY_03","title":"Wrong evaluation of pool vaults dyadic relationship with input token accounts in swap instructions","severity":"critical","status":"RESOLVED"},{"id":"MAD_RAY_04","title":"Misplaced rounding for division computation in the swap calculation","severity":"high","status":"RESOLVED","fixCommit":"707cd6ec","recheckEvidence":"Report: patch commit 707cd6ec."},{"id":"MAD_RAY_IMPR_01","title":"Emitting the wrong token amount in the swap event results in logging incorrect swap data","severity":"informational","status":"ACKNOWLEDGED","fixCommit":"b05d1dd1","recheckEvidence":"Rated Improvement in the report; patch commit b05d1dd1."}],"findingCounts":{"critical":3,"high":1,"informational":1},"extraction":"pdf-text","confidence":"direct","notes":"Scope is the raydium-cp-swap repository between the printed start and end commits (page 5); no file paths are listed. The program README links this report. Hosted in raydium-io/raydium-docs under audit/MadShield Q1 2024."},{"id":"raydium-cpmm-sec3-2025-pr55","auditor":"Sec3","title":"Security Assessment Report Raydium CP Swap PR55","reportUrl":"https://raw.githubusercontent.com/raydium-io/raydium-docs/09d705ffc044430a6d6aa888f096f176df7077af/audit/Sec3%20Q3%202025/raydium_cp_swap_pr55.pdf","pdfSha256":"df0efd141a24f1f7a62a3877113883afd92b710b713652a91d32095fdd01ea15","pdfBytes":146721,"retrievedAt":"2026-11-22T21:40:00Z","dates":{"published":"2025-09-10"},"reviewedRepo":"https://github.com/raydium-io/raydium-cp-swap","reviewedCommits":[{"commit":"7732131","role":"initial","page":2,"note":"Printed as the PR55 range 7732131 → 0ddfda5; resolves to 773213157746b28426a0807204cd460f77c15d29 (2025-08-08)."},{"commit":"0ddfda5","role":"initial","page":2,"note":"End of the reviewed PR55 range; findings are 'identified in commit 0ddfda5'. Resolves to 0ddfda553227ee2d1d9696457ab0757e0ba63aac (2025-08-11)."},{"commit":"f361e34","role":"fix-review","page":6,"note":"Fixes are printed as 'Fixed by commit f361e34'; resolves to f361e3457f25759394bd9d23fde0c1aa715c12f9 (2025-09-05)."}],"scopePaths":[],"exclusions":["tests","soundness of the economics design and algorithm (report appendix: out of scope)"],"partialReview":["PR55 (support creator fee) diff 7732131 → 0ddfda5 only; findings marked P2 are beyond PR55 and outside the audit scope"],"programsInScope":["CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C"],"findings":[{"id":"P1-L-01","title":"Inconsistent fee calculation in swap_base_input and swap_base_output","severity":"low","status":"Resolved","fixCommit":"f361e34"},{"id":"P1-I-01","title":"Inconsistent requirement for trade_fee_rate + creator_fee_rate","severity":"informational","status":"Resolved","fixCommit":"f361e34"},{"id":"P1-I-02","title":"Potential division-by-zero in split_creator_fee","severity":"informational","status":"Resolved","fixCommit":"f361e34"},{"id":"P1-I-03","title":"Inaccurate fee rate limit","severity":"informational","status":"Resolved","fixCommit":"f361e34"},{"id":"P1-I-04","title":"Redundant bump calculation","severity":"informational","status":"Resolved","fixCommit":"f361e34"},{"id":"P2-L-01","title":"Imprecise ObservationState","severity":"low","status":"Resolved","fixCommit":"f361e34"},{"id":"P2-L-02","title":"Inaccurate lp_supply","severity":"low","status":"Acknowledged"},{"id":"P2-I-01","title":"Unnecessary signer on burn","severity":"informational","status":"Acknowledged"}],"findingCounts":{"low":3,"informational":5},"extraction":"pdf-text","confidence":"direct","notes":"Diff-scoped review of PR55 (creator fee) in raydium-cp-swap, excluding tests (page 2). P2 items are marked beyond PR55 and out of the audit's scope. Hosted in raydium-io/raydium-docs under audit/Sec3 Q3 2025."}],"sourceDiffs":[{"repo":"https://github.com/raydium-io/raydium-cp-swap","fromCommit":"8f10f251da354f14dc8e317f1fea1bbc78d9c19b","fromLabel":"MadShield end-of-audit commit (8f10f25)","toCommit":"3d69122790e97cd6aff24e8ba95940793773f58c","toLabel":"POA rebuilt live commit (3d69122)","path":"programs/cp-swap","filesChanged":[{"path":"programs/cp-swap/Cargo.toml","status":"M","additions":25,"deletions":22},{"path":"programs/cp-swap/src/curve/calculator.rs","status":"M","additions":97,"deletions":71},{"path":"programs/cp-swap/src/curve/constant_product.rs","status":"M","additions":30,"deletions":41},{"path":"programs/cp-swap/src/curve/fees.rs","status":"M","additions":42,"deletions":9},{"path":"programs/cp-swap/src/error.rs","status":"M","additions":18,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/close_creator_fee_share.rs","status":"A","additions":38,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/close_permission_pda.rs","status":"A","additions":33,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/close_support_mint_associated.rs","status":"A","additions":36,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/collect_excess_lamports.rs","status":"A","additions":105,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/collect_fund_fee.rs","status":"M","additions":2,"deletions":1},{"path":"programs/cp-swap/src/instructions/admin/collect_protocol_fee.rs","status":"M","additions":2,"deletions":1},{"path":"programs/cp-swap/src/instructions/admin/create_config.rs","status":"M","additions":5,"deletions":3},{"path":"programs/cp-swap/src/instructions/admin/create_creator_fee_share.rs","status":"A","additions":64,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/create_permission_pda.rs","status":"A","additions":45,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/create_support_mint_associated.rs","status":"A","additions":50,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/mod.rs","status":"M","additions":21,"deletions":0},{"path":"programs/cp-swap/src/instructions/admin/update_config.rs","status":"M","additions":17,"deletions":2},{"path":"programs/cp-swap/src/instructions/admin/update_pool_status.rs","status":"M","additions":2,"deletions":1},{"path":"programs/cp-swap/src/instructions/collect_creator_fee.rs","status":"A","additions":137,"deletions":0},{"path":"programs/cp-swap/src/instructions/collect_creator_fee_permissionless.rs","status":"A","additions":146,"deletions":0},{"path":"programs/cp-swap/src/instructions/deposit.rs","status":"M","additions":19,"deletions":16},{"path":"programs/cp-swap/src/instructions/initialize.rs","status":"M","additions":278,"deletions":98},{"path":"programs/cp-swap/src/instructions/initialize_v2.rs","status":"A","additions":230,"deletions":0},{"path":"programs/cp-swap/src/instructions/initialize_with_permission.rs","status":"A","additions":235,"deletions":0},{"path":"programs/cp-swap/src/instructions/mod.rs","status":"M","additions":12,"deletions":0},{"path":"programs/cp-swap/src/instructions/swap_base_input.rs","status":"M","additions":71,"deletions":86},{"path":"programs/cp-swap/src/instructions/swap_base_output.rs","status":"M","additions":77,"deletions":87},{"path":"programs/cp-swap/src/instructions/withdraw.rs","status":"M","additions":32,"deletions":26},{"path":"programs/cp-swap/src/lib.rs","status":"M","additions":217,"deletions":22},{"path":"programs/cp-swap/src/states/config.rs","status":"M","additions":20,"deletions":2},{"path":"programs/cp-swap/src/states/creator_fee_share.rs","status":"A","additions":137,"deletions":0},{"path":"programs/cp-swap/src/states/events.rs","status":"M","additions":13,"deletions":7},{"path":"programs/cp-swap/src/states/mod.rs","status":"M","additions":14,"deletions":2},{"path":"programs/cp-swap/src/states/oracle.rs","status":"A","additions":169,"deletions":0},{"path":"programs/cp-swap/src/states/permission.rs","status":"A","additions":17,"deletions":0},{"path":"programs/cp-swap/src/states/pool.rs","status":"M","additions":330,"deletions":31},{"path":"programs/cp-swap/src/states/support_mint_associated.rs","status":"A","additions":24,"deletions":0},{"path":"programs/cp-swap/src/utils/account_load.rs","status":"A","additions":169,"deletions":0},{"path":"programs/cp-swap/src/utils/math.rs","status":"M","additions":18,"deletions":24},{"path":"programs/cp-swap/src/utils/mod.rs","status":"M","additions":2,"deletions":0},{"path":"programs/cp-swap/src/utils/token.rs","status":"M","additions":264,"deletions":35}],"computedAt":"2026-11-22T22:59:04Z","method":"git-diff-numstat","compareUrl":"https://github.com/raydium-io/raydium-cp-swap/compare/8f10f251da354f14dc8e317f1fea1bbc78d9c19b...3d69122790e97cd6aff24e8ba95940793773f58c"}],"transactions":["5JEh36vFpd8uJFfhsZa8aMqzpcLE8tvJLmPc4q3vAkRPhhvjg5WeEKj6dNAbyXeoty2AWdBQFwqngvW9Yc5ZDPrs","hq9cd2Td1ibp13rutfcU5bKJGydAJZFAEDchc3knmgmuHGrpWeifokrgsMtaAsKa8tcnaBeRYqcKg1uLZZmp5XD"],"openQuestions":["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."],"generatedAt":"2026-11-22T23:04:15.308Z","observedSlot":472718301,"inputSha256":"854e2ac5f93785395ed33bb97e0f7491d4bfcc0f5bd995127d30190f2fa7119c"}