gasPrice
in the OVM_GasPriceOracle.sol
contract, so the Sequencer can fetch the latest gasPrice
and update the L2 gas over time..env
file before running.OVM_GasPriceOracle
OVM_GasPriceOracle
yarn
in the base directoryyarn build
yarn start
rollup_gasPrices
, which is composed of L1SecurityFee
and L2GasPrice
based on the following expression:L1SecurityFee
changes 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.overhead
is the x%
percentage of the average gas usage of the L1 txs that submitting the state and tx roots within last 1000 blocks. We adjust x
based on our operation cost.