ore-boost-api 4.0.0

API for interacting with the ORE boost program
Documentation
use steel::*;

use super::BoostAccount;

/// Config holds onto global program variables.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Config {
    /// The admin with authority to create and update boost incentives.
    pub admin: Pubkey,

    /// The list of all boosts available for activation.
    pub boosts: [Pubkey; 256],

    /// The number of boosts available in the directory.
    pub len: u64,

    /// The cumulative rewards collected by all boosts, divided by the total weight at the time of collection.
    pub rewards_factor: Numeric,

    /// The portion of hash rewards boost stakers should receive (in basis points).
    pub take_rate: u64,

    /// The total weight of all boosts.
    pub total_weight: u64,
}

account!(BoostAccount, Config);