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

Commit c5e7ae7

Browse files
authored
stake-pool: Add comment to validator stake info field (#2527)
1 parent 1a48523 commit c5e7ae7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stake-pool/program/src/state.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,16 @@ impl Default for StakeStatus {
532532
#[repr(C)]
533533
#[derive(Clone, Copy, Debug, Default, PartialEq, BorshDeserialize, BorshSerialize, BorshSchema)]
534534
pub struct ValidatorStakeInfo {
535-
/// Amount of active stake delegated to this validator
535+
/// Amount of active stake delegated to this validator, minus the minimum
536+
/// required stake amount of rent-exemption + `crate::MINIMUM_ACTIVE_STAKE`
537+
/// (currently 0.001 SOL).
538+
///
536539
/// Note that if `last_update_epoch` does not match the current epoch then
537540
/// this field may not be accurate
538541
pub active_stake_lamports: u64,
539542

540543
/// Amount of transient stake delegated to this validator
544+
///
541545
/// Note that if `last_update_epoch` does not match the current epoch then
542546
/// this field may not be accurate
543547
pub transient_stake_lamports: u64,

0 commit comments

Comments
 (0)