// ComputeReward calculates how much each user should receive

ComputeReward calculates how much each user should receive
// ComputeReward calculates how much each user should receive
func ComputeReward(totalAmount Amount, numUsers int) Amount {
	amountForEach := Amount{new(big.Int)}
	amountForEach.Div(totalAmount.Int, big.NewInt(int64(numUsers)))
	amountForEach.Div(amountForEach.Int, RewardRoundingFactor)
	amountForEach.Mul(amountForEach.Int, RewardRoundingFactor)
	return amountForEach
}
func ComputeReward ( totalAmount Amount , numUsers int ) Amount { amountForEach := Amount { new ( big . Int ) } amountForEach . Div ( totalAmount . Int , big . NewInt ( int64 ( numUsers ) ) ) amountForEach . Div ( amountForEach . Int , RewardRoundingFactor ) amountForEach . Mul ( amountForEach . Int , RewardRoundingFactor ) return amountForEach }
ComputeReward calculates how much each user should receive
ComputeReward calculates how much each user should receive
// "floor" (round down) reward to prevent dust amounts
