SocioAnalyticabera dex chain level distributions
    Updated 2025-04-11
    WITH bera_users AS (
    SELECT DISTINCT from_address as address
    FROM berachain.testnet.fact_transactions
    ),

    daily_dex_stats AS (
    SELECT
    s.blockchain,
    COUNT(DISTINCT s.tx_hash) as daily_swaps,
    COUNT(DISTINCT s.trader) as unique_traders,
    SUM(COALESCE(s.amount_in_usd, 0)) as daily_volume_usd
    FROM bera_users b
    JOIN crosschain.defi.ez_dex_swaps s
    ON LOWER(b.address) = LOWER(s.trader)
    AND s.block_timestamp >= DATEADD(day, -30, CURRENT_DATE)
    GROUP BY 1
    ORDER BY 1
    )

    SELECT *
    FROM daily_dex_stats;
    Last run: 18 days agoAuto-refreshes every 3 hours
    BLOCKCHAIN
    DAILY_SWAPS
    UNIQUE_TRADERS
    DAILY_VOLUME_USD
    1
    base174259188280199516522.82
    2
    gnosis11695903158658.66
    3
    arbitrum53531347141161588778.8
    4
    optimism1997562742732094666.93
    5
    blast47091276779347.37
    6
    ethereum778863613574093182.96
    7
    avalanche23082633412645374.65
    8
    bsc41638866359109538345.05
    9
    polygon203636209336991344.15
    9
    318B
    351s