Pmisha-bmlMdxdexs
Updated 2022-05-26
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 t1 as (select
date_trunc('day',block_timestamp) as dt1,
count(distinct swapper) as swap_orca,
sum(swap_orca) over(order by dt1 asc) as rate_orca
from solana.fact_swaps
where block_timestamp>='2022-01-01'
and swap_program='orca'
group by 1),
t2 as (select
date_trunc('day',block_timestamp) as dt2,
count(distinct FROM_ADDRESS) as swap_uni,
sum(swap_uni) over(order by dt2 asc) as rate_uni
from flipside_prod_db.ethereum.dex_swaps
where block_timestamp>='2022-01-01'
and PLATFORM= 'uniswap-v2'
group by 1),
t3 as (select
date_trunc('day',block_timestamp) as dt3,
count(distinct SWAPPER) as swap_tiny,
sum(swap_tiny) over(order by dt3 asc) as rate_tiny
from flipside_prod_db.algorand.swaps
where BLOCK_TIMESTAMP>='2022-01-01'
and SWAP_PROGRAM= 'tinyman'
group by 1)
select t1.dt1 as dt,
swap_orca,
swap_uni,
swap_tiny,
rate_orca,
rate_uni,
rate_tiny
from t1
Run a query to Download Data