pub fn calc_reward_fp32(
    current_offset: u64,
    last_claimed_offset: u64,
    stake_pool: &StakePoolRef<'_>,
    staker: bool,
    allow_zero_rewards: bool
) -> Result<u128, ProgramError>
Expand description

Cumulate the claimable rewards from the last claimed day to the present. Result is in FP32 format.

  • staker Compute the reward for a staker or a pool owner