Skip to content

Commit

Permalink
Move MINIMUM_STAKE_DELEGATION constant
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Feb 1, 2022
1 parent 3492551 commit 0fd962b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion programs/stake/src/stake_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use {
config::Config,
instruction::{LockupArgs, StakeError},
program::id,
state::MINIMUM_STAKE_DELEGATION,
MINIMUM_STAKE_DELEGATION,
},
stake_history::{StakeHistory, StakeHistoryEntry},
},
Expand Down
5 changes: 5 additions & 0 deletions sdk/program/src/stake/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ pub mod state;
pub mod program {
crate::declare_id!("Stake11111111111111111111111111111111111111");
}

/// 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.
pub const MINIMUM_STAKE_DELEGATION: u64 = 1;
5 changes: 0 additions & 5 deletions sdk/program/src/stake/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ use {
std::collections::HashSet,
};

/// 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.
pub const MINIMUM_STAKE_DELEGATION: u64 = 1;

pub type StakeActivationStatus = StakeHistoryEntry;

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone, Copy, AbiExample)]
Expand Down

0 comments on commit 0fd962b

Please sign in to comment.