1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use anchor_lang::prelude::*;
#[error_code]
pub enum ClockworkError {
#[msg("The commission must be between 0 and 100")]
InvalidCommission,
#[msg("You cannot request to unstake more tokens than are currently locked")]
InvalidUnstakeAmount,
#[msg("The penalty account has an insufficient balance for this operation")]
InsufficientPenaltyBalance,
#[msg("The registry is locked and may not be updated right now")]
RegistryLocked,
}