1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use anchor_lang::error_code;

#[error_code]
pub enum FanoutError {
    #[msg("Overflow occured")]
    Overflow,
    #[msg("Invalid member count, should be between 1 and 10")]
    InvalidMemberCount,
    #[msg("Member shares should add up to 10000")]
    InvalidShares,
    #[msg("Member seen more than once")]
    DuplicateMember,
    #[msg("Member is not present in distribution")]
    MemberNotFound,
    #[msg("Cannot close fanout with non-zero balance")]
    NonZeroBalance,
    #[msg("Close authority is not the signer")]
    InvalidCloseAuthority,
}