pub fn mock_round_issuance_per_year(
		config: MiningResourceRateInfo,
		land_unit_circulation: u64,
	) -> MiningRange<u64> {
		let issuance_per_round = land_unit_circulation.checked_mul(config.ratio).unwrap_or(Zero::zero());

		let staking_allocation = issuance_per_round
			.checked_mul(config.staking_reward.into())
			.unwrap_or(issuance_per_round)
			.checked_div(10000u64)
			.unwrap();

		let mining_allocation = issuance_per_round
			.checked_mul(config.mining_reward.into())
			.unwrap_or(issuance_per_round)
			.checked_div(10000u64)
			.unwrap();

		// Return range - could implement more cases in the future.
		MiningRange {
			min: issuance_per_round,
			ideal: issuance_per_round,
			max: issuance_per_round,
			staking_allocation,
			mining_allocation,
		}
	}
/// Compute round issuance range from round inflation range and current total issuance
Compute round issuance range from round inflation range and current total issuance
Compute round issuance range from round inflation range and current total issuance
pub fn mock_round_issuance_per_year(
		config: MiningResourceRateInfo,
		land_unit_circulation: u64,
	) -> MiningRange<u64> {
		let issuance_per_round = land_unit_circulation.checked_mul(config.ratio).unwrap_or(Zero::zero());
		let staking_allocation = issuance_per_round
			.checked_mul(config.staking_reward.into())
			.unwrap_or(issuance_per_round)
			.checked_div(10000u64)
			.unwrap();
		let mining_allocation = issuance_per_round
			.checked_mul(config.mining_reward.into())
			.unwrap_or(issuance_per_round)
			.checked_div(10000u64)
			.unwrap();
		// Return range - could implement more cases in the future.
		MiningRange {
			min: issuance_per_round,
			ideal: issuance_per_round,
			max: issuance_per_round,
			staking_allocation,
			mining_allocation,
		}
	}
pub fn mock_round_issuance_per_year ( config : MiningResourceRateInfo , land_unit_circulation : u64 , ) -> MiningRange < u64 > { let issuance_per_round = land_unit_circulation . checked_mul ( config . ratio ) . unwrap_or ( Zero :: zero ( ) ) ; let staking_allocation = issuance_per_round . checked_mul ( config . staking_reward . into ( ) ) . unwrap_or ( issuance_per_round ) . checked_div ( 10000u64 ) . unwrap ( ) ; let mining_allocation = issuance_per_round . checked_mul ( config . mining_reward . into ( ) ) . unwrap_or ( issuance_per_round ) . checked_div ( 10000u64 ) . unwrap ( ) ; // Return range - could implement more cases in the future. MiningRange { min : issuance_per_round , ideal : issuance_per_round , max : issuance_per_round , staking_allocation , mining_allocation , } }
Compute round issuance range from round inflation range and current total issuance
Compute round issuance range from round inflation range and current total issuance
config
MiningResourceRateInfo
land_unit_circulation
u64