Skip to content

Proof of AuditsExplore EvidenceSolana programsOpenBook v2

OpenBook v2

OpenBook v2 is a central limit order book program on Solana, based on Mango v4 and the earlier OpenBook program (a fork of Serum). One upgradeable Anchor program holds all markets.

  • Recorded data
  • 1programs
  • 1audit reports
  • 3curated transactions
  • 5open questions
  • observed at slot472,718,291

What this page showsEvery program OpenBook v2 runs on Solana, the audit reports POA holds for it, which report covers which instructions (actions), and what POA could not establish.

Open questions

What is not established

5 open questions recorded

Facts research could not establish, copied from the evidence as written.

  1. The only audit report in the repository reviewed commit 840e661 (tag audit, September 2023). POA's rebuild of tag v1.7 (796a470) reproduces the on-chain executable hash. Between the two, 53 files under programs/openbook-v2 changed, including place_order, place_take_order, consume_events and settle_funds. POA found no report that reviewed v1.7.
  2. The repository default branch has later tags (v0.2.x up to v0.2.10, June 2024). They are newer than the deployment and are not the live code.
  3. The upgrade authority CZoAmQEr... can replace the program. POA has not checked what kind of account controls it.
  4. OtterSec's verify API has no build record for this program.
  5. 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.

Programs

Executable programs POA read from mainnet, each with its proof chain counted over its instructions.

  1. The proof chain
    1. Instruction decoded

      29 of 29 instructions

    2. Live code rebuilt by POA

      29 of 29 instructions

    3. Report names the handler file

      29 of 29 instructions

    4. Reviewed commit printed

      29 of 29 instructions

    5. Reviewed code is the live code

      0 of 29 instructions

      29 with a known difference

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

Audit reports

1 reports, 1 with a reviewed commit printed.

Which audit covers what

For each program, one row per report that relates to it. Counts are instructions of that program.

ReportChecked version (commit)Names the file that runs itCovers the program, no files namedChecked version vs running code
OtterSec840e66129 of 290 of 29Code changed since: 53 files

No report's checked version can be tied to the running code: POA cannot show the audited version is the running version.

As extracted from each PDF. Commits, scope paths and exclusions are what the report prints. A dash means the record states no count for that severity.

  1. 01

    OtterSec

    Openbook Audit (openbook-v2)

    2023-09-07 to 2023-09-20

    Report PDF (opens in a new tab)

    Reviewed commits

    • 840e661role not stated · p. 4

    Scope paths

    • programs/openbook-v2

    Exclusions

    None stated

    Findings

    • 1 critical
    • 1 high
    • 1 medium
    • 1 low
    • 1 info
    PDF SHA-256125c79…46354c 125c7961acbbdcd786fde641551e47c8d35fd2f1e006071165f198bece46354cPrinted in the report · PDF text

Source diffs

