rename const

This commit is contained in:
Hardhat Chad
2024-07-20 20:36:07 +00:00
parent 50beff8c7e
commit 15f86584bb
2 changed files with 3 additions and 3 deletions

View File

@@ -2,8 +2,8 @@ use array_const_fn_init::array_const_fn_init;
use const_crypto::ed25519;
use solana_program::{pubkey, pubkey::Pubkey};
/// The admin allowed to initialize the program.
pub const ADMIN: Pubkey = pubkey!("HBUh9g46wk2X89CvaNN15UmsznP59rh6od1h8JwYAopk");
/// The authority allowed to initialize the program.
pub const INITIALIZER_ADDRESS: Pubkey = pubkey!("HBUh9g46wk2X89CvaNN15UmsznP59rh6od1h8JwYAopk");
/// The base reward rate to intialize the program with.
pub const INITIAL_BASE_REWARD_RATE: u64 = 2u64.pow(6);

View File

@@ -91,7 +91,7 @@ pub fn process_initialize<'a, 'info>(
load_sysvar(rent_sysvar, sysvar::rent::id())?;
// Check signer
if signer.key.ne(&ADMIN) {
if signer.key.ne(&INITIALIZER_ADDRESS) {
return Err(ProgramError::MissingRequiredSignature);
}