Skip to content

Commit 61ef58b

Browse files
committed
update zkEVM User fees doc
1 parent c21c773 commit 61ef58b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/zkEVM/architecture/user-fees.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ $$
428428
\texttt{GasUsed} = \texttt{DataCost} + \texttt{ExecutionCost}
429429
$$
430430

431-
The total fees on L2 are calculated with the following formula:
431+
The total fees to be received by L2 are calculated with the following formula:
432432

433433
$$
434434
\texttt{GasUsed} \cdot \texttt{L2GasPrice}
@@ -840,11 +840,7 @@ Let’s examine the above figure in more detail.
840840
Recall that the $\texttt{GasUsedRPC}$ is obtained in the RPC pre-execution using;
841841

842842
- A previous state root, which has now changed, and
843-
- The current $\texttt{L1GasPrice}$, which may also differ from the one used when sending the transaction to the RPC, for all the transactions stored in the Pool, and sequence the one having higher $\texttt{EEGP}$.
844-
845-
It is important to note that this should be done in this precise order.
846-
847-
We could have calculated the $\texttt{EEGP}$ just before storing the transactions in the Pool and sorting it by EEGP, but this would not yield the same result because the $\texttt{L1GasPrice}$ at that moment is different from the one at the time of sequencing a transaction, potentially changing the $\texttt{EEGP}$ as well as the prioritization order of transactions.
843+
- The current $\texttt{L1GasPrice}$, which may also differ from the one used when sending the transaction to the RPC.
848844

849845
2. At this point, we have two options:
850846

0 commit comments

Comments
 (0)