RayyykEthereum Post Merge 3
Updated 2022-11-11Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
›
⌄
with table_1 as (select date_trunc('day', block_timestamp) as day,
count(distinct(origin_from_address)) as wallet_count,
avg(wallet_count) over (order by day asc rows between 6 preceding and current row) as ma_wallet_count,
count(distinct(tx_hash)) as tx_count,
avg(tx_count) over (order by day asc rows between 6 preceding and current row) as ma_tx_count,
sum(amount_out_usd) as usd_volume,
avg(usd_volume) over (order by day asc rows between 6 preceding and current row) as ma_usd_volume
from ethereum.core.ez_dex_swaps
where block_timestamp >= '2022-07-15'
and symbol_out in ('WETH', 'ETH')
group by 1)
select day,
case
when day >= '2022-09-15 00:00:00.000' then 'Merged'
when day >= '2022-09-08 00:00:00.000' and day < '2022-09-15 00:00:00.000' then 'One Week Before Merge'
when day >= '2022-08-15 00:00:00.000' and day < '2022-09-08 00:00:00.000' then 'One Month Before Merge'
else 'Two Months Before Merge'
end as merge,
wallet_count,
ma_wallet_count,
tx_count,
ma_tx_count,
usd_volume,
ma_usd_volume
from table_1
order by 1
Run a query to Download Data