shibidiloUntitled Query
Updated 2022-09-17Copy 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
›
⌄
with base as (select date_trunc('day', block_timestamp) as day,
case
when token0_symbol = 'WETH' then amount0_usd
when token1_symbol = 'WETH' then amount1_usd
end as WETH_USD_withdrawn,
case
when token0_symbol = 'WETH' then amount0_adjusted
when token1_symbol = 'WETH' then amount1_adjusted
end as WETH_withdrawn
from ethereum.uniswapv3.ez_lp_actions
where (token0_symbol = 'WETH' or token1_symbol = 'WETH')
and action = 'DECREASE_LIQUIDITY'
and day >= '2022-06-01')
select day,
case
when day >= '2022-09-01' then '2 Weeks Prior to The Merge'
else 'Other Days'
end as periods,
sum(WETH_USD_withdrawn),
sum(WETH_withdrawn)
from base
group by 1
Run a query to Download Data