Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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