matejchiMonad liquid staking TVL
    Updated 2025-06-04
    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: 14 days ago
    DAY
    CUMULATIVE_BALANCE_APRIORI
    CUMULATIVE_BALANCE_SHMONAD
    CUMULATIVE_BALANCE_MAGMA
    1
    2025-02-19 00:00:00.00029246.29894292.174192805.914752
    2
    2025-02-20 00:00:00.000137671.3909382997.74410496376.776053
    3
    2025-02-21 00:00:00.000263663.4217485031.363549204239.717436
    4
    2025-02-22 00:00:00.000325618.3793417806.534884205631.589777
    5
    2025-02-23 00:00:00.000347076.17082211214.728366174401.867093
    6
    2025-02-24 00:00:00.000404673.37381814097.561938188194.854792
    7
    2025-02-25 00:00:00.000459535.631521984.366424191262.203073
    8
    2025-02-26 00:00:00.000545709.1079433355.117462209569.489519
    9
    2025-02-27 00:00:00.000575524.11321637794.074662226348.743754
    10
    2025-02-28 00:00:00.000580034.99118852598.919639242125.355923
    11
    2025-03-01 00:00:00.000603256.05881855776.530266254724.642249
    12
    2025-03-02 00:00:00.000614594.3068759847.238158237708.056419
    13
    2025-03-03 00:00:00.000633540.58796161488.500012236919.021975
    14
    2025-03-04 00:00:00.000637544.538926168549.421203235991.396835
    15
    2025-03-05 00:00:00.000649341.973269198168.430771269052.833901
    16
    2025-03-06 00:00:00.000658710.921693205714.460619288423.631875
    17
    2025-03-07 00:00:00.000670461.235748208231.844852287221.729107
    18
    2025-03-08 00:00:00.000669819.419423214808.311388290158.360034
    19
    2025-03-09 00:00:00.000666499.713415217567.648246293634.192966
    20
    2025-03-10 00:00:00.000695502.505121226128.638757321963.240658
    ...
    105
    7KB
    575s