1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use anchor_lang::prelude::*;

#[error_code]
pub enum ErrorCode {
    #[msg("Error: Deposits are not allowed for this Vault")]
    DepositsNotAllowed,
    #[msg("Error: Withdraws are not allowed for this Vault")]
    WithdrawsNotAllowed,
    #[msg("Insufficient funds.")]
    InsufficientFunds,
    #[msg("Token Account has Incorrect Mint.")]
    IncorrectTokenAccountMint,
    #[msg("Mint is dirty.")]
    DirtyMint,
    #[msg("Mint authority is incorrect.")]
    IncorrectMintAuthority,
    #[msg("Invalid Percentage in Millibps. Cannot be greater than 1 (100%).")]
    InvalidPercentageInMillibps,
    #[msg("Incorrect Token Account")]
    IncorrectTokenAccount,
    #[msg("Incorrect Mint")]
    IncorrectMint,
    #[msg("Invalid Owner")]
    InvalidOwner,
    #[msg("Capacity Reached.")]
    CapacityReached,
    #[msg("Incorrect amount deposited on reconcile.")]
    IncorrectAmountDepositedOnReconcile,
    #[msg("Key metric is not defined")]
    KeyMetricNotDefined,
}