OVM_GasPriceOracle.solcontract, so the Sequencer can fetch the latest
gasPriceand update the L2 gas over time.
yarnin the base directory
rollup_gasPrices, which is composed of
L2GasPricebased on the following expression:
L1SecurityFeechanges gradually to reflect our service cost, primarily, the cost of writing state roots into L1, and the significant cost of relaying messages from L1 to L2 (e.g. deposits) and back from L2 to L1 (e.g. exits). Unlike other L2's, we include the cost of relaying messages in our gas limits, so you do not have to pay two different fees or have to worry about relaying your messages.
x%percentage of the average gas usage of the L1 txs that submitting the state and tx roots within last 1000 blocks. We adjust
xbased on our operation cost.