crown new top staker

This commit is contained in:
Hardhat Chad
2024-06-27 14:01:52 +00:00
parent 77bf195139
commit 3608071f1c
10 changed files with 106 additions and 23 deletions

View File

@@ -138,6 +138,8 @@ pub fn process_initialize<'a, 'info>(
config.admin = *signer.key;
config.base_reward_rate = INITIAL_BASE_REWARD_RATE;
config.last_reset_at = 0;
config.max_stake = 0;
config.top_staker = Pubkey::new_from_array([0; 32]);
// Initialize treasury
create_pda(