mz0111arbitrum dex 3
Updated 2023-02-24Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
with tab1 as (
SELECT *
from Arbitrum.core.fact_event_logs
inner join Arbitrum.core.dim_labels b
on contract_address = address
where label_type = 'dex'
and BLOCK_TIMESTAMP >= CURRENT_DATE - {{period}}
)
select
BLOCK_TIMESTAMP:: date as day,
project_name,
count(DISTINCT tx_hash) as total_transactions,
count (distinct origin_from_address) as users
from tab1
group by 1 , 2
Run a query to Download Data