mattkstewUniswap-v3 Pool Metrics
    Updated 2023-07-30
    SELECT
    pool_name,
    sum(case when amount_in_usd is null then amount_out_usd else amount_in_usd end) AS Volume_USD,
    count(distinct tx_hash) AS Swaps,
    count(distinct origin_from_address) AS Unique_Swappers,
    avg(case when amount_in_usd is null then amount_out_usd else amount_in_usd end) AS Avg_Volume_USD,
    sum(case when amount_in_usd is null then amount_out_usd else amount_in_usd end) * .003 AS Fee_Volume_USD
    FROM avalanche.core.ez_dex_swaps
    WHERE platform = 'uniswap-v3'
    AND (AMOUNT_IN_USD between AMOUNT_OUT_USD - 5000 and AMOUNT_OUT_USD + 5000) -- I got this from Masi's Dashboard (https://flipsidecrypto.xyz/Masi/uniswap-s-role-in-avalanche-s-defi-growth-m6D9n6) who Credited it to "Abbas from old Dashboards"
    group by 1
    order by 2 desc
    Run a query to Download Data