Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stake-pool: Document redelegate behavior better #3986

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions stake-pool/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,14 @@ pub enum StakePoolInstruction {
/// source transient stake account, and rent-exemption plus minimum delegation
/// is required for the destination ephemeral stake account.
///
/// The amount that arrives at the destination validator in the end is
/// `redelegate_lamports - 2 * rent_exemption` if the destination transient
/// account does *not* exist, and `redelegate_lamports - rent_exemption` if
/// the destination transient account already exists. One `rent_exemption`
/// is deactivated with the source transient account during redelegation,
/// and another `rent_exemption` is deactivated when creating the destination
/// transient stake account.
///
/// 0. `[]` Stake pool
/// 1. `[s]` Stake pool staker
/// 2. `[]` Stake pool withdraw authority
Expand Down