From 900dde461331696712bafa405d90b4e6841fe3c8 Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Thu, 19 Jan 2023 18:00:54 +0100 Subject: [PATCH] stake-pool: Document redelegate behavior better --- stake-pool/program/src/instruction.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stake-pool/program/src/instruction.rs b/stake-pool/program/src/instruction.rs index 9f2d36c7db7..d61319df0cc 100644 --- a/stake-pool/program/src/instruction.rs +++ b/stake-pool/program/src/instruction.rs @@ -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