1use anchor_lang::prelude::*;
3
4#[error_code]
5pub enum LockerError {
6 #[msg("The unlock date must be in the future.")]
7 UnlockDateInPast,
8 #[msg("The amount to lock or burn must be greater than zero.")]
9 ZeroAmount,
10 #[msg("These tokens are still locked.")]
11 StillLocked,
12 #[msg("The lock duration is too long.")]
13 LockDurationTooLong,
14 #[msg(
15 "Vault has withheld transfer fees. Cannot close account until Token Admin harvests them."
16 )]
17 CannotCloseWithheldFees,
18 #[msg("Burn amount exceeds locked amount.")]
19 BurnAmountExceedsLocked,
20 #[msg("Math operation overflow.")]
21 MathOverflow,
22 #[msg("Requested amount exceeds the available balance.")]
23 InsufficientFunds,
24 #[msg("Batch burn account validation failed")]
25 InvalidBatchAccounts,
26}