Skip to content

Commit

Permalink
update Combatting MEV
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC committed May 10, 2024
1 parent b118fb7 commit ce0b5be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BEPs/BEP-341.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- [4.2.2 Validator Set Switch](#422-validator-set-switch)
- [4.2.3 Block Avoidance](#423-block-avoidance)
- [4.2.4 Governable Number of Consecutive Blocks](#424-governable-number-of-consecutive-blocks)
- [4.2.5 Combatting MEV through Linearly Increasing System Reward Splits](#425-combatting-mev-through-linearly-increasing-system-reward-splits)
- [4.2.5 Combatting MEV](#425-combatting-mev)
- [5. Incentive Fairness Analysis](#5-incentive-fairness-analysis)
- [6. Security Analysis](#6-security-analysis)
- [7. Liveness Analysis](#7-liveness-analysis)
Expand Down Expand Up @@ -85,17 +85,17 @@ To prevent fewer than 1/2 of the nodes from controlling the entire network, bloc
#### 4.2.4 Governable Number of Consecutive Blocks
When n=1, it is equivalent to disabling the feature of consecutive block production, while significant optimization is observed when n belongs to the range [3,5]. Currently, the range for the value of n is set to [1,9] but except 2.

#### 4.2.5 Combatting MEV through Linearly Increasing System Reward Splits
As the consecutive period in which a single validator gains priority in block production extends, it may facilitate MEV extraction, potentially leading validators to include more transactions in the later blocks they consecutively produce. To constrain validators to promptly package transactions, within a validator's consecutive priority over n blocks, the transaction fees' split to the SystemRewardContract will increase linearly with block number.
Assuming minRatio and maxRatio are the minimum and maximum split ratios, respectively, the split ratio remains at minRatio when continuous block production is disabled. Once continuous block production is enabled (i.e., when n > 1), the systemRewardRatio is calculated as:
#### 4.2.5 Combatting MEV
As the consecutive period in which a single validator gains priority in block production extends, it may facilitate MEV extraction, potentially leading validators to include more transactions in the later blocks they consecutively produce. To constrain validators to promptly package transactions, within a validator's consecutive priority over n blocks, the transaction fees' split to the SystemRewardContract will increase linearly with block number, capped at the value denoted as antiMEVSystemRewardRatio.
Respectively, the split ratio remains at initSystemRewardRatio when continuous block production is disabled. Once continuous block production is enabled (i.e., when n > 1), the systemRewardRatio is calculated as:
<div align="center">
<img src=./assets/bep-341/4.2.5-1.png width=80% />
<img src=./assets/bep-341/4.2.5-1.png width=150% />
</div>
as shown in the following picture:
<div align="center">
<img src=./assets/bep-341/4.2.5-2.png width=75% />
</div>
In addition, both minRatio and maxRatio will be governable.
In addition, antiMEVSystemRewardRatio will be governable.

## 5. Incentive Fairness Analysis
Within a single epoch, tail validators have fewer block-producing opportunities, but the allocation of priority rights is unbiased and cannot be manipulated. Therefore, from a statistical perspective, it is fair.
Expand Down
Binary file modified BEPs/assets/bep-341/4.2.5-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ce0b5be

Please sign in to comment.