Docs / Build
Error reference
Errors the program returns, what they mean and what to do.
| Error | Meaning | What to do |
|---|---|---|
Unauthorized | The signer may not call this instruction | Sign with the pool owner or the provider authority |
InvalidFeeConfig | Fee above 1% or share above 100% at initialization | Use fee_bps <= 100 |
InvalidMinDeposit | Minimum deposit of zero | Set a positive minimum |
DepositTooSmall | Deposit below the pool minimum | Deposit more |
NonCanonicalField | A 32-byte value is not below the BN254 modulus, or is zero where a leaf is expected | Reduce the value mod p; never send zero leaves |
TreeFull | The tree has reached depth 32 | None in practice: that is over four billion deposits |
PoseidonFailed | The Poseidon syscall returned an error | Report it with the transaction signature |
InvalidProof | The Groth16 proof does not verify against the public signals | Rebuild the proof; check the context fields (processor, recipient, fee recipient, relayer fee) match the accounts |
UnknownStateRoot | The state root is older than the last 64 | Fetch the latest root and prove again |
UnknownAspRoot | The set root is not the provider's current one, and the previous one is past its 150-slot grace | Fetch the provider's root and prove again |
ProviderRetired | The provider was retired | Choose another provider, or ragequit |
InvalidTreeDepth | A depth above 32 | Use the depth the tree reports |
ZeroWithdrawal | Withdrawing zero | Withdraw a positive amount |
FeeExceedsWithdrawal | Relayer fee above the withdrawn amount | Lower the fee |
BelowRentExempt | A payout would leave a new account below its rent-exempt minimum | Send at least 0.00089088 SOL to a fresh address |
InsufficientPoolBalance | The bucket cannot cover the payout | Check the amount against your note |
MathOverflow | An arithmetic bound was hit | Report it with the transaction signature |
A second withdrawal of the same note fails earlier, when the runtime refuses to create a nullifier account that already exists.