Skip to content

Commit 5f46e5a

Browse files
Update proof-of-stake.md (MystenLabs#7663)
moving @econmysten updates from devnet PR
1 parent e37cef7 commit 5f46e5a

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

doc/src/learn/tokenomics/proof-of-stake.md

+14-20
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,40 @@
22
title: Sui’s Delegated Proof-of-Stake System
33
---
44

5-
The Sui platform relies on delegated proof-of-stake to determine the set of validators that process transactions.
5+
The Sui platform relies on delegated proof-of-stake to determine the set of validators who process transactions.
66

77
## SUI token delegation
88

9-
Within each epoch, a fixed set of validators process transactions, each with a specific amount of stake delegated from SUI token holders. A validator's share of the total stake is relevant because it determines each validator’s share of voting power for processing transactions. Delegating SUI implies the SUI tokens are locked for the entire epoch. SUI token holders are free to unstake their SUI or to change their delegate validator when the epoch changes.
9+
Within each epoch, operations are processed by a fixed set of validators, each with a specific amount of stake delegated from SUI token holders. A validator's share of total stake is relevant in that it determines each validator’s share of voting power for processing transactions. Delegating SUI implies the SUI tokens are locked for the entire epoch. SUI token holders are free to unstake their SUI or to change their delegate validator when the epoch changes.
1010

1111
## Economic model
1212

13-
We now discuss how the different components of the Sui economy interact with each other in order to introduce Sui’s delegated proof-of-stake system. As a complementary reference, see the staking and tokenomics diagram in the [Sui Tokenomics](../learn/index.md) overview.
13+
We now discuss how the different components of the Sui economy interact with each other in order to introduce Sui’s delegated proof-of-stake system. As a complementary reference, see the staking and tokenomics diagram in the [Sui Tokenomics](../tokenomics/index.md) overview.
1414

1515
The Sui economic model works as follows:
1616

17-
At the beginning of each epoch, three important things happen:
17+
At the beginning of each epoch: Three important things happen:
1818
* SUI holders delegate (some) of their tokens to validators and a new [committee](../architecture/validators#committees) is formed.
19-
* The reference gas prices are set as described in Sui’s [gas price mechanism](gas-pricing.md)
19+
* The reference gas prices are set as described in Sui’s [gas price mechanism](gas-pricing.md).
2020
* The [storage fund’s](storage-fund.md) size is adjusted using the previous epoch’s net inflow.
2121

2222
Following these actions, the protocol computes the total amount of stake as the sum of delegated stake plus the storage fund. Call the share of delegated stake $\alpha$.
2323

24-
During each epoch, users submit transactions to the Sui platform and validators process them. For each transaction, users pay the associated computation and storage gas fees. In cases where users delete previous transaction data, they obtain a partial rebate of their storage fees. Validators observe the behavior of other validators and evaluate each other’s performance.
24+
During each epoch: Users submit transactions to the Sui platform and validators process them. For each transaction, users pay the associated computation and storage gas fees. In cases where users delete previous transaction data, users obtain a partial rebate of their storage fees. Validators observe the behavior of other validators and evaluate each other’s performance.
2525

26-
At the end of each epoch, the protocol distributes stake rewards to participants of the proof-of-stake mechanism. This occurs through two main steps:
27-
* The total amount of stake rewards is calculated as the sum of computation fees accrued throughout the epoch plus the epoch’s stake reward subsidies. The latter component is optional in that it will disappear in the long run as the amount of SUI in circulation reaches its total supply.
28-
* The total amount of stake rewards is distributed across various entities. Importantly, remember that the storage fund is taken into account in the calculation of the epoch’s total stake. However, the storage fund is not owned by any entities in the way that delegated SUI is. Instead, Sui’s economic model distributes the stake rewards accruing to the storage fund – a share $(1-\alpha)$ of the total stake rewards – to validators in order to compensate them for their storage costs. Of these rewards, a share $\gamma$ is paid out to validators while the remaining $(1-\gamma)$ is used to reinvest in the fund’s capital. Finally, assume that validators charge a commission $\delta\\%$ on SUI token holders as a fee for delegation. The split of stake rewards across participants is given by:
26+
At the end of each epoch: The protocol distributes stake rewards to participants of the proof-of-stake mechanism. This occurs through two main steps:
27+
* The total amount of stake rewards is calculated as the sum of computation fees accrued throughout the epoch plus the epoch’s stake reward subsidies. The latter component is temporary in that it will only exist in the network's first years and disappear in the long run as the amount of SUI in circulation reaches its total supply.
28+
* The total amount of stake rewards is distributed across various entities. Importantly, remember that the storage fund is taken into account in the calculation of the epoch’s total stake. However, the storage fund is not owned by any entities in the way that delegated SUI is. Instead, Sui’s economic model distributes the stake rewards accruing to the storage fund – a share $(1-\alpha)$ of the total stake rewards – to validators in order to compensate them for their storage costs. Of these rewards, a share $\gamma$ is paid out to validators while the remaining $(1-\gamma)$ is used to reinvest in the fund’s capital. Finally, let $\beta_v$ represent the share of stake managed by a validator $v$ that is owned by itself while $(1-\beta_v)$ represents the share owned by third-party delegators. Validators keep the full rewards accruing to their own stake but keep only a commission $\delta_v\\%$ on delegated SUI tokens as a fee for managing that stake. The split of stake rewards for the delegator pool staking at validator $v$ and for the validator itself equal:
2929

30-
$$ DelegatorRewards \ = \ ( 1 - \delta ) \ \times \ \alpha \ \times \ StakeRewards $$
30+
$$ DelegatorRewards_v \ = \Big[ \alpha(1-\delta_v)(1-\beta_v)\Big]\mu_v\sigma_v \times StakeRewards $$
3131

32-
$$ ValidatorRewards \ = \ ( \ \delta\alpha \ + \ \gamma (1 - \alpha) \ ) \ \times \ StakeRewards $$
32+
$$ ValidatorRewards_v \ = \ \Bigg[\alpha\Big(\beta_v+\delta_v(1-\beta_v)\Big)\mu_v\sigma_v+(1-\alpha)\frac{\gamma}{N}\Bigg] \times StakeRewards $$
3333

34-
$$ Reinvestment \ = \ ( 1 - \gamma ) \ \times \ ( 1 - \alpha ) \ \times \ StakeRewards $$
34+
The $\mu_v$ variable captures the output of the [tallying rule](gas-pricing.md#tallying-rule) computed as part of the [gas price mechanism](gas-pricing.md) and corresponds to $\mu_v\geq1$ for performant validators and $\mu_v<1$ for non-performant validators. This variable ensures that validators have "skin in the game" and are incentivized to operate Sui efficiently. The $\sigma_v$ parameter captures each validator's share of total stake.
3535

36-
## Stake reward distribution
36+
Consequently, validators with more stake earn more stake rewards and the joint $\mu_v\sigma_v$ term incentivizes validators to increase their share of stake while also operating the network performantly. In the long-run, this incentive encourages delegators to shift the stake distribution towards the network's most efficient validators, delivering a cost-efficient and decentralized network.
3737

38-
Sui’s gas pricing mechanism together with its delegated proof-of-stake mechanism jointly deliver an efficient economic model whereby validators are encouraged to operate smoothly with low but sustainable gas fees. A specific validator $v$ receives stake rewards equal to:
39-
40-
$$ ValidatorRewards(v) \ = \ RewardShare(v) \ \times \ ValidatorRewards $$
41-
42-
Where the $RewardShare(v)$ is determined in the [gas price mechanism](gas-pricing.md). Note that SUI token holders receive the same share of stake rewards as their delegate validator. Specifically, SUI token holders delegating at a validator $v$ obtain rewards equal to:
43-
44-
$$ DelegatorRewards(v) \ = \ RewardShare(v) \ \times \ DelegatorRewards $$
38+
Finally, note that the storage fund rewards accrue to all $N$ validators equally (since all validators face a similar burden of holding data in storage). The small amount of stake rewards that is not distributed out to either delegators or validators, namely the share $(1-\alpha)(1-\gamma)$ of stake rewards, gets reinvested in the storage fund.
4539

4640
On net, this design encourages validators to operate with low gas price quotes – but not too low or else they receive slashed stake rewards. Consequently, Sui’s gas price mechanism and delegated proof-of-stake system encourages a healthy competition for fair prices where validators set low gas fees while operating with viable business models.
4741

0 commit comments

Comments
 (0)