pub fn calculate_global_farm_rewards<Period: CheckedSub + TryInto<u32> + TryInto<u128>>(
    total_shares_z: Balance,
    price_adjustment: FixedU128,
    yield_per_period: FixedU128,
    max_reward_per_period: Balance,
    periods_since_last_update: Period
) -> Result<Balance, MathError>
Expand description

This function calculates global-farm rewards Balance or error.