/// Accrue mine for the user from the reserve in context (only for the portion of un-collaterized LToken)

Accrue mine for the user from the reserve in context (only for the portion of un-collaterized LToken)
Accrue mine for the user from the reserve in context ( only for the portion of un - collaterized LToken )
pub fn refresh_unclaimed(&mut self, index:usize, reserve:&Pool) -> ProgramResult{
        let mining_index = &mut self.mining_indices[index];
        self.unclaimed_mine = self.unclaimed_mine.try_add(
            reserve.lottery.l_token_mining_index
                .try_sub(mining_index.index)?
                .try_mul(mining_index.un_coll_l_token_amount)?
        )?;
        self.mining_indices[index].index = reserve.lottery.l_token_mining_index;
        Ok(())
    }
pub fn refresh_unclaimed ( & mut self , index : usize , reserve : & Pool ) -> ProgramResult { let mining_index = & mut self . mining_indices [ index ] ; self . unclaimed_mine = self . unclaimed_mine . try_add ( reserve . lottery . l_token_mining_index . try_sub ( mining_index . index ) ? . try_mul ( mining_index . un_coll_l_token_amount ) ? ) ? ; self . mining_indices [ index ] . index = reserve . lottery . l_token_mining_index ; Ok ( ( ) ) }
Accrue mine for the user from the reserve in context (only for the portion of un-collaterized LToken)
Accrue mine for the user from the reserve in context ( only for the portion of un - collaterized LToken )
&mut self
index
usize
reserve
&Pool