datavortexby platform
    Updated 2025-03-02
    WITH all_trades AS (
    SELECT platform,
    COUNT(DISTINCT tx_hash) AS total_trades,
    SUM(amount_in_usd) AS total_trades_volume,
    COUNT(DISTINCT origin_from_address) AS total_traders
    FROM ethereum.defi.ez_dex_swaps
    WHERE pool_name IN (
    'USD0-LBTC 3000 60 UNI-V3 LP',
    'WBTC-LBTC 100 1 UNI-V3 LP',
    'eBTC-LBTC 500 10 UNI-V3 LP',
    'LBTC-WETH',
    'LBTC-cbBTC 500 10 UNI-V3 LP',
    'WBTC-LBTC 500 10 UNI-V3 LP'
    )
    GROUP BY platform

    UNION ALL

    SELECT platform,
    COUNT(DISTINCT tx_hash) AS total_trades,
    SUM(amount_in_usd) AS total_trades_volume,
    COUNT(DISTINCT origin_from_address) AS total_traders
    FROM base.defi.ez_dex_swaps
    WHERE pool_name IN (
    'cbBTC-LBTC 3000 60 UNI-V3 LP',
    'cbBTC-0xeca...11c1 0 1 ASLP',
    'Balancer LBTC/cbBTC',
    'cbBTC-LBTC'
    )
    GROUP BY platform

    UNION ALL

    SELECT platform,
    COUNT(DISTINCT tx_hash) AS total_trades,
    SUM(amount_in_usd) AS total_trades_volume,
    Last run: 2 months ago
    PLATFORM
    TOTAL_TRADES
    TOTAL_TRADES_VOLUME
    TOTAL_TRADERS
    1
    uniswap-v351389652088035.3135407
    2
    aerodrome-slipstream133387116999457.8317630
    3
    pancakeswap-v333847920693.592707
    4
    maverick1713849377.031141
    5
    pancakeswap-v285409149115.5813526
    6
    uniswap-v21737972.2891
    7
    balancer4846.6544
    8
    woofi210.022
    9
    aerodrome80.147
    9
    304B
    17s