pub fn calculate_accumulated_rps(
    accumulated_rps_now: FixedU128,
    total_shares: Balance,
    reward: Balance
) -> Result<FixedU128, MathError>
Expand description

This function calculate and return reward per share or error.