ore_boost_api/state/
boost.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use steel::*;

use super::BoostAccount;

/// Boost ...
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Boost {
    /// The bump used for signing.
    pub bump: u64,

    /// The unix timestamp this boost expires.
    pub expires_at: i64,

    /// The mint address
    pub mint: Pubkey,

    /// The multiplier allocated to this token.
    pub multiplier: u64,

    // The total amount of stake in this boost.
    pub total_stake: u64,
}

account!(BoostAccount, Boost);