cancel_all_orders
OpenBook v2
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
Instruction decoded
Established
The instruction bytes match one entry in a pinned IDL or schema, with no collision.
Live code rebuilt by POA
Established
POA rebuilt a source commit and its hash equals the on-chain executable.
Report names the handler file
Established
A published audit report's scope covers the file that implements this instruction.
Reviewed commit printed
Established
That report prints the scope and the exact commit it reviewed.
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
- Program snapshot at slot 472718291: executable, RPC agree, hash 44a1bb9b185c….
- Decoded by anchor-sighash-derived c453f3ab1164a08f.
- Handler programs/openbook-v2/src/instructions/cancel_all_orders.rs#L6 (instructions::cancel_all_orders).
- Handler file is under the printed scope of openbook-ottersec-2023.
- Live source 796a4700 established by POA's independent build.
- Live commit 796a4700 is not the reviewed commit and no recorded diff shows the crate unchanged (openbook-ottersec-2023 (840e661: handler files changed)).
- 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).
What would be needed for a stronger verdict
- 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
- c453f3ab1164a08f
- Method
- Derived Anchor sighash
- IDL SHA-256
- 3c6767fb8423e4b64dd5cb1286864655ee05b2a0974399fc30ff28717cfbb836
- Collisions
- None
Arguments
| Name | Type |
|---|---|
| sideOption | option<Side> |
| limit | u8 |
Accounts
Signer and writable flags from the interface definition.
| Account | Flags | Fixed address | Notes |
|---|---|---|---|
| signer | Signer | ||
| openOrdersAccount | Writable | ||
| market | Read-only | ||
| bids | Writable | ||
| asks | Writable |
Handler source
- Function
- instructions::cancel_all_orders
- File
- programs/openbook-v2/src/instructions/cancel_all_orders.rs · lines 6–22
- At commit
- 796a470033bc556c1d1a1f76709394fc50c63bf7
- Mapping
- Anchor program module
Related files
- programs/openbook-v2/src/accounts_ix/cancel_order.rs (opens in a new tab)
- programs/openbook-v2/src/accounts_ix/mod.rs (opens in a new tab)
- programs/openbook-v2/src/instructions/cancel_all_orders.rs (opens in a new tab)
- programs/openbook-v2/src/lib.rs (opens in a new tab)
- programs/openbook-v2/src/state/mod.rs (opens in a new tab)
Audit relations
How each report relates to this instruction's handler file.
| Auditor | Relation | Reviewed commit | Scope confidence |
|---|---|---|---|
| OtterSecOpenbook Audit (openbook-v2) (opens in a new tab) | Handler file is in the named scope | 840e661 | Printed in the report |
Changed files since review
Files changed between the reviewed commit and the live source, as recorded.
| File | Status | Added | Removed |
|---|---|---|---|
| programs/openbook-v2/src/accounts_ix/mod.rs | modified | 2 | 2 |
| programs/openbook-v2/src/lib.rs | modified | 223 | 47 |
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
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.