From 3faa7623480f5a8dffc16687a61c8a1e1b44e694 Mon Sep 17 00:00:00 2001 From: yuriy0803 Date: Thu, 11 Aug 2022 19:56:19 +0200 Subject: [PATCH] ubiq If Orion use new MP Reward --- payouts/unlocker.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/payouts/unlocker.go b/payouts/unlocker.go index 6e190f7..17b2819 100644 --- a/payouts/unlocker.go +++ b/payouts/unlocker.go @@ -669,17 +669,9 @@ func getConstRewardUbiq(height int64) *big.Int { reward = big.NewInt(4e+18) // Year 4 } - if headerNumber.Cmp(big.NewInt(1791818)) > 0 { - reward = big.NewInt(3e+18) - // Year 5 - } - if headerNumber.Cmp(big.NewInt(2150181)) > 0 { - reward = big.NewInt(2e+18) - // Year 6 - } - if headerNumber.Cmp(big.NewInt(2508545)) > 0 { - reward = big.NewInt(1e+18) - // Year 7 + // If Orion use new MP + if headerNumber.Cmp(big.NewInt(1791793)) >= 0 { + reward = big.NewInt(15e+17) } return reward