Skip to content

Commit

Permalink
Corrects docs for get_minimum_delegation() (solana-labs#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Apr 22, 2024
1 parent 8cca3f9 commit c47a680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pub fn add_genesis_accounts(genesis_config: &mut GenesisConfig) -> u64 {
}

/// The minimum stake amount that can be delegated, in lamports.
/// NOTE: This is also used to calculate the minimum balance of a stake account, which is the
/// rent exempt reserve _plus_ the minimum stake delegation.
/// NOTE: This is also used to calculate the minimum balance of a delegated stake account,
/// which is the rent exempt reserve _plus_ the minimum stake delegation.
#[inline(always)]
pub fn get_minimum_delegation(feature_set: &FeatureSet) -> u64 {
if feature_set.is_active(&feature_set::stake_raise_minimum_delegation_to_1_sol::id()) {
Expand Down

0 comments on commit c47a680

Please sign in to comment.