0xHaM-dOver Time[Mint/Redeem]
    Updated 2025-03-27
    with eventTb as (
    select
    EVENT_NAME,
    BLOCK_TIMESTAMP,
    TX_HASH,
    DECODED_LOG,
    DECODED_LOG:beneficiary::string as user_add,
    DECODED_LOG:collateral_amount::float/1e6 as collateral_amount_usdc,
    DECODED_LOG:avusd_amount::float/1e18 as avusd_amount,
    from avalanche.core.ez_decoded_event_logs
    where CONTRACT_ADDRESS = '0x1499cb3197427b78dc0e2d356a1e0e4149e0ed51'
    and EVENT_NAME in ('Mint', 'Redeem')
    and TX_SUCCEEDED = TRUE
    )
    select
    EVENT_NAME,
    trunc(BLOCK_TIMESTAMP, 'week') as date,
    count(*) as n_transactions,
    count(distinct user_add) as n_users,
    sum(collateral_amount_usdc) as total_collat_amount_usdc,
    sum(avusd_amount) as total_avusd_amount,
    sum(total_avusd_amount) over (partition by EVENT_NAME order by date) as cum_avusd_amount
    from eventTb
    group by 1,2
    order by 2 desc


    Last run: about 1 month ago
    EVENT_NAME
    DATE
    N_TRANSACTIONS
    N_USERS
    TOTAL_COLLAT_AMOUNT_USDC
    TOTAL_AVUSD_AMOUNT
    CUM_AVUSD_AMOUNT
    1
    Mint2025-03-24 00:00:00.0003326294.57952426268.28494514435018.989583
    2
    Mint2025-03-17 00:00:00.000108284169.011006283884.84199514408750.704638
    3
    Redeem2025-03-10 00:00:00.00065202000.550316203015.628458608704.83675
    4
    Mint2025-03-10 00:00:00.0003228744197.20013743453.00292914124865.862643
    5
    Mint2025-03-03 00:00:00.000191574368.14504374293.77689813381412.859714
    6
    Redeem2025-02-24 00:00:00.000552013.6513962023.770248405689.208292
    7
    Mint2025-02-24 00:00:00.0001682035086.2223732033051.13615113307119.082816
    8
    Redeem2025-02-17 00:00:00.00044374.30658376.187517403665.438044
    9
    Mint2025-02-17 00:00:00.0004940462155.303341461714.2866411274067.946665
    10
    Redeem2025-02-10 00:00:00.00010103436.2858973453.553665403289.250527
    11
    Mint2025-02-10 00:00:00.00077502836330.1185212836330.11852110812353.660025
    12
    Redeem2025-02-03 00:00:00.000141210602.40942610655.687864399835.696862
    13
    Mint2025-02-03 00:00:00.0006044559663.163579559663.1635797976023.541504
    14
    Redeem2025-01-27 00:00:00.0008818482.81409218575.692555389180.008998
    15
    Mint2025-01-27 00:00:00.0008566151927.747052151927.7470527416360.377925
    16
    Redeem2025-01-20 00:00:00.00054159693.524975160496.005370604.316443
    17
    Mint2025-01-20 00:00:00.0008666166168.606399166168.6063997264432.630873
    18
    Mint2025-01-13 00:00:00.0003219265223.245642265223.2456427098264.024474
    19
    Redeem2025-01-06 00:00:00.00032208950210000210108.311443
    20
    Mint2025-01-06 00:00:00.00032124187698.4579124187698.4579126833040.778832
    28
    2KB
    2s