pub fn calculate_reward(
    accumulated_rps_start: FixedU128,
    accumulated_rps_now: FixedU128,
    shares: Balance
) -> Result<Balance, MathError>
Expand description

General formula to calculate reward. Usage depends on type of rps and shares used for calculations