Moetot sush un - uni
Updated 2022-10-16
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 ADDRESS from polygon.core.dim_labels
where
PROJECT_NAME ilike '%uniswap%')
select
date_trunc(week, block_timestamp) as weeks,
count(DISTINCT tx_hash) as txs,
sum(txs)over( order by weeks rows between unbounded preceding and current row ) as cum_txs,
count(DISTINCT from_address) as wallets,
sum(wallets)over( order by weeks rows between unbounded preceding and current row ) as cum_wallets,
'Uniswap on Polygon' as type
from polygon.core.fact_transactions t
left join polygon.core.dim_labels l on t.to_address = l.address
where
to_address in (select address from base)
group by 1)
union all
(with base as (select ADDRESS from arbitrum.core.dim_labels
where
PROJECT_NAME ilike '%uniswap%')
select
date_trunc(week, block_timestamp) as weeks,
count(DISTINCT tx_hash) as txs,
sum(txs)over( order by weeks rows between unbounded preceding and current row ) as cum_txs,
count(DISTINCT from_address) as wallets,
sum(wallets)over( order by weeks rows between unbounded preceding and current row ) as cum_wallets,
'Uniswap on Arbitrum' as type
from arbitrum.core.fact_transactions t
Run a query to Download Data