ore_legacy_api/state/member.rs
1use steel::*;
2
3use super::PoolAccount;
4
5/// Member records the participant's claimable balance in the mining pool.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Member {
9 /// The member id.
10 pub id: u64,
11
12 /// The pool this member belongs to.
13 pub pool: Pubkey,
14
15 /// The authority allowed to claim this balance.
16 pub authority: Pubkey,
17
18 /// The current balance amount which may be claimed.
19 pub balance: u64,
20
21 /// The total balance this member has earned in the lifetime of their participation in the pool.
22 pub total_balance: u64,
23}
24
25account!(PoolAccount, Member);