Faq

Staking Calculation Formula and Detailed Analysis

Author:admin

  glcoin combines the features and strengths of both Proof of Space & Time (PoST) and Proof of Staking (PoS). In the process of producing blocks, Proof of Space is still the foremost consideration; the more plots miners have, the greater the probability that they will be selected to produce blocks. And as more miners join, space on the network will increase, and so the difficulty of the "hashing calculation" will need to be adjusted accordingly. Inthe consensus mechanism of glcoin, the system will first provide a base difficulty that is consistent across the entire network, and then the nodes will adjust corresponding individual difficulty according to the number of coins staked by each miner. The lower the difficulty coefficient, the greater the probability of being selected to produce the block.
      ● D is Difficulty of the entire network;
      ● D' is individual difficulty;
      ● SF is Staking Factor;
      ● S is the amount of Staking;
      ● N is Miner's plots size(TiB), which 1TiB equal to 1.
      ● A is a constant with a default value of 1 and a range of (1, 2); it is used to fine-tune the extent to which staking influences mining difficulty.and special constants are denoted as A, usually A=1.
      When A = 1, the staking factor (SF) falls within the range of (0.5, 1.5), which serves as the standard parameter configuration for the mainnet.      
1: When S < N,Then the staking formula is as follows:
      SF=0.05+1/(S/N+0.05)
      D' = D × SF
      D' = D × (0.05+1/(S/N+0.05))
2: When S≥N,Then the staking formula is as follows:
      SF = 0.5 + 1 / (S / N + A)
      D' = D × SF
      D' = D × (0.5 + 1 / (S / N + A))
   The Individual Difficulty of every miner is equal to the Difficulty of the entire network multiplied by a Staking Factor.
That is to say, Individual Difficulty(D') = Difficulty(D) × Staking Factor(SF).
   The function of the A is to fine-tune the staking effect, and it is approximately in the range of [1, 2]. When A=1, the coefficient will fall in the interval [0.5, 1.5]. That is, the miner’s individual difficulty is 50% higher than the difficulty of the entire network if he does not stake any glcoin; The individual difficulty is equal to the difficulty of the entire network if the miner stake the amount of gl same with his plots size(TiB); The miner can significantly increase the probability to win the block if he stake the amount of gl more than his plots size(TiB)
   

Example: Taking a storage capacity of 100 TiB computing power‌ (i.e., N=100) and assuming a network-wide base difficulty of D=1000, the calculated results for various staking amounts are as follows:

Staked Amount
S/N ratio
calculate
SF result
Personal Difficulty D'
Equivalent computing power (N/SF)
0gl
0
0.05+1/(0+0.05)=20.05
20.05
20050
4.987TiB
10gl
0.1
0.05 + 1/(0.1 + 0.05)≈6.717
6.717
6717
14.888TiB
20gl
0.2
0.05 + 1/(0.2 + 0.05)=4.050
4.050
4050
24.691TiB
30gl
0.3
0.05 + 1/(0.3 + 0.05)≈2.907
2.907
2907
34.400TiB
40gl
0.4
0.05 + 1/(0.4 + 0.05)≈2.272
2.272
2272
44.014TiB
50gl
0.5
0.05 + 1/(0.5 + 0.05)≈1.868
1.868
1868
53.5337TiB
60gl
0.6
0.05 + 1/(0.6 + 0.05)≈1.588
1.588
1588
62.972TiB
70gl
0.7
0.05 + 1/(0.7 + 0.05)≈1.383
1.383
1383
72.307TiB
80gl
0.8
0.05 + 1/(0.8 + 0.05)≈1.226
1.226
1226
81.566TiB
90gl
0.9
0.05 + 1/(0.9 + 0.05)≈1.103
1.103
1103
90.662TiB
100gl
1.0
0.5 + 1/(1 + 1) = 1.0
1.0
1000
100TiB
200gl
2.0
0.5 + 1/(2 + 1)≈0.833
0.833
833
120.048TiB
300gl
3.0
0.5 + 1/(3 + 1)=0.750
0.750
750
133.333TiB
400gl
4.0
0.5+1/(4+1)=0.7
0.7
700
142.857TiB
500gl
5.0
0.5+1/(5+1)≈0.667
0.667
667
149.925TiB
600gl
6.0
0.5+1/(6+1)≈0.643
0.643
643
155.521TiB
700gl
7.0
0.5+1/(7+1)=0.625
0.625
625
160TiB
800gl
8.0
0.5+1/(8+1)≈0.611
0.611
611
163.666TiB
900gl
9.0
0.5+1/(9+1)=0.600
0.600
600
166.667TiB
1000gl
10.0
0.5+1/(10+1)≈0.591
0.591
591
169.205TiB
2000gl
20.0
0.5+1/(20+1)≈0.548
0.548
548
182.482TiB
3000gl
30.0
0.5+1/(30+1)≈0.532
0.532
532
187.700TiB
5000gl
50.0
0.5+1/(50+1)≈0.520
0.520
520
192.308TiB
10000gl
100.0
0.5+1/(100+1)≈0.510
0.510
510
196.078TiB


conclusion: For example, miner have : 100T disk space,if miner not stake GL, approximately equal to 4.987TiB disk space,which means that your farming speed is 20.05 times slower than your normal farming speed.if miner stake 50GL,equal to 53.5337TiB disk space.if miner stake 100GL,equal to 100TiB disk space,normal farming speed.if miner stake 1000GL,approximately equal to 169TiB disk space,This means that your farming speed is 1.692 times faster than normal farming speed,if miner stake 5000GL,approximately equal to 192.308TiB disk space,this means that your farming speed is 1.92 times faster than normal farming speed。