Skip to content

What this page showsOne instruction (an action a wallet lists) of Raydium CLMM (AMM v3): whether the code that runs it is the code an audit reviewed, why, and the recorded transactions that called it.

Verdict

Partial

Some evidence exists, but one required link is missing, for example the live source is only claimed by a provider or the report names no files.

Checked against the snapshot at slot 471,652,492

The proof chain
  1. Instruction decoded

    Established

    The instruction bytes match one entry in a pinned IDL or schema, with no collision.

  2. Live code rebuilt by POA

    Established

    POA rebuilt a source commit and its hash equals the on-chain executable.

  3. Report names the handler file

    Not established

    A published audit report's scope covers the file that implements this instruction.

  4. Reviewed commit printed

    Not established

    That report prints the scope and the exact commit it reviewed.

  5. Reviewed code is the live code

    Not established

    The reviewed commit and the rebuilt live commit hold the same program code.

Every link must hold before POA says Matched. A missing link is not a failure, and never an approval.

Reasons

  1. Program snapshot at slot 471652492: executable, RPC agree, hash 4b96e92b8705….
  2. Decoded by anchor-idl-discriminator 2b04ed0b1ac91e62.
  3. Handler programs/amm/src/instructions/swap_v2.rs#L333 (swap_v2).
  4. Live source 6d7a0f82 established by POA's independent build.
  5. No report with directly extracted scope names a path covering the handler file.

What would be needed for a stronger verdict

  1. A report whose printed scope paths cover the handler file.

Checks

Decoded
Yes
Handler located
Yes
Handler in report-named files
No
Review scope established
No
Reviewed commit known
Yes
Live source rebuilt by POA
Yes
Live source equals reviewed
No
Handler changed since review
Not established
Program crate changed since review
Not established
Program immutable
No
Evidence fresh
Yes

Discriminator and decoding

Discriminator
2b04ed0b1ac91e62
Method
Anchor IDL discriminator
IDL SHA-256
040a8c4866317fa028be8a81db54325ce6d9b92aeb10582d89992855bbbce5c1
Collisions
None

Arguments

NameType
amountu64
other_amount_thresholdu64
sqrt_price_limit_x64u128
is_base_inputbool

Accounts

Signer and writable flags from the interface definition.

AccountFlagsFixed addressNotes
payerSignerThe user performing the swap
amm_configRead-onlyThe factory state to read protocol fees
pool_stateWritableThe program account of the pool in which the swap will be performed
input_token_accountWritableThe user token account for input token
output_token_accountWritableThe user token account for output token
input_vaultWritableThe vault token account for input token
output_vaultWritableThe vault token account for output token
observation_stateWritableThe program account for the most recent oracle observation
token_programRead-onlyTokenk…3VQ5DA TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA (opens Solana Explorer in a new tab)SPL program for token transfers
token_program_2022Read-onlyTokenz…pPxuEb TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb (opens Solana Explorer in a new tab)SPL program 2022 for token transfers
memo_programRead-onlyMemoSq…GmfcHr MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr (opens Solana Explorer in a new tab)Memo program
input_vault_mintRead-onlyThe mint of token vault 0
output_vault_mintRead-onlyThe mint of token vault 1

Handler source

Handler source at the pinned commitprograms/amm/src/instructions/swap_v2.rs#L333-L362Source on GitHub · f1ec7dc ↗ (opens in a new tab)
Function
swap_v2
File
programs/amm/src/instructions/swap_v2.rs · lines 333–362
At commit
f1ec7dcb4f8ea46f662c5fef0326817a463a1bfe
Mapping
Anchor program module

Audit relations

How each report relates to this instruction's handler file.

AuditorRelationReviewed commitScope confidence
OtterSecAudit: Raydium AMM v3 (concentrated liquidity) (opens in a new tab)Program covered, no paths named4fe73c7Printed in the report
Sec3Security Assessment Report: Raydium CLMM Incremental, Limit Order and Dynamic Fee (opens in a new tab)Program covered, no paths namedf1ec7dcPrinted in the report

Changed files since review

Files changed between the reviewed commit and the live source, as recorded.

No changed file is recorded for this instruction.

Call trees

The static tree comes from the handler source. The observed tree comes from a finalized transaction. They are separate evidence and are not merged.

Instruction
The instruction itself, with its own verdict.
Static
A source file read at the handler map's pinned commit.
Observed
A call seen in a finalized mainnet transaction.
Inferred
A call read from the handler source, not observed on chain.

Static, from source at f1ec7dc

  • Signer
    • InstructionPartial
      • StaticPartial
      • StaticPartial
      • InferredUnknown
      • InferredUnknown
      • InferredUnknown
      • InferredUnknown
      • InferredUnknown

Observed in transaction 5qAjGnwuKW… at slot 471,508,182

  • Signer
    • InstructionUnknown
    • InstructionUnknown
    • InstructionUnknown
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
    • InstructionUnknown
    • InstructionPartial
      • ObservedUnknown
      • ObservedUnknown
    • InstructionUnknown

Current deployment predates this transaction. Deployment slot 459,932,378, transaction slot 471,508,182, snapshot slot 471,652,492.

Open on Solana Explorer (opens in a new tab)

Observed in transaction 2GGLfcsJyu… at slot 471,507,824

  • Signer
    • InstructionPartial
      • ObservedUnknown
      • ObservedUnknown
    • InstructionPartial
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
        • ObservedUnknown
        • ObservedUnknown
        • ObservedUnknown
        • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown
      • ObservedUnknown

Current deployment predates this transaction. Deployment slot 459,932,378, transaction slot 471,507,824, snapshot slot 471,652,492.

Open on Solana Explorer (opens in a new tab)

Transactions

Each curated transaction that calls this instruction, with what is known about the code that ran.

  1. 01

    Transaction at slot 471,508,182

    Current deployment predates this transaction. Deployment slot 459,932,378, transaction slot 471,508,182, snapshot slot 471,652,492.

    Signature
    5qAjGnwuKWPDVfYu7r5BB4SHyuDMDAvwgwSuXgXHBGfZxradJfkhLFo21Ef4qsFdLiuz3ocfPNCVK5tQbHigVsoV
    Slot
    471,508,182
    Block time
    2026-11-19 22:47 UTC
    Status
    Succeeded
    Fee
    27,000 lamports
    Compute units
    69,927
    Message version
    legacy
    RPC response SHA-256
    4442ace17ee83ce8ea899be105ef570705c10f9714658d63c51aec36a1b2464d

    Open on Solana Explorer (opens in a new tab)

  2. 02

    Transaction at slot 471,507,824

    Current deployment predates this transaction. Deployment slot 459,932,378, transaction slot 471,507,824, snapshot slot 471,652,492.

    Signature
    2GGLfcsJyuyt6yzh1DSVoq7F1fr5Lw23AFZTpE9g11TGdZgEzywKKHFzjpVDW72hgC259ZJPkmAYpJs849VJbRwA
    Slot
    471,507,824
    Block time
    2026-11-19 22:45 UTC
    Status
    Succeeded
    Fee
    11,801 lamports
    Compute units
    152,196
    Message version
    1
    RPC response SHA-256
    9d10deb23998a3ba62533b05644ece97e1379f8a056b840b54477ffd4a5d9ccf

    Open on Solana Explorer (opens in a new tab)