Crate spl_stake_pool

Crate spl_stake_pool 

Source
Expand description

A program for creating and managing pools of stake

Re-exports§

pub use solana_program;

Modules§

big_vec
Big vector type, used with vectors that can’t be serde’d
error
Error types
instruction
Instruction types
processor
Program state processor
state
State transition types

Constants§

MAX_TRANSIENT_STAKE_ACCOUNTS
The maximum number of transient stake accounts respecting transaction account limits.
MAX_VALIDATORS_TO_UPDATE
Maximum amount of validator stake accounts to update per UpdateValidatorListBalance instruction, based on compute limits
MAX_WITHDRAWAL_FEE_INCREASE
Maximum factor by which a withdrawal fee can be increased per epoch protecting stakers from malicious users. If current fee is 0, WITHDRAWAL_BASELINE_FEE is used as the baseline
MINIMUM_ACTIVE_STAKE
Minimum amount of staked lamports required in a validator stake account to allow for merges without a mismatch on credits observed
MINIMUM_RESERVE_LAMPORTS
Minimum amount of lamports in the reserve NOTE: This can be changed to 0 once the stake_allow_zero_undelegated_amount feature is enabled on all clusters
WITHDRAWAL_BASELINE_FEE
Drop-in baseline fee when evaluating withdrawal fee increases when fee is 0

Statics§

ID
The static program ID

Functions§

check_id
Confirms that a given pubkey is equivalent to the program ID
find_deposit_authority_program_address
Generates the deposit authority program address for the stake pool
find_ephemeral_stake_program_address
Generates the ephemeral program address for stake pool redelegation
find_stake_program_address
Generates the stake program address for a validator’s vote account
find_transient_stake_program_address
Generates the stake program address for a validator’s vote account
find_withdraw_authority_program_address
Generates the withdraw authority program address for the stake pool
id
Returns the program ID
minimum_delegation
Get the minimum delegation required by a stake account in a stake pool
minimum_reserve_lamports
Get the stake amount under consideration when calculating pool token conversions
minimum_stake_lamports
Get the stake amount under consideration when calculating pool token conversions