[voting-reward] apply the official reward amount (5M / Year)
@@ -29,7 +29,11 @@ var (
zeroValue = &big.Int{}
vprKeyPrefix = []byte("VotingPowerBucket/")
- defaultReward, _ = new(big.Int).SetString("1000000000000000000", 10) // 1 AERGO
+ fiveAergo, _ = new(big.Int).SetString("5000000000000000000", 10)
+ ten = new(big.Int).SetUint64(10)
+ million = new(big.Int).Exp(ten, new(big.Int).SetUint64(6), nil)
+ oneYIS = new(big.Int).SetUint64(365 * 24 * 60 * 60)
+ defaultReward = new(big.Int).Div(new(big.Int).Mul(fiveAergo, million), oneYIS) // 5M AERGO / Year
binSize, _ = new(big.Int).SetString("10000000000000000000000", 10) // 10000 AERGO
votingPowerRank *vpr
