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
- inline_
mpl_ token_ metadata - Inlined MPL metadata types to avoid a direct dependency on
mpl-token-metadata' NOTE: this file is sym-linked in
spl-single-pool`, so be careful with changes! - instruction
- Instruction types
- processor
- Program state processor
- state
- State transition types
Constants§
- ID
- The const program ID.
- 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
- WITHDRAWAL_
BASELINE_ FEE - Drop-in baseline fee when evaluating withdrawal fee increases when fee is 0
Functions§
- check_
id - Returns
true
if given pubkey is 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