mattkstewArbitrum 8
Updated 2023-01-20
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with tab1 as (
select
date_trunc('day', hour) as date,
avg(price) as WETH_Price
from optimism.core.fact_hourly_token_prices
where symbol like 'WETH'
group by 1
)
select
date_trunc('day', block_timestamp) as date,
case when date >= '2023-01-10' then 'After the Flip'
else 'Before the Flip' END as date_Flipped,
sum(tx_fee * WETH_Price)
from arbitrum.core.fact_transactions left outer join tab1
on date_trunc('day', block_timestamp) = tab1.date
where block_timestamp > '2022-12-01'
group by 1,2
Run a query to Download Data