Skip to content

Commit ba8349d

Browse files
committed
Fix zkEVM EGP - 2 equations
1 parent 2b9d8eb commit ba8349d

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

docs/zkEVM/architecture/data-streamer/how-rollbacks-work.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
comments: true
3+
---
4+
15
Recall that the server-source protocol begins with calling the $\texttt{StartAtomicOp}(\ )$, corresponding to which a message is sent to the stream server, preparing to receive entries related to a specific atomic operation.
26

37
When the stream source sends the entries, the stream server appends the data of the entries to the stream file.

docs/zkEVM/architecture/effective-gas/tx-prioritization-egp.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
comments: true
3+
---
4+
15
Users who want their transactions to be priotized for sequencing can sign their transactions with gas prices that are higher than the suggested gas price. That is,
26

37
$$
@@ -37,23 +41,23 @@ The deviation percentage is compared to a parameter called $\texttt{FinalDeviati
3741
This presents 2 scenarios and their corresponding consequences:
3842

3943
1. If the percentage deviation is higher than the fixed deviation parameter,
40-
41-
$$
42-
\frac{|\texttt{NEGP} − \texttt{EEGP}|}{\texttt{EEGP}} \cdot 100 < \texttt{FinalDeviationParameter} = 10,
43-
$$
44-
45-
it indicates that there is minimal distinction between charging the user with $\texttt{NEGP}$ compared to $\texttt{EEGP}$.
46-
47-
Despite potential losses to the network, the user gets charged the $\texttt{EEGP}$ amount as the gas price.
44+
45+
$$
46+
\frac{|\texttt{NEGP} − \texttt{EEGP}|}{\texttt{EEGP}} \cdot 100 < \texttt{FinalDeviationParameter} = 10,
47+
$$
48+
49+
it indicates that there is minimal distinction between charging the user with $\texttt{NEGP}$ compared to $\texttt{EEGP}$.
50+
51+
Despite potential losses to the network, the user gets charged the $\texttt{EEGP}$ amount as the gas price.
4852

4953
2. On the contrary, if the percentage deviation equals or exceeds the deviation parameter,
50-
51-
$$
52-
\frac{|\texttt{NEGP} − \texttt{EEGP}|}{\texttt{EEGP}} \cdot 100 ≥ \texttt{FinalDeviationParameter} = 10,
53-
$$
54-
55-
the difference between executions can be so big it warrants adjustment of the gas price to be $\texttt{NEGP}$​, and thus mitigate for potential losses to the network.
56-
54+
55+
$$
56+
\frac{|\texttt{NEGP} − \texttt{EEGP}|}{\texttt{EEGP}} \cdot 100 ≥ \texttt{FinalDeviationParameter} = 10,
57+
$$
58+
59+
the difference between executions can be so big it warrants adjustment of the gas price to be $\texttt{NEGP}$​, and thus mitigate for potential losses to the network.
60+
5761
### Effective percentage
5862

5963
The last parameter called the $\texttt{EffectivePercentage}$ is for measuring the unused portion of the user's signed gas price.

docs/zkEVM/architecture/effective-gas/zkevm-egp-strat.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
comments: true
3+
---
4+
15
This document presents an outline of the Polygon zkEVM's strategy toward executing transactions with the most accurate effective gas price.
26

37
- **Poll for L1 gas price regularly**

0 commit comments

Comments
 (0)