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 afe1624776422294.
  3. Handler programs/openbook-v2/src/instructions/sweep_fees.rs#L8 (instructions::sweep_fees).
  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/lib.rs (M +223 -47), programs/openbook-v2/src/logs.rs (M +23 -2).

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
afe1624776422294
Method
Derived Anchor sighash
IDL SHA-256
3c6767fb8423e4b64dd5cb1286864655ee05b2a0974399fc30ff28717cfbb836
Collisions
None

Arguments

No arguments.

Accounts

Signer and writable flags from the interface definition.

AccountFlagsFixed addressNotes
collectFeeAdminSigner
marketWritable
marketAuthorityRead-only
marketQuoteVaultWritable
tokenReceiverAccountWritable
tokenProgramRead-only

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/lib.rsmodified22347
programs/openbook-v2/src/logs.rsmodified232

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
      • StaticChanged
      • InferredUnknown

No curated transaction calls this instruction.

Transactions

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

No curated transaction calls this instruction.