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.
- 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.
- 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.
- The upgrade authority CZoAmQEr... can replace the program. POA has not checked what kind of account controls it.
- OtterSec's verify API has no build record for this program.
- 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.
OpenBook v2
order book program
- Verdict
- Changed
- Upgrade authority
- CZoAmQ…HXGkrr (opens Solana Explorer in a new tab)
- Independent build
- Rebuilt by POA, hash matches
The proof chain Instruction decoded
29 of 29 instructions
Live code rebuilt by POA
29 of 29 instructions
Report names the handler file
29 of 29 instructions
Reviewed commit printed
29 of 29 instructions
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.
| Report | Checked version (commit) | Names the file that runs it | Covers the program, no files named | Checked version vs running code |
|---|---|---|---|---|
| OtterSec | 840e661 | 29 of 29 | 0 of 29 | Code 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.
Reviewed commits
- 840e661role not stated · p. 4
Scope paths
- programs/openbook-v2
Exclusions
None statedFindings
- 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.
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
File Status Added Removed programs/openbook-v2/Cargo.toml modified 5 4 programs/openbook-v2/fuzz/Cargo.lock modified 1,196 971 programs/openbook-v2/fuzz/Cargo.toml modified 6 7 programs/openbook-v2/fuzz/fuzz_targets/multiple_orders.rs modified 89 37 programs/openbook-v2/fuzz/src/lib.rs modified 168 71 programs/openbook-v2/fuzz/src/processor.rs modified 1 0 programs/openbook-v2/src/accounts_ix/cancel_all_and_place_orders.rs added 60 0 programs/openbook-v2/src/accounts_ix/close_open_orders_account.rs modified 1 3 programs/openbook-v2/src/accounts_ix/create_market.rs modified 19 3 programs/openbook-v2/src/accounts_ix/create_open_orders_account.rs modified 2 1 programs/openbook-v2/src/accounts_ix/create_open_orders_indexer.rs modified 1 2 programs/openbook-v2/src/accounts_ix/mod.rs modified 2 2 programs/openbook-v2/src/accounts_ix/place_order.rs modified 14 0 programs/openbook-v2/src/accounts_ix/place_take_order.rs modified 2 6 programs/openbook-v2/src/accounts_ix/settle_funds.rs modified 9 3 programs/openbook-v2/src/accounts_ix/settle_funds_expired.rs modified 6 3 programs/openbook-v2/src/error.rs modified 4 0 programs/openbook-v2/src/i80f48.rs modified 8 16 programs/openbook-v2/src/instructions/cancel_all_and_place_orders.rs added 152 0 programs/openbook-v2/src/instructions/cancel_order_by_client_order_id.rs modified 11 9 programs/openbook-v2/src/instructions/close_open_orders_account.rs modified 3 1 programs/openbook-v2/src/instructions/consume_events.rs modified 5 17 programs/openbook-v2/src/instructions/create_market.rs modified 1 1 programs/openbook-v2/src/instructions/create_open_orders_account.rs modified 7 1 programs/openbook-v2/src/instructions/edit_order.rs added 37 0 programs/openbook-v2/src/instructions/mod.rs modified 4 2 programs/openbook-v2/src/instructions/place_order.rs modified 7 2 programs/openbook-v2/src/instructions/place_take_order.rs modified 7 26 programs/openbook-v2/src/instructions/set_delegate.rs modified 1 5 programs/openbook-v2/src/instructions/settle_funds.rs modified 2 2 programs/openbook-v2/src/lib.rs modified 223 47 programs/openbook-v2/src/logs.rs modified 23 2 programs/openbook-v2/src/pubkey_option.rs modified 1 1 programs/openbook-v2/src/state/market.rs modified 38 32 programs/openbook-v2/src/state/open_orders_account.rs modified 114 41 programs/openbook-v2/src/state/open_orders_indexer.rs modified 0 3 programs/openbook-v2/src/state/oracle.rs modified 16 6 programs/openbook-v2/src/state/orderbook/book.rs modified 12 7 programs/openbook-v2/src/state/orderbook/heap.rs modified 1 1 programs/openbook-v2/src/state/orderbook/mod.rs modified 3 0 programs/openbook-v2/tests/cases/mod.rs modified 3 0 programs/openbook-v2/tests/cases/test.rs modified 164 119 programs/openbook-v2/tests/cases/test_crank.rs modified 0 22 programs/openbook-v2/tests/cases/test_edit_order.rs added 140 0 programs/openbook-v2/tests/cases/test_fees.rs modified 147 0 programs/openbook-v2/tests/cases/test_indexer.rs added 173 0 programs/openbook-v2/tests/cases/test_multiple_orders.rs added 111 0 programs/openbook-v2/tests/cases/test_oracle_peg.rs modified 127 20 programs/openbook-v2/tests/cases/test_permissioned.rs modified 1 1 programs/openbook-v2/tests/cases/test_take_order.rs modified 81 15 programs/openbook-v2/tests/program_test/client.rs modified 163 23 programs/openbook-v2/tests/program_test/mod.rs modified 13 13 programs/openbook-v2/tests/program_test/solana.rs modified 19 0
Accounts that are not programs
State, config, mint and multisig accounts. None of these is an executable program, and none has a verdict.
| Address | Kind | Label | Note | Source |
|---|---|---|---|---|
DktN5H…AqJQYB DktN5HJ9uHKVRZ7FXGap4PEGVnEdc2VNBCXTt1AqJQYB (opens Solana Explorer in a new tab)Not an executable program | Other | OpenBook v2 ProgramData | ProgramData 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 |
6HsCgD…9TXn9L 6HsCgDXQq6JZ7VsgHzmB6hqpTh7ZZhqQRktDru9TXn9L (opens Solana Explorer in a new tab)Not an executable program | Other | OpenBook v2 Anchor IDL account | On-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.
| Signature | Instruction | Slot | Block time | Code that ran |
|---|---|---|---|---|
| XkUgEgZY…hznbjZ XkUgEgZYtczWmB6sDPkvaN4Mr2QShP1874Am1n2MbvmMXWYfnU3Lx9PzhTAkhUbB9AsKz9fLfazWYWiSfhznbjZ (opens Solana Explorer in a new tab) | place_order | 472,445,348 | 2026-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_order | 472,436,876 | 2026-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_events | 472,641,147 | 2026-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
- Published JSON
- /explorer/solana/api/v1/protocols/openbook-v2