pub type StakePoolRef<'a> = StakePool<RefMut<'a, StakePoolHeader>, RefMut<'a, [RewardsTuple]>>;

Aliased Type§

struct StakePoolRef<'a> {
    pub header: RefMut<'a, StakePoolHeader>,
    pub balances: RefMut<'a, [RewardsTuple]>,
}

Fields§

§header: RefMut<'a, StakePoolHeader>§balances: RefMut<'a, [RewardsTuple]>

Circular buffer of length STAKE_BUFFER_LEN storing (inflation * pool_total_staked / total_staked) in FP32 format

Implementations§

source§

impl<'a> StakePoolRef<'a>

source

pub fn get_checked<'b: 'a>( account_info: &'a AccountInfo<'b>, allowed_tags: Vec<Tag> ) -> Result<Self, ProgramError>