siavashjNew Swapper on Uniswap c copy copy copy
Updated 2023-05-15
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
35
36
›
⌄
with base as (
select
'Ethereum' as chain,
origin_from_address as swapper,
min(block_timestamp) as s_time,
tx_hash,
amount_in_usd
from ethereum.core.ez_dex_swaps
where platform ilike '%uniswap%'
and block_timestamp >= current_date - interval '12 month'
group by 1,2,4,5
union all
select
'Polygon' as chain,
origin_from_address as swapper,
min(block_timestamp) as s_time,
tx_hash,
amount_in_usd
from polygon.core.ez_dex_swaps
where platform ilike '%uniswap%'
and block_timestamp >= current_date - interval '12 month'
group by 1,2,4,5
union all
select
'Osmosis' as Chain,
origin_from_address as swapper,
min(block_timestamp) as s_time,
tx_hash,
amount_in_usd
from optimism.core.ez_dex_swaps
where platform ilike '%uniswap%'
and block_timestamp >= current_date - interval '12 month'
Run a query to Download Data