hbd1994Top USDC Pairs Based on Number of Swaps
    Updated 2023-05-01
    select
    POOL_NAME as "Pool Name",
    count(a.*) as "Number of Swaps",
    count(distinct FROM_ADDRESS) as "Number of Unique Swappers"

    from
    ethereum.uniswapv3.ez_swaps a
    left join ethereum.core.fact_transactions b on b.tx_hash = a.tx_hash
    where a.BLOCK_TIMESTAMP::date >= current_date - {{Date_Interval}}
    and POOL_NAME ilike '%usdc%'
    group by 1
    order by 2 desc
    limit 100
    Run a query to Download Data