matejchiDEXs Optimism
Updated 2025-03-26Copy 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
›
⌄
with top_5 as
(
select
platform,
sum(amount_in_usd) as total_volume
from optimism.defi.ez_dex_swaps
group by platform
order by total_volume desc
limit 5
)
select
date_trunc ('month', block_timestamp) as month,
platform,
sum(amount_in_usd) as monthly_amount,
from optimism.defi.ez_dex_swaps
where
month < date_trunc('month', current_date)
and platform in (select platform from top_5)
group by month, platform
order by month asc
QueryRunArchived: QueryRun has been archived