matejchiDEXs Optimism
    Updated 2025-03-26
    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