This commit is contained in:
Hardhat Chad
2025-05-23 19:14:33 -07:00
parent 87c67f1ccb
commit 1ab3b1f73c
4 changed files with 45 additions and 5 deletions

View File

@@ -63,5 +63,13 @@ pub fn process_payout(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResu
&[TREASURY],
)?;
// Emit an event.
PayoutEvent {
authority: wager.authority,
amount: block.reward,
ts: clock.unix_timestamp as u64,
}
.log();
Ok(())
}