elsinatotal activity
    Updated 2025-02-26
    with base as (
    SELECT
    block_timestamp,
    origin_from_address,
    tx_hash,
    pool_name,
    CASE
    WHEN amount_in_usd IS NOT NULL AND amount_out_usd IS NOT NULL THEN (amount_in_usd + amount_out_usd) / 2
    ELSE COALESCE(amount_in_usd, amount_out_usd)
    END AS amount
    from
    avalanche.defi.ez_dex_swaps
    where
    platform = 'pangolin' and
    amount_in_usd IS NOT NULL OR amount_out_usd IS NOT NULL
    )


    SELECT
    count(DISTINCT origin_from_address) as user_count,
    count(DISTINCT tx_hash) as tx_count,
    count(distinct pool_name) as pool_count,
    sum(amount) as total_volume,
    avg(amount) as avg_tx_volume
    from base


    Last run: about 2 months ago
    USER_COUNT
    TX_COUNT
    POOL_COUNT
    TOTAL_VOLUME
    AVG_TX_VOLUME
    1
    33121686404540622136164625535513.461823.313601149
    1
    57B
    7s