Skip to content

Commit

Permalink
Fixed Median Fees (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny77D authored Oct 30, 2024
1 parent 0531771 commit 437de10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/staging/scroll/fact_scroll_gas_gas_usd_revenue.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ with
select
to_timestamp(block_timestamp)::date as date,
sum(gas_used * gas_price + l1_fee) / 1e18 as gas,
median(gas_used * gas_price + l1_fee) as median_gas,
median((gas_used * gas_price + l1_fee) / 1e18) as median_gas,
'scroll' as chain
from {{ ref("fact_scroll_transactions") }}
group by 1
Expand Down

0 comments on commit 437de10

Please sign in to comment.