Enum spl_stake_pool::error::StakePoolError [−][src]
pub enum StakePoolError {}Show 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,
Expand description
Errors that may be returned by the StakePool program.
Variants
The account cannot be initialized because it is already being used.
The program address provided doesn’t match the value generated by the program.
The stake pool state is invalid.
The calculation failed.
Stake pool fee > 1.
Token account is associated with the wrong mint.
Wrong pool manager account.
Required signature is missing.
Invalid validator stake list account.
Invalid manager fee account.
Specified pool mint account is wrong.
Stake account is not in the state expected by the program.
User stake is not active
Stake account voting for this validator already exists in the pool.
Stake account for this validator not found in the pool.
Stake account address not properly derived from the validator address.
Identify validator stake accounts with old balances and update them.
First update old validator stake account balances and then pool stake balance.
Validator stake account is not found in the list storage.
Wrong minting authority set for mint pool account
The size of the given validator stake list does match the expected amount
Wrong pool staker account.
Pool token supply is not zero on initialization
The lamports in the validator stake account is not equal to the minimum
The provided deposit stake account is not delegated to the preferred deposit vote account
The provided withdraw stake account is not the preferred deposit vote account
The mint has an invalid freeze authority
Trait Implementations
Performs the conversion.
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
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
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
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
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
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
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
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
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
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
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
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
Converts a f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn print<E>(&self) where
E: 'static + Error + DecodeError<E> + PrintProgramError + FromPrimitive,
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
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V