miclockwork_network_program/
errors.rs1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ClockworkError {
5 #[msg("The worker is already in the pool")]
6 AlreadyInPool,
7
8 #[msg("The commission rate must be an integer between 0 and 100")]
9 InvalidCommissionRate,
10
11 #[msg("You cannot request to unstake more tokens than are currently locked")]
12 InvalidUnstakeAmount,
13
14 #[msg("The penalty account has an insufficient balance for this operation")]
15 InsufficientPenaltyBalance,
16
17 #[msg("The authority address cannot be used as the worker signatory")]
18 InvalidSignatory,
19
20 #[msg("The registry is locked and may not be updated right now")]
21 RegistryLocked,
22
23 #[msg("The worker cannot rotate into the pool right now")]
24 PoolFull,
25}