batch_accounts_close
Squads Protocol v4
What this page showsOne instruction (an action a wallet lists) of Squads Protocol v4: whether the code that runs it is the code an audit reviewed, why, and the recorded transactions that called it.
Verdict
Matched
The instruction handler sits in a file a report names as in scope, POA rebuilt the live executable from source itself, and that source equals the reviewed commit or differs only outside the program crate.
Checked against the snapshot at slot 471,652,498
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
Established
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 471652498: executable, RPC agree, hash d48660833989….
- Decoded by anchor-sighash-derived dac407af82660bff.
- Handler programs/squads_multisig_program/src/instructions/transaction_accounts_close.rs#L407 (BatchAccountsClose::batch_accounts_close).
- Handler file is under the printed scope of neodyme-2024-final.
- Live source 64af7330 established by POA's independent build.
- Recorded diff dcac8670 ↔ 64af7330 changes no file under programs/squads_multisig_program (neodyme-2024-final).
- All MATCHED conditions hold.
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
- Yes
- Handler changed since review
- No
- Program crate changed since review
- No
- Program immutable
- Yes
- Evidence fresh
- Yes
Discriminator and decoding
- Discriminator
- dac407af82660bff
- Method
- Derived Anchor sighash
- IDL SHA-256
- cb9a0a29040ec3853a5105c547ffc608bb0e3175d78dacf30d463aff939f9b9b
- Collisions
- None
Arguments
No arguments.
Accounts
Signer and writable flags from the interface definition.
| Account | Flags | Fixed address | Notes |
|---|---|---|---|
| multisig | Read-only | ||
| proposal | Writable | the logic within `batch_accounts_close` does the rest of the checks. | |
| batch | Writable | `Batch` corresponding to the `proposal`. | |
| rentCollector | Writable | The rent collector. | |
| systemProgram | Read-only |
Handler source
- Function
- BatchAccountsClose::batch_accounts_close
- File
- programs/squads_multisig_program/src/instructions/transaction_accounts_close.rs · lines 407–464
- At commit
- 64af7330413d5c85cbbccfd8c27a05d45b6e666f
- Mapping
- Anchor program module
Related files
- programs/squads_multisig_program/src/instructions/transaction_accounts_close.rs (opens in a new tab)
- programs/squads_multisig_program/src/state/multisig.rs (opens in a new tab)
- programs/squads_multisig_program/src/state/proposal.rs (opens in a new tab)
- programs/squads_multisig_program/src/state/vault_transaction.rs (opens in a new tab)
- programs/squads_multisig_program/src/state/config_transaction.rs (opens in a new tab)
- programs/squads_multisig_program/src/state/batch.rs (opens in a new tab)
- programs/squads_multisig_program/src/state/seeds.rs (opens in a new tab)
- programs/squads_multisig_program/src/utils/system.rs (opens in a new tab)
- programs/squads_multisig_program/src/errors.rs (opens in a new tab)
Audit relations
How each report relates to this instruction's handler file.
Changed files since review
Files changed between the reviewed commit and the live source, as recorded.
No changed file is recorded for this instruction.
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 64af733
- Signer
- InstructionMatched
- StaticMatched
- StaticMatched
- StaticMatched
- StaticMatched
- StaticMatched
- StaticMatched
- StaticMatched
- StaticMatched
- StaticMatched
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.