ore_pool_api/state/
share.rs

1use steel::*;
2
3use super::AccountDiscriminator;
4
5/// Share tracks a member's contribution to the pool stake account.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Share {
9    /// The authority of this share account.
10    pub authority: Pubkey,
11
12    /// The stake balance the authority has deposited and may unstake.
13    pub balance: u64,
14
15    /// The mint this share account is associated with.
16    pub mint: Pubkey,
17
18    /// The pool this share account is associated with.
19    pub pool: Pubkey,
20}
21
22account!(AccountDiscriminator, Share);