Files
ore/src/state/treasury.rs
Hardhat Chad bbc1d835ea polish
2024-02-14 17:01:30 +00:00

31 lines
713 B
Rust

use bytemuck::{Pod, Zeroable};
use solana_program::pubkey::Pubkey;
use crate::impl_to_bytes;
use super::Hash;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Treasury {
/// The bump of the treasury account PDA.
pub bump: u64,
/// The admin authority with permission to update the difficulty.
pub admin: Pubkey,
/// The hash difficulty.
pub difficulty: Hash,
/// The timestamp of the start of the current epoch.
pub epoch_start_at: i64,
/// The reward rate to payout to miners for submiting valid hashes.
pub reward_rate: u64,
/// The total lifetime claimed rewards.
pub total_claimed_rewards: u64,
}
impl_to_bytes!(Treasury);