Skip to content

Commit

Permalink
staking-incentives_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reveloper committed Dec 2, 2023
1 parent 9f0302d commit 2caf537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/participate/network-maintenance/staking-incentives.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Learn more about current validation stakes with [tonscan.com](https://tonscan.co

Based on the available stakes of potential validators, optimal values for the minimum and maximum stake are determined, with the aim of maximizing the magnitude of the total stake.

1. Elector takes all applicants who have a stake higher than the minimum (300k).
1. Elector takes all applicants who have a stake higher than the minimum ([300k](https://tonviewer.com/config#17)).
2. Elector sorts them in descending order of stake.
3. If there are more participants than the maximum number of validators, Elector discards the tail of the list. Then Elector does the following:
3. If there are more participants than the [maximum number](https://tonviewer.com/config#16) of validators, Elector discards the tail of the list. Then Elector does the following:

* For each cycle i from 1 to N (the remaining number of participants), it takes the first i applications from the sorted list.
* It calculates the effective stake, considering the `max_factor`. That is, if a person has put in 100k, but with a `max_factor` of 3, and the minimum stake in the list is 300k Toncoins, then the effective stake will be min(300k, 3*310k) = 300k.
* It calculates the effective stake, considering the `max_factor`. That is, if a person has put in 310k, but with a `max_factor` of 3, and the minimum stake in the list is 300k Toncoins, then the effective stake will be min(300k, 3*310k) = 300k.
* It calculates the total effective stake of all i participants.

Once Elector finds such an i, where the total effective stake is maximal, we declare these i participants as validators.
Expand Down

0 comments on commit 2caf537

Please sign in to comment.