Skip to content

Commit

Permalink
Updating conventions as used in fee-mechanism.adoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
stoobie committed May 1, 2024
1 parent 7be2d28 commit 35bad58
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ The following formula describes the overall fee, stem:[F], for a transaction:
[stem]
++++
\begin{align}
F = \; & \text{gas_price}\cdot\Bigg(\max_k v_k w_k + \\
F = \; & gas\_price \cdot \Bigg(\max_k v_k w_k + \\
& \quad + \; \text{message_calldata_cost}\cdot 3t + (\text{message_calldata_cost} + \text{l1_log_data_cost})\cdot \sum\limits_{i=1}^t q_i \; + \\
& \quad + \; \left(\text{l1_storage_write_cost}+\text{log_message_to_l1_cost}\right)\cdot t + \; \\
& \quad + \; \text{l2_payload_costs}\Bigg) + \\
& \text{data_gas_price}\cdot\text{felt_size_in_bytes}\cdot\bigg(2(n-1)+2(m-1) + \ell +2D \bigg)
& data\_gas\_price\cdot\text{felt_size_in_bytes}\cdot\bigg(2(n-1)+2(m-1) + \ell +2D \bigg)
\end{align}
++++

Expand Down Expand Up @@ -61,7 +61,7 @@ The following formula describes the overall fee, stem:[F], for a transaction:
[stem]
++++
\begin{align}
F = \text{gas_price}\cdot&\Bigg(\max_k v_k w_k + \\
F = gas\_price\cdot&\Bigg(\max_k v_k w_k + \\
& + \; \text{da_calldata_cost}\left(2(n-1)+2(m-1) + \ell + 2D + 3t + \sum\limits_{i=1}^t q_i\right)\\
& - \; \text{contract_update_discount}\cdot (n-1) - 240 \\
& + \; \text{message_calldata_cost}\cdot 3t + (\text{message_calldata_cost} + \text{l1_log_data_cost})\cdot\sum\limits_{i=1}^t q_i \\
Expand Down

0 comments on commit 35bad58

Please sign in to comment.