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

Commit

Permalink
stake-pool: Document redelegate behavior better
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Jan 27, 2023
1 parent cc3a56d commit 900dde4
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 900dde4

Please # to comment.