Files
ore/api/src/state/treasury.rs
Hardhat Chad 8af79a8d2f revshare
2025-09-28 18:19:19 -07:00

24 lines
689 B
Rust

use steel::*;
use super::OreAccount;
/// Treasury is a singleton account which is the mint authority for the ORE token and the authority of
/// the program's global token account.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Treasury {
// The amount of SOL collected for buy-bury operations.
pub balance: u64,
/// The amount of ORE in the motherlode rewards pool.
pub motherlode: u64,
/// The cumulative ORE distributed to stakers, divided by the total stake at the time of distribution.
pub rewards_factor: Numeric,
/// The current total amount of ORE staked.
pub total_staked: u64,
}
account!(OreAccount, Treasury);