Skip to content

Commit 667fe0d

Browse files
author
syrettaman
committed
Display formula in proper maths format
1 parent 9017ba3 commit 667fe0d

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

docs/concepts/staking/block_reward.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,35 @@ Reward formulas can be found in the technical documentation [parallelchain-proto
2222

2323
### Reward Rate
2424

25-
Over time, the block reward amount decreases as more blocks are added to the blockchain. This is known as the **block reward halving**, and it is a feature of many blockchain networks, including Bitcoin. The block reward halving helps to control the supply of cryptocurrency and prevent inflation.
25+
The block reward amount gradually decreases as additional blocks are incorporated into the blockchain over time. This process, which is known as the **block reward halving**, is a characteristic found in various blockchain networks, such as Bitcoin. By implementing the block reward halving, the supply of cryptocurrency is regulated, effectively curbing inflationary pressures.
2626

27-
The reward rate is:
27+
The reward rate is calcuated as following:
2828

29-
- Initially 8.5% per annum in the first year
30-
- Reduced gradually 15% per annum
31-
- Kept at 1.5% per annum after 10 years (3650 days)
29+
- First year: 8.5% per annum
30+
- Reduce 15% per annum
31+
- After 10 year (3650 days): keep at 1.5% per annum
3232

33-
The total amount of rewards (issuance) introduced to the network is calculated as follows:
3433

35-
```
36-
Total amount of stake x Issuance rate
37-
```
34+
The **total amount of rewards (issuance)** introduced to the network is calculated as follows:
3835

39-
For example, if the total amount of stake of a validator is `100,000 XPLL` currently, and the issuance rate is `0.001`, then the total amount of XPLL to be issued to that validator in the next epoch will be `100,000 * 0.001 = 100 XPLL`.
36+
$$
37+
\operatorname{Total amount of stake} \times \operatorname{Issuance rate}
38+
$$
39+
40+
For example, if the *total amount of stake* of a validator is `100,000 XPLL` currently, and the *issuance rate* is `0.001`, then the *total amount of XPLL to be issued* to that validator in the next epoch will be `100,000 * 0.001 = 100 XPLL`.
4041

4142

4243
The issuance rate is calculated as follows:
4344

44-
```
45-
Issuance rate at n-th epoch = 0.0835 * 0.85^(n/365) / 365
46-
```
45+
$$
46+
\operatorname{Issuance rate at n-th epoch} = 0.0835 \times \frac{0.85^{\frac{n}{365}}}{365}
47+
$$
4748

4849
but after 10 years, the formula will be changed to:
4950

50-
```
51-
Issuance rate = 0.0150 / 365
52-
```
51+
$$
52+
\operatorname{Issuance rate} = \frac{0.0150}{365}
53+
$$
5354

5455
### Delegator Reward
5556

@@ -59,9 +60,9 @@ Consider there will be a total amount of rewards `100 XPLL` issued to the valida
5960

6061
Then in the next epoch, `D` will be rewarded:
6162

62-
```
63-
reward = 100 XPLL * 10% * (100% - 1%) = 9.99 XPLL
64-
```
63+
$$
64+
\operatorname{Reward} = 100 XPLL \times 10\% \times (100\% - 1\%) = 9.99 XPLL
65+
$$
6566

6667
---
6768

mkdocs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,10 @@ markdown_extensions:
132132
- pymdownx.snippets
133133
- pymdownx.tabbed:
134134
alternate_style: true
135+
- pymdownx.arithmatex:
136+
generic: true
137+
138+
extra_javascript:
139+
- javascripts/mathjax.js
140+
- https://polyfill.io/v3/polyfill.min.js?features=es6
141+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

0 commit comments

Comments
 (0)