Skip to content

Commit 287af95

Browse files
joncinqueHaoranYi
authored and
HaoranYi
committed
stake-pool: Document redelegate behavior better (solana-labs#3986)
1 parent fb97bc3 commit 287af95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stake-pool/program/src/instruction.rs

+8
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)