ore_boost_api/state/stake.rs
1use steel::*;
2
3use super::BoostAccount;
4
5/// Stake holds onto the deposits and yield of a boost staker.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Stake {
9 /// The authority of this stake account.
10 pub authority: Pubkey,
11
12 /// The balance of this stake account.
13 pub balance: u64,
14
15 /// The amount of uncommitted stake in this account.
16 pub balance_pending: u64,
17
18 /// The boost this stake account is associated with.
19 pub boost: Pubkey,
20
21 /// The id of this stake account.
22 pub id: u64,
23
24 /// The timestamp of the last time stake was added to this account.
25 pub last_deposit_at: i64,
26
27 /// The amount of rewards claimable by this staker.
28 pub rewards: u64
29}
30
31account!(BoostAccount, Stake);