opensource-observer / oso

Measuring the impact of open source software
https://opensource.observer
Apache License 2.0
48 stars 13 forks source link

Use `gas_price` instead of `effective_gas_price` #1695

Open ccerv1 opened 1 week ago

ccerv1 commented 1 week ago

What is it?

Currently we use the following L2 gas fee formula:

receipt_gas_used * receipt_effective_gas_price / 1e18

OP labs currently use:

(l1_fee + receipt_gas_used * receipt_gas_price) / 1e18

Note: The difference is nil for the period under consideration, but we will do this to be fully consistent with how OP has historically looked at network gas fees.