DarkJesus-8846//////
Updated 2022-10-13Copy 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
24
25
26
27
28
29
30
31
›
⌄
with table1 as (
select trader,
min (block_timestamp) as Mindate
from osmosis.core.fact_swaps
where from_currency = 'ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6B4EB2DF8A'
and tx_status = 'SUCCEEDED'
group by 1),
table2 as (
select trader,
min (block_timestamp) as Mindate
from osmosis.core.fact_swaps
where to_currency = 'ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6B4EB2DF8A'
and tx_status = 'SUCCEEDED'
group by 1)
select 'Swap From EVMOS' as swap_type,
mindate::date as date,
count (distinct trader) as New_Users,
sum (new_users) over (order by date) as Total_Users
from table1
group by 1,2
union ALL
select 'Swap to EVMOS' as swap_type,
mindate::date as date,
count (distinct trader) as New_Users,
sum (new_users) over (order by date) as Total_Users
from table2
group by 1,2
Run a query to Download Data