matejchiMonad liquid staking TVL
    Updated 5 hours ago
    with filtered_apriori as (
    select
    block_timestamp,
    contract_address,
    origin_function_signature,
    tx_hash,
    data,
    topic_2,
    row_number() over(partition by tx_hash order by event_index asc) as row_no
    from monad.testnet.fact_event_logs
    where contract_address = lower('0xb2f82D0f38dc453D596Ad40A37799446Cc89274A')
    and block_timestamp >= '2025-02-19'
    ),

    daily_balance_apriori as (
    select
    date_trunc('day', block_timestamp) as day,
    sum(case
    when origin_function_signature = '0x6e553f65' then livequery.utils.udf_hex_to_int(data)::int /1e18 -- deposit
    when origin_function_signature = '0x492e47d2' then - livequery.utils.udf_hex_to_int(data)::int /1e18 -- redeem 0x7d41c86e
    else 0 end) as daily_balance_apriori
    from filtered_apriori
    where row_no = 1
    and day < date_trunc('day', current_date)
    group by day
    ),

    filtered_shmonad as (
    select
    block_timestamp,
    contract_address,
    origin_function_signature,
    tx_hash,
    data,
    topic_2,
    row_number() over(partition by tx_hash order by event_index asc) as row_no
    Last run: about 5 hours ago
    DAY
    CUMULATIVE_BALANCE_APRIORI
    CUMULATIVE_BALANCE_SHMONAD
    CUMULATIVE_BALANCE_MAGMA
    1
    2025-02-19 00:00:00.00029246.29894292.174192805.414752
    2
    2025-02-20 00:00:00.000137671.3909382997.74410496376.276053
    3
    2025-02-21 00:00:00.000263663.4217485031.363549204239.217436
    4
    2025-02-22 00:00:00.000325606.8080417805.464887205626.938116
    5
    2025-02-23 00:00:00.000347068.38832211213.647871174393.951292
    6
    2025-02-24 00:00:00.000404665.49121814096.481443188186.905591
    7
    2025-02-25 00:00:00.000459527.748921983.285929191254.253872
    8
    2025-02-26 00:00:00.000545701.2253433354.036967209561.540318
    9
    2025-02-27 00:00:00.000575515.85347537792.990441226338.376773
    10
    2025-02-28 00:00:00.000580026.56204752659.023242242114.501393
    11
    2025-03-01 00:00:00.000603247.64505255836.633869254714.73596
    12
    2025-03-02 00:00:00.000614585.85910459906.376163237699.130933
    13
    2025-03-03 00:00:00.000633532.01312561548.360415236909.794114
    14
    2025-03-04 00:00:00.000637535.96409168609.281606235982.168974
    15
    2025-03-05 00:00:00.000649333.398433198228.291174269043.60604
    16
    2025-03-06 00:00:00.000658702.346857205774.321022288414.404014
    17
    2025-03-07 00:00:00.000670452.660912208291.705255287212.501246
    18
    2025-03-08 00:00:00.000669810.844587214868.171791290149.132173
    19
    2025-03-09 00:00:00.000666491.138579217627.508649293624.965105
    20
    2025-03-10 00:00:00.000695493.930285226188.49916321954.012797
    54
    4KB
    188s