Skip to content

Commit c21c773

Browse files
committed
zkEVM user fees - execution costs
1 parent 776a62d commit c21c773

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/zkEVM/architecture/user-fees.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,15 @@ where $\texttt{TxNonZeroBytes}$ represents the count of non-zero bytes in a raw
420420

421421
Costs associated with transaction execution is denoted by $\texttt{ExecutionCost}$, and it is measured in gas.
422422

423-
Observe that, in contrast to data availability costs, calculating computational costs requires execution of the transactions.
423+
In contrast to costs for data availability, calculating computational costs necessecitates transactions to be executed.
424424

425425
So then,
426426

427427
$$
428428
\texttt{GasUsed} = \texttt{DataCost} + \texttt{ExecutionCost}
429429
$$
430430

431-
432-
433-
434-
Computational cost is calculated with the following formula:
431+
The total fees on L2 are calculated with the following formula:
435432

436433
$$
437434
\texttt{GasUsed} \cdot \texttt{L2GasPrice}
@@ -445,7 +442,7 @@ $$
445442

446443
In particular, we choose a factor of $0.04$.
447444

448-
In contrast to costs for data availability, calculating computational costs necessecitates transactions to be executed.
445+
449446

450447

451448

0 commit comments

Comments
 (0)