Afonso_DiazTop users
    Updated 2025-06-09
    with

    pricet as (
    select
    hour::date as dt,
    avg(price) as token_price_usd
    from
    avalanche.price.ez_prices_hourly
    where
    symbol = 'AVAX'
    group by 1
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    decoded_log:assets / 1e18 as amount_avax,
    decoded_log:shares / 1e18 as amount_ggavax,
    'Mint' as event_name
    from avalanche.core.ez_decoded_event_logs
    where
    origin_to_address = '0xa25eaf2906fa1a3a13edac9b9657108af7b703e3'
    and event_name = 'Deposit'
    and tx_succeeded = True
    and amount_ggavax > 0
    and block_timestamp >= '2024-01-01'
    and block_timestamp < '2026-01-01'

    -- union all

    -- select
    -- tx_hash,
    -- block_timestamp,
    -- origin_from_address as user,
    QueryRunArchived: QueryRun has been archived