adriaparcerisasstable jack protocol 2
    Updated 2025-03-17
    with prices as (
    select trunc(hour,'day') as day,
    symbol,
    token_address,
    decimals,
    avg(price) as price_usd
    from avalanche.price.ez_prices_hourly
    group by 1,2,3,4
    ),

    mints as (
    SELECT
    block_timestamp,
    tx_hash,
    decoded_log:_tokenIn as token_address,
    decoded_log:_amountIn as amount,
    origin_from_address as wallet
    from avalanche.core.ez_decoded_event_logs
    where origin_to_address = '0x8a63943ac3f394ed73c7b06fecf3a81bc11b840e'
    and event_name = 'YakSwap'
    and origin_function_signature = '0xb4d50fcf'
    ),

    redeems as (
    SELECT
    block_timestamp,
    tx_hash,
    decoded_log:_tokenIn as token_address,
    decoded_log:_amountIn as amount,
    origin_from_address as wallet
    from avalanche.core.ez_decoded_event_logs
    where origin_to_address = '0x8a63943ac3f394ed73c7b06fecf3a81bc11b840e'
    and event_name = 'YakSwap'
    and origin_function_signature = '0x4a99dcf1'
    ),

    Last run: 29 days ago
    DAYS
    MINTS
    REDEEMS
    TOKEN_MINTED_USD
    TOKEN_REDEEMED_USD
    ACTIVE_MINTERS
    ACTIVE_REDEEMERS
    TOTAL_TOKEN_MINTED_USD
    TOTAL_TOKEN_REDEEMED_USD
    TOKEN_AVAILABLE_USD
    1
    2025-03-10 00:00:00.000222323153.44043062826140.2884180911314539618.694699493249410.199462024290208.495237469
    2
    2025-03-03 00:00:00.000672228277.389842984129376.2296417223615516465.254268865223269.911043934293195.343224931
    3
    2025-02-24 00:00:00.0005121177891.93207307555437.9362075392916488187.86442588193893.681402211394294.183023669
    4
    2025-02-17 00:00:00.000747118290.4764225748250.500546523526310295.93235280638455.745194672271840.187158133
    5
    2025-02-10 00:00:00.000473444250.66846943730123.1429262743510192005.45593023130205.244648149161800.211282082
    6
    2025-02-03 00:00:00.00011122147754.78746079482.101721876613147754.78746079482.101721876147672.685738919
    6
    730B
    26s