Add MINIMUM_STAKE_DELEGATION constant (#23259)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
Brooks Prumo
2022-02-22 09:21:23 -06:00
committed by GitHub
parent f00016b647
commit ac70070e5b
2 changed files with 380 additions and 6 deletions

View File

@ -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;