motherlode

This commit is contained in:
Hardhat Chad
2025-10-02 15:54:46 -07:00
parent 602df64c20
commit 6f0a956f3a
2 changed files with 5 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ pub struct ResetEvent {
/// The number of miners on the winning square.
pub num_winners: u64,
/// The amount of ORE payout for the motherlode.
pub motherlode: u64,
/// The total amount of SOL prospected in the round.
pub total_deployed: u64,

View File

@@ -97,6 +97,7 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
winning_square: winning_square as u64,
top_miner: Pubkey::default(),
num_winners: 0,
motherlode: 0,
total_deployed: round.total_deployed,
total_vaulted: round.total_vaulted,
total_winnings: round.total_winnings,
@@ -207,6 +208,7 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
end_slot: board.end_slot,
winning_square: winning_square as u64,
top_miner: Pubkey::default(), // top_miner.authority,
motherlode: round.motherlode,
num_winners: round.count[winning_square],
total_deployed: round.total_deployed,
total_vaulted: round.total_vaulted,