Ali3NOverview (Boi The Bear Presale)
    Updated 2025-04-23
    with pricet as (
    select hour,
    price as usdprice
    from avalanche.price.ez_prices_hourly
    where symbol = 'WAVAX'
    and hour >= '2025-04-09')

    select count (distinct tx_hash) as Registrations,
    count (distinct origin_From_address) as Registrants,
    sum (decoded_log:amount/1e18) as Total_Volume,
    sum (decoded_log:amount*usdprice/1e18) as USD_Volume,
    avg (decoded_log:amount/1e18) as AVG_Volume,
    median (decoded_log:amount/1e18) as Median_Volume,
    from avalanche.core.ez_decoded_event_logs t1 join pricet t2 on date_trunc (hour,block_timestamp) = t2.hour
    where origin_to_address = '0xba8f5bf247febfe419be7034c6fe0d2e10a89c37'
    and origin_function_signature = '0xe97e6dca'
    and tx_succeeded
    and event_name = 'Applied'
    --and tx_hash = '0x89b7536f80c243ab36ce87992278f9e0eeb1c5fc63a8373870e0caa535faa128'
    Last run: about 1 month ago
    REGISTRATIONS
    REGISTRANTS
    TOTAL_VOLUME
    USD_VOLUME
    AVG_VOLUME
    MEDIAN_VOLUME
    1
    1173117327840513328.623.73401534510
    1
    44B
    16s