Skip to content

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

Verdict

Changed

The reviewed commit and the live source are both established, and the handler file or a traced related file changed between them.

Checked against the snapshot at slot 472,718,291

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

    Established

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

  4. Reviewed commit printed

    Established

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

  5. Reviewed code is the live code

    Known difference

    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 472718291: executable, RPC agree, hash 44a1bb9b185c….
  2. Decoded by anchor-sighash-derived dd91b1341f2f3fc9.
  3. Handler programs/openbook-v2/src/instructions/consume_events.rs#L38 (instructions::consume_events).
  4. Handler file is under the printed scope of openbook-ottersec-2023.
  5. Live source 796a4700 established by POA's independent build.
  6. Live commit 796a4700 is not the reviewed commit and no recorded diff shows the crate unchanged (openbook-ottersec-2023 (840e661: handler files changed)).
  7. CHANGED: between openbook-ottersec-2023's reviewed commit 840e661 and live 796a4700 the handler's traced files changed: programs/openbook-v2/src/accounts_ix/mod.rs (M +2 -2), programs/openbook-v2/src/error.rs (M +4 -0), programs/openbook-v2/src/instructions/consume_events.rs (M +5 -17), programs/openbook-v2/src/lib.rs (M +223 -47).

What would be needed for a stronger verdict

  1. A source diff from the reviewed commit to the live commit showing no change under the program crate.

Checks

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

Discriminator and decoding

Discriminator
dd91b1341f2f3fc9
Method
Derived Anchor sighash
IDL SHA-256
3c6767fb8423e4b64dd5cb1286864655ee05b2a0974399fc30ff28717cfbb836
Collisions
None

Arguments

NameType
limitu64

Accounts

Signer and writable flags from the interface definition.

AccountFlagsFixed addressNotes
consumeEventsAdmin (optional)Signer
marketWritable
eventHeapWritable

Handler source

Audit relations

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

AuditorRelationReviewed commitScope confidence
OtterSecOpenbook Audit (openbook-v2) (opens in a new tab)Handler file is in the named scope840e661Printed in the report

Changed files since review

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

FileStatusAddedRemoved
programs/openbook-v2/src/accounts_ix/mod.rsmodified22
programs/openbook-v2/src/error.rsmodified40
programs/openbook-v2/src/instructions/consume_events.rsmodified517
programs/openbook-v2/src/lib.rsmodified22347

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 796a470

  • Signer
    • InstructionChanged
      • StaticChanged
      • StaticChanged
      • StaticChanged
      • StaticChanged
      • StaticChanged
      • StaticChanged

Observed in transaction mxCBjpKKa5… at slot 472,641,147

  • Signer
    • InstructionChanged

Current deployment predates this transaction. Deployment slot 250,859,864, transaction slot 472,641,147, snapshot slot 472,718,291.

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 472,641,147

    Current deployment predates this transaction. Deployment slot 250,859,864, transaction slot 472,641,147, snapshot slot 472,718,291.

    Signature
    mxCBjpKKa5hfEF1WDETYqEmup9QbPvN8Wc3KL2v7QrBYU7nmCC6rsBX8antaZqbLHaNUFf8YWEL8CCE1S3PZ9A5
    Slot
    472,641,147
    Block time
    2026-11-22 18:27 UTC
    Status
    Succeeded
    Fee
    5,000 lamports
    Compute units
    28,954
    Message version
    0
    RPC response SHA-256
    930e6dad5a38f08ce1bd58ad49560fd07ce202c8d5053370409b6fffd47fdbb9

    Open on Solana Explorer (opens in a new tab)