pub fn calculate_user_reward(
    accumulated_rpvs: FixedU128,
    valued_shares: Balance,
    accumulated_claimed_rewards: Balance,
    accumulated_rpvs_now: FixedU128,
    loyalty_multiplier: FixedU128
) -> Result<(Balance, Balance), MathError>
Expand description

This function calculate and return (user_rewards, unclaimable_rewards).