dloom-locker 1.0.0

A Solana locker program created with Anchor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// FILE: programs/dloom_locker/src/errors.rs
use anchor_lang::prelude::*;

#[error_code]
pub enum LockerError {
    #[msg("The unlock date must be in the future.")]
    UnlockDateInPast,
    #[msg("The amount to lock or burn must be greater than zero.")]
    ZeroAmount,
    #[msg("These tokens are still locked.")]
    StillLocked,
    #[msg("The lock duration is too long.")]
    LockDurationTooLong,
}