Reference
Errors
Every error the program returns, and the instruction that raises it.
Eleven errors, in the order the program declares them. Anchor numbers custom errors from 6000, so CommitmentMismatch is 6000 and Overflow is 6010.
Error table
| Code | Error | Message | Raised by |
|---|---|---|---|
| 6000 | CommitmentMismatch | The vault's commitment does not match the signature revealed for it | finalize_withdrawal |
| 6001 | ZeroCommitment | The next commitment must not be zero: a vault with no lock cannot be withdrawn from again | init_vault, open_withdrawal |
| 6002 | CommitmentReused | The next commitment must differ from the one being spent | open_withdrawal |
| 6003 | ChainOutOfOrder | Signature chains must be pushed in order, with no gaps and none repeated | push_signature |
| 6004 | SignatureComplete | This withdrawal request already has every chain it needs | push_signature |
| 6005 | SignatureIncomplete | This withdrawal request is missing signature chains | finalize_withdrawal |
| 6006 | StaleNonce | The vault's nonce has moved since this request was opened | push_signature, finalize_withdrawal |
| 6007 | InsufficientFunds | The vault does not hold enough lamports above its rent-exempt minimum | finalize_withdrawal |
| 6008 | ZeroAmount | A withdrawal of zero would burn a one-time signature for nothing | deposit, open_withdrawal |
| 6009 | NotExpired | This withdrawal request has not expired yet | cancel_withdrawal |
| 6010 | Overflow | Arithmetic overflowed | finalize_withdrawal |