This document outlines the calculation process for transaction fees on Lollipop, emphasizing their lower cost compared to Ethereum.
Lollipop’s transaction fees are determined by adding two components together:
calldata
of all L2 transactions, it’s important to note that L2 transactions are not directly executed in L1.calldata
into the rollup transaction is calculated. The term tx_data_gas
mentioned earlier refers to this, and its calculation is as follows.l1_base_fee
represents the base fee of L1, which is the amount of ETH required for the rollup transaction.l1_base_fee
is stored in the L2 OVM_GasPriceOracle
contract.overhead
is calculated in gas units and is assigned a relatively small value. scalar
is the weight multiplied for the L1 security fee.This document outlines the calculation process for transaction fees on Lollipop, emphasizing their lower cost compared to Ethereum.
Lollipop’s transaction fees are determined by adding two components together:
calldata
of all L2 transactions, it’s important to note that L2 transactions are not directly executed in L1.calldata
into the rollup transaction is calculated. The term tx_data_gas
mentioned earlier refers to this, and its calculation is as follows.l1_base_fee
represents the base fee of L1, which is the amount of ETH required for the rollup transaction.l1_base_fee
is stored in the L2 OVM_GasPriceOracle
contract.overhead
is calculated in gas units and is assigned a relatively small value. scalar
is the weight multiplied for the L1 security fee.