mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 15:09:57 +00:00
24 lines
689 B
Rust
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);
|