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,
}

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

Trait Implementations

impl Clone for StakePoolError[src]

impl Debug for StakePoolError[src]

impl<T> DecodeError<T> for StakePoolError[src]

impl Display for StakePoolError[src]

impl Eq for StakePoolError[src]

impl Error for StakePoolError[src]

impl FromPrimitive for StakePoolError[src]

impl PartialEq<StakePoolError> for StakePoolError[src]

impl PrintProgramError for StakePoolError[src]

impl StructuralEq for StakePoolError[src]

impl StructuralPartialEq for StakePoolError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,