mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-20 23:16:46 +00:00
events
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user