Afonso_DiazTop bridgers
    Updated 2025-02-13
    with

    pricet as (
    select
    hour::date as date,
    token_address,
    avg(price) as token_price_usd
    from
    ronin.price.ez_prices_hourly
    group by 1, 2
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    to_address as user,
    symbol,
    amount as amount,
    amount_usd
    from
    ronin.core.ez_token_transfers
    where
    origin_to_address = '0x0cf8ff40a508bdbc39fbe1bb679dcba64e65c7df'
    )

    select
    user,
    count(distinct tx_hash) as transactions,
    sum(amount_usd) as volume_usd,
    avg(amount_usd) as average_amount_usd,
    median(amount_usd) as median_amount_usd
    from
    main
    where
    amount_usd > 0
    QueryRunArchived: QueryRun has been archived