Afonso_DiazBy Asset
    Updated 2025-03-26
    with

    pricet as (
    select
    hour::date as date,
    token_address,
    symbol,
    decimals,
    avg(price) as token_price_usd
    from
    avalanche.price.ez_prices_hourly
    group by 1, 2, 3, 4
    ),

    fee_transfers as (
    select
    tx_hash,
    block_timestamp,
    'AVAX' as symbol,
    amount,
    amount_usd
    from
    avalanche.core.ez_native_transfers
    where
    to_address = '0x39041f1b366fe33f9a5a79de5120f2aee2577ebc'
    and block_timestamp >= '2024-07-01'

    union all

    select
    tx_hash,
    block_timestamp,
    symbol,
    amount,
    amount_usd
    from
    QueryRunArchived: QueryRun has been archived