CryptoIcicleETH-OA Merge - ETH Swaps
Updated 2023-01-11
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
28
29
30
31
32
33
34
›
⌄
-- Was the Merge a selling event? Why or why not?
-- Pay by Quality Your score determines your final payout.
-- Grand Prize 150 USDC (A score of 11 or 12 earns you a Grand Prize title)
-- Payout 100 USDC
-- Score Multiplier0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
-- Payout Network Ethereum
-- Level Intermediate
-- Difficulty Hard
-- Was the Merge a selling event? Why or why not?
-- Were miners the source of sell pressure? Show any wallets miners have transferred ETH into,
-- along with any other visualizations you think will add to your analysis.
with
txns as (
select
*
from ethereum.core.ez_dex_swaps
where (block_number >= 15537351 - {{n_blocks}} and block_number <= 15537351 + {{n_blocks}})
and symbol_in = 'WETH'
)
select
date_trunc('day', block_timestamp) as date,
iff(block_number < 15537351, '1.before-merge', '2.after-merge') as type,
sum(amount_in) as eth_swapped,
count(distinct origin_from_address) as n_users,
count(distinct tx_hash) as tx_frequency,
sum(n_users) over (partition by type order by date asc rows between unbounded preceding and current row) as cum_n_users,
sum(tx_frequency) over (partition by type order by date asc rows between unbounded preceding and current row) as cum_tx_frequency,
sum(eth_swapped) over (partition by type order by date asc rows between unbounded preceding and current row) as cum_eth_swapped
from txns
group by date, type
Run a query to Download Data