Afonso_Diaz2023-08-21 04:15 PM
Updated 2023-08-21
999
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
t1 as (
select
tx_hash,
block_timestamp,
origin_from_address as user,
'Ethereum' as chain,
case
when amount_in_usd is not null then amount_in_usd
when amount_out_usd is not null then amount_out_usd
else null
end as amount_usd
from ethereum.core.ez_dex_swaps
where platform ilike 'uniswap%'
and amount_usd is not null
union all
select
tx_hash,
block_timestamp,
origin_from_address as user,
'Avalanche' as chain,
case
when amount_in_usd is not null then amount_in_usd
when amount_out_usd is not null then amount_out_usd
else null
end as amount_usd
from avalanche.core.ez_dex_swaps
where platform ilike 'uniswap%'
and amount_usd is not null
union all
select
Run a query to Download Data