ore_pool_api/state/
share.rs

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

use super::AccountDiscriminator;

/// Share tracks a member's contribution to the pool stake account.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Share {
    /// The authority of this share account.
    pub authority: Pubkey,

    /// The stake balance the authority has deposited and may unstake.
    pub balance: u64,

    /// The mint this share account is associated with.
    pub mint: Pubkey,

    /// The pool this share account is associated with.
    pub pool: Pubkey,
}

account!(AccountDiscriminator, Share);