This commit is contained in:
Hardhat Chad
2025-05-23 19:24:12 -07:00
parent 1ab3b1f73c
commit b8cf9b0208
7 changed files with 40 additions and 1758 deletions

View File

@@ -15,7 +15,7 @@ pub fn process_payout(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResu
signer_info.is_signer()?;
let block = block_info
.as_account_mut::<Block>(&ore_api::ID)?
.assert_mut(|b| b.ends_at < clock.slot)?
.assert_mut(|b| b.ends_at <= clock.slot)?
.assert_mut(|b| b.payed_out == 0)?;
treasury_info.has_address(&TREASURY_ADDRESS)?;
treasury_tokens_info