Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 9da538b

Browse files
authored
stake-pool: Document redelegate behavior better (#3986)
1 parent cc3a56d commit 9da538b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stake-pool/program/src/instruction.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,14 @@ pub enum StakePoolInstruction {
493493
/// source transient stake account, and rent-exemption plus minimum delegation
494494
/// is required for the destination ephemeral stake account.
495495
///
496+
/// The amount that arrives at the destination validator in the end is
497+
/// `redelegate_lamports - 2 * rent_exemption` if the destination transient
498+
/// account does *not* exist, and `redelegate_lamports - rent_exemption` if
499+
/// the destination transient account already exists. One `rent_exemption`
500+
/// is deactivated with the source transient account during redelegation,
501+
/// and another `rent_exemption` is deactivated when creating the destination
502+
/// transient stake account.
503+
///
496504
/// 0. `[]` Stake pool
497505
/// 1. `[s]` Stake pool staker
498506
/// 2. `[]` Stake pool withdraw authority

0 commit comments

Comments
 (0)