Mining Reward Calculation Logic
Last updated
Last updated
Mining rewards for Tabi Captain Nodes are calculated based on multiple parameters that determine both the total network emissions and individual node-specific outputs. Here is the core logic behind these calculations:
General Parameters:
TimoutCommit
3s
Block time
BlocksPerDay
28,800
Number of blocks per day
BlocksPerYear
10,519,200
Number of blocks per year
ConstentA
9,000,000
Fixed constant
ClaimsInitRewardRate
40%
Initial reward pool allocation
MaximumPowerOnPeriod
24
Maximum node operation period
InflationBase
10 billion
Base for inflation calculation
InflationRate
3%
Annual inflation rate
CurrentTotalTabi
Dynamic
Total current $veTABI + $Tabi
CurrentLevelForSale
1
Current technological progress level
CurrentRunDays
60
Number of days since system launch
PledgeTotalCountFromXn
Dynamic
Total amount staked per user
MintTotalCountFromXn
Dynamic
Total mining output per user
OnlinePeriodFromXn
Dynamic
Node uptime (Individual Operation Rate)
1. Daily Tabi Issuance Calculation:
2. Halving Cycle Calculation:
If CaptainNodeMintTotalCount ≥(InflationBase * ClaimsInitRewardRate * 0.5), Halving Cycle = 0.5 Else, Halving Cycle = 1
If (InflationBase * ClaimsInitRewardRate * 0.5) ≥CaptainNodeMintTotalCount ≥(InflationBase * ClaimsInitRewardRate * 0.75), Halving Cycle = 0.25 Else, Halving Cycle = 0.5
3. Technological Progress Factor Calculation:
TechProgressCoefficient = 1.6 ^ (CurrentMaxLevelMine - 1)
4. Global Base Emission Calculation:
CaptainNodeDailyBaseEmission = ConstentA * TechProgressCoefficient * Halving Cycle
5. Global Operational Rate Calculation:
If the operational rate is less than 0.1, it is set to 0.1.
If it is greater than or equal to 0.1, the calculated value is used.
6. Personal Stake Rate Calculation:
This rate is based on the user's total stake across validators and their node's mining output.
7. Global Staking Total Calculation:
8. Global Mining Output Calculation:
9. Global Staking Rate Calculation:
10. Daily Total Emission Calculation:
CaptainNodeDailyActualEmission = CaptainNodeDailyBaseEmission * OperationalRate * Global Staking Rate
The per-block emission is calculated as:
11. Node Uptime Calculation:
12. Node Mining Power Calculation:
If Personal Stake Rate > 100%, cap at 100%.
13. Global Mining Power Calculation:
14. Mining Power Ratio Calculation:
15. Node Mining Reward Calculation:
CaptainNodeDailyReward = CaptainNodeDailyActualEmission * Mining Power Ratio
The per-block mining reward:
CaptainNodeBlockReward = CaptainNodeBlockActualEmission * Mining Power Ratio