Flipside Community5B - base most popular dexes among acquired_users
    Updated 2025-02-04
    with acquired_users as (
    select distinct from_address as user
    from base.core.fact_transactions
    where block_timestamp::date >='2023-01-01'
    and block_timestamp::date < '2024-01-01'
    and nonce=1
    )

    select
    -- platform,
    case
    when platform ilike '%uniswap%' then 'uniswap'
    else platform
    end as dex,
    count(distinct origin_from_address) as users,
    count(distinct tx_hash) as transactions
    from base.defi.ez_dex_swaps
    where origin_from_address in (select user from acquired_users)
    and block_timestamp::date >='2023-01-01'
    and block_timestamp::date < '2024-01-01'
    group by 1
    order by 2 desc, 3 desc
    limit 5






    Last run: 3 months ago
    DEX
    USERS
    TRANSACTIONS
    1
    uniswap3337451450410
    2
    baseswap2025521764673
    3
    maverick170815509392
    4
    sushiswap116028576109
    5
    aerodrome84595574378
    5
    138B
    14s