use anchor_lang::prelude::*;
#[error_code]
pub enum TentaClesError {
#[msg("Encountered an arithmetic error")]
BadArtithmetic,
#[msg("DerivedKeyInvalid")]
DerivedKeyInvalid,
#[msg("MaxMembersReached")]
MaxMembersReached,
#[msg("NotEnoughAvailableShares")]
NotEnoughAvailableShares,
#[msg("InvalidAccountData")]
InvalidAccountData,
#[msg("InvalidArgument")]
InvalidArgument,
#[msg("InvalidMemberTokenAccount")]
InvalidMemberTokenAccount,
#[msg("Mint mismatch between wallet and member ata")]
MintMismatch,
#[msg("Member cannot be added twice")]
DoubleMember,
#[msg("Wallet is still has to disburse to other members for current cycle")]
RemainingFlowNotZero,
#[msg("UnclaimedAmountExists")]
UnclaimedAmountExists
}