ore_boost_api/state/
checkpoint.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
26
27
28
29
use steel::*;

use super::BoostAccount;

/// Checkpoint ...
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Checkpoint {
    /// The boost this checkpoint is associated with.
    pub boost: Pubkey,

    /// The id of the next staker to be processed.
    pub current_id: u64,

    /// The total amount of pending stake in this checkpoint.
    pub total_pending_stake: u64,

    /// The number of total stakers in this checkpoint.
    pub total_stakers: u64,

    /// The total amount of rewards to distribute.
    pub total_rewards: u64,

    /// The timestamp of when the last checkpoint finished.
    pub ts: i64,
}

account!(BoostAccount, Checkpoint);