From c5e7ae736eb0414848623f17f439e2cd5244aaab Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Tue, 19 Oct 2021 17:19:10 +0200 Subject: [PATCH] stake-pool: Add comment to validator stake info field (#2527) --- stake-pool/program/src/state.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stake-pool/program/src/state.rs b/stake-pool/program/src/state.rs index 9c2776f09f7..792e18cc1c6 100644 --- a/stake-pool/program/src/state.rs +++ b/stake-pool/program/src/state.rs @@ -532,12 +532,16 @@ impl Default for StakeStatus { #[repr(C)] #[derive(Clone, Copy, Debug, Default, PartialEq, BorshDeserialize, BorshSerialize, BorshSchema)] pub struct ValidatorStakeInfo { - /// Amount of active stake delegated to this validator + /// Amount of active stake delegated to this validator, minus the minimum + /// required stake amount of rent-exemption + `crate::MINIMUM_ACTIVE_STAKE` + /// (currently 0.001 SOL). + /// /// Note that if `last_update_epoch` does not match the current epoch then /// this field may not be accurate pub active_stake_lamports: u64, /// Amount of transient stake delegated to this validator + /// /// Note that if `last_update_epoch` does not match the current epoch then /// this field may not be accurate pub transient_stake_lamports: u64,