Ali3NUsers Leaderboard (Stablejack v2 savUSD Market)
    Updated 1 day ago
    with mintt as (
    select origin_from_address,
    count (distinct tx_hash) as Transactions,
    count (distinct origin_from_address) as Users,
    sum (decoded_log:value/1e18) as savusd_Volume,
    avg (decoded_log:value/1e18) as avg_savusd_Volume,
    savusd_Volume / Users as volume_per_user
    from avalanche.core.ez_decoded_event_logs
    where origin_to_address = '0xdb8b3bd77b7a28c2835c9e8e3c15f7adbc2cd267'
    and tx_succeeded
    and event_name = 'Transfer'
    and origin_function_signature = '0x0587bcf3'
    and contract_address = '0x06d47f3fb376649c3a9dafe069b3d6e35572219e'
    and decoded_log:from = origin_from_address
    --and tx_hash = '0x30c85d2c927c2cd07e12c230f34b39b109df434c69a9494b6a7d0bd72522d3a1' --MINT
    group by 1),

    redeemt as (
    select origin_from_address,
    count (distinct tx_hash) as Transactions,
    count (distinct origin_from_address) as Users,
    sum (decoded_log:value/1e18) as savusd_Volume,
    avg (decoded_log:value/1e18) as avg_savusd_Volume,
    savusd_Volume / Users as volume_per_user
    from avalanche.core.ez_decoded_event_logs
    where origin_to_address = '0xdb8b3bd77b7a28c2835c9e8e3c15f7adbc2cd267'
    and tx_succeeded
    and event_name = 'Transfer'
    and origin_function_signature = '0xfa7f0c4e'
    and contract_address = '0x06d47f3fb376649c3a9dafe069b3d6e35572219e'
    and decoded_log:to = origin_from_address
    --and tx_hash = '0x30c85d2c927c2cd07e12c230f34b39b109df434c69a9494b6a7d0bd72522d3a1' --MINT
    group by 1)

    select coalesce (t1.origin_from_address,t2.origin_from_address) as User,
    sum (coalesce (t1.savusd_volume,0) - coalesce (t2.savusd_volume,0)) as Net_Balance
    Last run: 1 day agoAuto-refreshes every 24 hours
    USER
    NET_BALANCE
    1
    0x0d6a0385a012261d6dcc1742786c8ae0910861e1192600
    2
    0xadd78875b8c993bd138ad2578381887e475361bc39405.767134454
    3
    0xcad6d062ecabe827f87ee6184d22d744867857423934.530347684
    4
    0xb795efd1820413f533cf7f9beb0fec78190cae3b3401.811306236
    5
    0xbdbfbb49ec9c1d18e2976062616d60e8d3126d7d3000.422545388
    6
    0xd1c5c8725446022951dadbd40ac847ec78cf5b132927.830134784
    7
    0x126a0b3c1953ce93cfc2cee9ea830cb4698e74a22653.471772879
    8
    0x038673370955eb929d94f9d0c7992bb48137e9982547.682490562
    9
    0x2e45e5d9ecd99d905817134ec9ba84d9e13d59fc1950
    10
    0xe4775d0e2fca8828c04ece18bf18dc445d411b661887.48140273
    11
    0x5d99747f517fd14ceb9f9bf73cf2ece51b5e1e571002.626648143
    12
    0x456726c627fb09e0c4c2955fd498225c4b7ece01982
    13
    0x807b755d5374769dd5282a05ebaca84ca70af607514.268752404
    14
    0x0fec96050a5c827bfe76ed3ddf05e6f9c08ba939486.417435946
    15
    0xde4f4015507cb53147edd0e2dfd3dcf991ae7f0c486.122896367
    16
    0x119a0ba4a788180c076a31e926c8cd6d62491fdc462.628398862
    17
    0xcbef1d14811ba966abc30104984396b370084d47424.09
    18
    0x3a9e0da873dbe52d7869e2fa76aeed965ffc01dc371.746
    19
    0x9245438524aa65b148bee7dc3625e1082b497a48312.596230075
    20
    0xa27d5bf4e6b35ba82514f8a39b42ac550685cbea200
    47
    3KB
    114s