#[repr(u32)]pub enum SinglePoolError {
Show 22 variants
InvalidPoolAccount = 0,
InvalidPoolStakeAccount = 1,
InvalidPoolMint = 2,
InvalidPoolStakeAuthority = 3,
InvalidPoolMintAuthority = 4,
InvalidPoolMplAuthority = 5,
InvalidMetadataAccount = 6,
InvalidMetadataSigner = 7,
DepositTooSmall = 8,
WithdrawalTooSmall = 9,
WithdrawalTooLarge = 10,
SignatureMissing = 11,
WrongStakeStake = 12,
ArithmeticOverflow = 13,
UnexpectedMathError = 14,
LegacyVoteAccount = 15,
UnparseableVoteAccount = 16,
WrongRentAmount = 17,
InvalidPoolStakeAccountUsage = 18,
PoolAlreadyInitialized = 19,
InvalidPoolOnRampAccount = 20,
OnRampDoesntExist = 21,
}Expand description
Errors that may be returned by the SinglePool program.
Variants§
InvalidPoolAccount = 0
Provided pool account has the wrong address for its vote account, is uninitialized, or otherwise invalid.
InvalidPoolStakeAccount = 1
Provided pool stake account does not match address derived from the pool account.
InvalidPoolMint = 2
Provided pool mint does not match address derived from the pool account.
InvalidPoolStakeAuthority = 3
Provided pool stake authority does not match address derived from the pool account.
InvalidPoolMintAuthority = 4
Provided pool mint authority does not match address derived from the pool account.
InvalidPoolMplAuthority = 5
Provided pool MPL authority does not match address derived from the pool account.
InvalidMetadataAccount = 6
Provided metadata account does not match metadata account derived for pool mint.
InvalidMetadataSigner = 7
Authorized withdrawer provided for metadata update does not match the vote account.
DepositTooSmall = 8
Not enough lamports provided for deposit to result in one pool token.
WithdrawalTooSmall = 9
Not enough pool tokens provided to withdraw stake worth one lamport.
WithdrawalTooLarge = 10
Not enough stake to cover the provided quantity of pool tokens. (Generally this should not happen absent user error, but may if the minimum delegation increases beyond 1 sol.)
SignatureMissing = 11
Required signature is missing.
WrongStakeStake = 12
Stake account is not in the state expected by the program.
ArithmeticOverflow = 13
Unsigned subtraction crossed the zero.
UnexpectedMathError = 14
A calculation failed unexpectedly. (This error should never be surfaced; it stands in for failure conditions that should never be reached.)
LegacyVoteAccount = 15
The V0_23_5 vote account type is unsupported and should be upgraded via
convert_to_current().
UnparseableVoteAccount = 16
Failed to parse vote account.
WrongRentAmount = 17
Incorrect number of lamports provided for rent-exemption when initializing.
InvalidPoolStakeAccountUsage = 18
Attempted to deposit from or withdraw to pool stake account.
PoolAlreadyInitialized = 19
Attempted to initialize a pool that is already initialized.
InvalidPoolOnRampAccount = 20
Provided pool on-ramp account does not match address derived from the pool account.
OnRampDoesntExist = 21
The on-ramp account for this pool does not exist; you must call InitializePoolOnRamp
before you can perform this operation.
Trait Implementations§
Source§impl Clone for SinglePoolError
impl Clone for SinglePoolError
Source§fn clone(&self) -> SinglePoolError
fn clone(&self) -> SinglePoolError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SinglePoolError
impl Debug for SinglePoolError
Source§impl Display for SinglePoolError
impl Display for SinglePoolError
Source§impl Error for SinglePoolError
impl Error for SinglePoolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<SinglePoolError> for ProgramError
impl From<SinglePoolError> for ProgramError
Source§fn from(e: SinglePoolError) -> Self
fn from(e: SinglePoolError) -> Self
Source§impl FromPrimitive for SinglePoolError
impl FromPrimitive for SinglePoolError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more