File-level git diffs between pinned commits, restricted to the program crate.

  1. 840e661796a470OtterSec audited commit (840e661, tag audit) → POA rebuilt live commit (796a470, tag v1.7)

    From OtterSec audited commit (840e661, tag audit)

    To POA rebuilt live commit (796a470, tag v1.7)

    5353 files changed under programs/openbook-v2

    +3,403 −1,548 lines

    computed 2026-11-22 · Compare on GitHub (opens in a new tab)

    Show the 53 changed files
    FileStatusAddedRemoved
    programs/openbook-v2/Cargo.tomlmodified54
    programs/openbook-v2/fuzz/Cargo.lockmodified1,196971
    programs/openbook-v2/fuzz/Cargo.tomlmodified67
    programs/openbook-v2/fuzz/fuzz_targets/multiple_orders.rsmodified8937
    programs/openbook-v2/fuzz/src/lib.rsmodified16871
    programs/openbook-v2/fuzz/src/processor.rsmodified10
    programs/openbook-v2/src/accounts_ix/cancel_all_and_place_orders.rsadded600
    programs/openbook-v2/src/accounts_ix/close_open_orders_account.rsmodified13
    programs/openbook-v2/src/accounts_ix/create_market.rsmodified193
    programs/openbook-v2/src/accounts_ix/create_open_orders_account.rsmodified21
    programs/openbook-v2/src/accounts_ix/create_open_orders_indexer.rsmodified12
    programs/openbook-v2/src/accounts_ix/mod.rsmodified22
    programs/openbook-v2/src/accounts_ix/place_order.rsmodified140
    programs/openbook-v2/src/accounts_ix/place_take_order.rsmodified26
    programs/openbook-v2/src/accounts_ix/settle_funds.rsmodified93
    programs/openbook-v2/src/accounts_ix/settle_funds_expired.rsmodified63
    programs/openbook-v2/src/error.rsmodified40
    programs/openbook-v2/src/i80f48.rsmodified816
    programs/openbook-v2/src/instructions/cancel_all_and_place_orders.rsadded1520
    programs/openbook-v2/src/instructions/cancel_order_by_client_order_id.rsmodified119
    programs/openbook-v2/src/instructions/close_open_orders_account.rsmodified31
    programs/openbook-v2/src/instructions/consume_events.rsmodified517
    programs/openbook-v2/src/instructions/create_market.rsmodified11
    programs/openbook-v2/src/instructions/create_open_orders_account.rsmodified71
    programs/openbook-v2/src/instructions/edit_order.rsadded370
    programs/openbook-v2/src/instructions/mod.rsmodified42
    programs/openbook-v2/src/instructions/place_order.rsmodified72
    programs/openbook-v2/src/instructions/place_take_order.rsmodified726
    programs/openbook-v2/src/instructions/set_delegate.rsmodified15
    programs/openbook-v2/src/instructions/settle_funds.rsmodified22
    programs/openbook-v2/src/lib.rsmodified22347
    programs/openbook-v2/src/logs.rsmodified232
    programs/openbook-v2/src/pubkey_option.rsmodified11
    programs/openbook-v2/src/state/market.rsmodified3832
    programs/openbook-v2/src/state/open_orders_account.rsmodified11441
    programs/openbook-v2/src/state/open_orders_indexer.rsmodified03
    programs/openbook-v2/src/state/oracle.rsmodified166
    programs/openbook-v2/src/state/orderbook/book.rsmodified127
    programs/openbook-v2/src/state/orderbook/heap.rsmodified11
    programs/openbook-v2/src/state/orderbook/mod.rsmodified30
    programs/openbook-v2/tests/cases/mod.rsmodified30
    programs/openbook-v2/tests/cases/test.rsmodified164119
    programs/openbook-v2/tests/cases/test_crank.rsmodified022
    programs/openbook-v2/tests/cases/test_edit_order.rsadded1400
    programs/openbook-v2/tests/cases/test_fees.rsmodified1470
    programs/openbook-v2/tests/cases/test_indexer.rsadded1730
    programs/openbook-v2/tests/cases/test_multiple_orders.rsadded1110
    programs/openbook-v2/tests/cases/test_oracle_peg.rsmodified12720
    programs/openbook-v2/tests/cases/test_permissioned.rsmodified11
    programs/openbook-v2/tests/cases/test_take_order.rsmodified8115
    programs/openbook-v2/tests/program_test/client.rsmodified16323
    programs/openbook-v2/tests/program_test/mod.rsmodified1313
    programs/openbook-v2/tests/program_test/solana.rsmodified190

Accounts that are not programs

State, config, mint and multisig accounts. None of these is an executable program, and none has a verdict.

AddressKindLabelNoteSource
OtherOpenBook v2 ProgramDataProgramData account of the BPF upgradeable loader for OpenBook v2. Upgrade authority CZoAmQErbMwhSNA5WtbWLcwGE1mhXEv4hTvyvvHXGkrr; last deployment slot 250859864 (block time 2024-02-27T22:02:06Z).Read by POA from mainnet · 2026-11-22
OtherOpenBook v2 Anchor IDL accountOn-chain Anchor IDL account (owner: the program). Its decompressed instruction list equals idl/openbook_v2.json at v1.7.Read by POA from mainnet · 2026-11-22

Curated transactions

Finalized mainnet transactions POA decoded. Each opens on Solana Explorer.

SignatureInstructionSlotBlock timeCode that ran
XkUgEgZY…hznbjZ XkUgEgZYtczWmB6sDPkvaN4Mr2QShP1874Am1n2MbvmMXWYfnU3Lx9PzhTAkhUbB9AsKz9fLfazWYWiSfhznbjZ (opens Solana Explorer in a new tab)place_order472,445,3482026-11-22 06:46 UTC

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

4PueSv9q…6yVdJW 4PueSv9qHQ35XZYSDN4mFjawdcTFbzE9gFgFfVoLc12rX42tCFitX8pJwDLYm8bcGAnuNT95LmPvAmuWKV6yVdJW (opens Solana Explorer in a new tab)place_take_order472,436,8762026-11-22 06:15 UTC

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

mxCBjpKK…3PZ9A5 mxCBjpKKa5hfEF1WDETYqEmup9QbPvN8Wc3KL2v7QrBYU7nmCC6rsBX8antaZqbLHaNUFf8YWEL8CCE1S3PZ9A5 (opens Solana Explorer in a new tab)consume_events472,641,1472026-11-22 18:27 UTC

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

Summary

Category
order book exchange
Depth
Catalog only
Observed at slot
472,718,291
Generated
2026-11-22
Input file SHA-256
6fbb62435e…1391fbb101 6fbb62435e780cda5d98da6b21fe59a93a7260e3dee48649ddc8d01391fbb101