Enum spl_stake_pool::error::StakePoolError
source · [−]pub enum StakePoolError {
Show 36 variants
AlreadyInUse,
InvalidProgramAddress,
InvalidState,
CalculationFailure,
FeeTooHigh,
WrongAccountMint,
WrongManager,
SignatureMissing,
InvalidValidatorStakeList,
InvalidFeeAccount,
WrongPoolMint,
WrongStakeState,
UserStakeNotActive,
ValidatorAlreadyAdded,
ValidatorNotFound,
InvalidStakeAccountAddress,
StakeListOutOfDate,
StakeListAndPoolOutOfDate,
UnknownValidatorStakeAccount,
WrongMintingAuthority,
UnexpectedValidatorListAccountSize,
WrongStaker,
NonZeroPoolTokenSupply,
StakeLamportsNotEqualToMinimum,
IncorrectDepositVoteAddress,
IncorrectWithdrawVoteAddress,
InvalidMintFreezeAuthority,
FeeIncreaseTooHigh,
WithdrawalTooSmall,
DepositTooSmall,
InvalidStakeDepositAuthority,
InvalidSolDepositAuthority,
InvalidPreferredValidator,
TransientAccountInUse,
InvalidSolWithdrawAuthority,
SolWithdrawalTooLarge,
}Expand description
Errors that may be returned by the StakePool program.
Variants
AlreadyInUse
The account cannot be initialized because it is already being used.
InvalidProgramAddress
The program address provided doesn’t match the value generated by the program.
InvalidState
The stake pool state is invalid.
CalculationFailure
The calculation failed.
FeeTooHigh
Stake pool fee > 1.
WrongAccountMint
Token account is associated with the wrong mint.
WrongManager
Wrong pool manager account.
SignatureMissing
Required signature is missing.
InvalidValidatorStakeList
Invalid validator stake list account.
InvalidFeeAccount
Invalid manager fee account.
WrongPoolMint
Specified pool mint account is wrong.
WrongStakeState
Stake account is not in the state expected by the program.
UserStakeNotActive
User stake is not active
ValidatorAlreadyAdded
Stake account voting for this validator already exists in the pool.
ValidatorNotFound
Stake account for this validator not found in the pool.
InvalidStakeAccountAddress
Stake account address not properly derived from the validator address.
StakeListOutOfDate
Identify validator stake accounts with old balances and update them.
StakeListAndPoolOutOfDate
First update old validator stake account balances and then pool stake balance.
UnknownValidatorStakeAccount
Validator stake account is not found in the list storage.
WrongMintingAuthority
Wrong minting authority set for mint pool account
UnexpectedValidatorListAccountSize
The size of the given validator stake list does match the expected amount
WrongStaker
Wrong pool staker account.
NonZeroPoolTokenSupply
Pool token supply is not zero on initialization
StakeLamportsNotEqualToMinimum
The lamports in the validator stake account is not equal to the minimum
IncorrectDepositVoteAddress
The provided deposit stake account is not delegated to the preferred deposit vote account
IncorrectWithdrawVoteAddress
The provided withdraw stake account is not the preferred deposit vote account
InvalidMintFreezeAuthority
The mint has an invalid freeze authority
FeeIncreaseTooHigh
Proposed fee increase exceeds stipulated ratio
WithdrawalTooSmall
Not enough pool tokens provided to withdraw stake with one lamport
DepositTooSmall
Not enough lamports provided for deposit to result in one pool token
InvalidStakeDepositAuthority
Provided stake deposit authority does not match the program’s
InvalidSolDepositAuthority
Provided sol deposit authority does not match the program’s
InvalidPreferredValidator
Provided preferred validator is invalid
TransientAccountInUse
Provided validator stake account already has a transient stake account in use
InvalidSolWithdrawAuthority
Provided sol withdraw authority does not match the program’s
SolWithdrawalTooLarge
Too much SOL withdrawn from the stake pool’s reserve account
Trait Implementations
sourceimpl Clone for StakePoolError
impl Clone for StakePoolError
sourcefn clone(&self) -> StakePoolError
fn clone(&self) -> StakePoolError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StakePoolError
impl Debug for StakePoolError
sourceimpl<T> DecodeError<T> for StakePoolError
impl<T> DecodeError<T> for StakePoolError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E> where
E: FromPrimitive,
sourceimpl Display for StakePoolError
impl Display for StakePoolError
sourceimpl Error for StakePoolError
impl Error for StakePoolError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<StakePoolError> for ProgramError
impl From<StakePoolError> for ProgramError
sourcefn from(e: StakePoolError) -> Self
fn from(e: StakePoolError) -> Self
Converts to this type from the input type.
sourceimpl FromPrimitive for StakePoolError
impl FromPrimitive for StakePoolError
sourcefn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourceimpl PartialEq<StakePoolError> for StakePoolError
impl PartialEq<StakePoolError> for StakePoolError
sourceimpl PrintProgramError for StakePoolError
impl PrintProgramError for StakePoolError
fn print<E>(&self) where
E: 'static + Error + DecodeError<E> + PrintProgramError + FromPrimitive,
impl Eq for StakePoolError
impl StructuralEq for StakePoolError
impl StructuralPartialEq for StakePoolError
Auto Trait Implementations
impl RefUnwindSafe for StakePoolError
impl Send for StakePoolError
impl Sync for StakePoolError
impl Unpin for StakePoolError
impl UnwindSafe for StakePoolError
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more