You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/Starknet/modules/architecture/pages/staking.adoc
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Jump into the discussion and help shape the future of Starknet's decentralizatio
9
9
10
10
== Overview
11
11
12
-
While Starknet is currently still centralized, it is xref:roadmap[gradually] moving towards employing a xref:protocol[staking protocol], handing over the responsibilities of producing, attesting, and proving blocks to validators. To facilitate this gradual implementation, the protocol's xref:architecture[architecture] is modular, ensuring maximum flexibility and ease of upgrades. However, anyone holding STRK in their wallets can already stake their tokens and earn rewards based on their level of participation by following xref:procedures[a few simple steps].
12
+
While Starknet is currently still centralized, it is xref:roadmap[gradually] moving towards employing a xref:protocol[staking protocol], handing over the responsibilities of producing, attesting, and proving blocks to validators. To facilitate this gradual implementation, the protocol's architecture is divided into several xref:components[components], ensuring maximum flexibility and ease of upgrades. However, anyone holding STRK in their wallets can already stake their tokens and earn rewards based on their level of participation by following xref:procedures[a few simple steps].
13
13
14
14
[TIP]
15
15
====
@@ -48,24 +48,28 @@ The following sections describe the details of Starknet's staking protocol. The
48
48
| 1 STRK
49
49
50
50
| Minting curve yearly inflation cap (stem:[C])
51
-
| 1.6
52
-
| 1.6
51
+
| 1.6%
52
+
| 1.6%
53
53
54
54
| Withdrawal security lockup
55
55
| 21 days
56
56
| 5 minutes
57
57
58
58
| Epoch length (stem:[E])
59
-
| 120
60
-
| 40
59
+
| 120 blocks
60
+
| 40 blocks
61
+
62
+
| Epoch duration
63
+
| 3600 seconds
64
+
| 1200 seconds
61
65
62
66
| Attestation window (stem:[W])
63
-
| 16
64
-
| 16
67
+
| 16 blocks
68
+
| 16 blocks
65
69
66
70
| Number of epochs used for latency (stem:[k])
67
-
| 3600
68
-
| 1200
71
+
| 1 block
72
+
| 1 block
69
73
|===
70
74
71
75
=== Roles
@@ -216,13 +220,13 @@ The following latencies are set in place:
216
220
217
221
Starting from its second phase, the staking protocol allows validators to increase their commission. To avoid an unexpected increase in commissions, validators must commit to a certain maximum commission stem:[M] and the last date (in epochs) that this commitment is relevant for. Until this date arrives, validators cannot increase their commission beyond stem:[M], but can freely change their commission in the range stem:[[0,M\]].
218
222
219
-
== Architecture
223
+
== Components
220
224
221
225
The implementation of Starknet's staking protocol is divided into several contracts, summarized in the following figure:
222
226
223
227
image::staking-architecture.png[]
224
228
225
-
This modular architecture allows for targeted upgrades and improvements without affecting the entire system. Access control mechanisms are also in place to ensure that only authorized parties can make critical changes, further enhancing the security of the staking process. The following table details the key components of the architecture:
229
+
This modular architecture allows for targeted upgrades and improvements without affecting the entire system. Access control mechanisms are also in place to ensure that only authorized parties can make critical changes, further enhancing the security of the staking process. The following table details the key components of the protocol:
0 commit comments