Eman-RazStaking Over Time
    Updated 2025-03-02
    with table1 as (select date_trunc('day',block_timestamp) as "Date", count(distinct tx_hash) as "Staking Txns Count",
    count(distinct origin_from_address) as "Staker Count", sum(value) as "Staking Volume ($MON)", avg(value) as "Avg Staking Volume ($MON)",
    median(value) as "Median Staking Volume ($MON)"
    from monad.testnet.fact_traces
    where from_address=origin_from_address
    and to_address='0x2c9c959516e9aaedb2c748224a41249202ca8be7'
    and origin_to_address=to_address and origin_function_signature='0xd5575982'
    and type='CALL' and trace_address='ORIGIN' and trace_succeeded='TRUE'
    group by 1),

    table2 as (select date_trunc('day',block_timestamp) as "Date", -count(distinct tx_hash) as "Unstaking Txns Count",
    count(distinct origin_from_address) as "Unstaker Count", -sum(value) as "Unstaking Volume ($MON)", avg(value) as "Avg Unstaking Volume ($MON)",
    median(value) as "Median Unstaking Volume ($MON)"
    from monad.testnet.fact_traces
    where to_address=origin_from_address
    and from_address='0x2c9c959516e9aaedb2c748224a41249202ca8be7'
    and origin_to_address=from_address and origin_function_signature='0x6fed1ea7'
    and type='CALL' and trace_succeeded='TRUE'
    group by 1
    order by 1)

    select table1."Date" as "Date", "Staking Txns Count", "Unstaking Txns Count", "Staker Count", "Unstaker Count",
    "Staking Volume ($MON)", "Unstaking Volume ($MON)", "Staking Volume ($MON)"+"Unstaking Volume ($MON)" as "Net",
    sum("Net") over (order by table1."Date") as "Net Staking Volume ($MON)", "Avg Staking Volume ($MON)", "Avg Unstaking Volume ($MON)",
    "Median Staking Volume ($MON)", "Median Unstaking Volume ($MON)",
    round(("Staking Txns Count"/("Staking Txns Count"-"Unstaking Txns Count")),3) as "Staking Txn Ratio"
    FROM table1 left join table2 on table1."Date"=table2."Date"
    where table1."Date">='2025-02-18'
    order by 1
    Last run: about 1 month ago
    Date
    Staking Txns Count
    Unstaking Txns Count
    Staker Count
    Unstaker Count
    Staking Volume ($MON)
    Unstaking Volume ($MON)
    Net
    Net Staking Volume ($MON)
    Avg Staking Volume ($MON)
    Avg Unstaking Volume ($MON)
    Median Staking Volume ($MON)
    Median Unstaking Volume ($MON)
    Staking Txn Ratio
    1
    2025-02-18 00:00:00.00011-6655.766413129-52.61-46.843586871-46.8435868710.52421937538.7683333330.510.647
    2
    2025-02-19 00:00:00.0002235-2901815170971.010050751-165.145299639805.864751112759.0211642410.43445639850.56946655050.10.10.885
    3
    2025-02-20 00:00:00.00018996-4532146873302138310.44769717-42733.42640154295577.02129562896336.0424598697.2810300969.4292644310.10.050.807
    4
    2025-02-21 00:00:00.00023275-6013163084078134476.186742115-26586.273366792107889.913375323204225.9558351925.777709424.4214657190.050.050.795
    5
    2025-02-22 00:00:00.00030047-909316026427671077.640398517-69625.0284461791452.611952338205678.567787532.3654699287.6569920210.050.10.768
    6
    2025-02-23 00:00:00.00057041-22168242786192173423.557102104-204578.95005858-31155.392956476174523.1748310533.040331649.2285704650.020.04110.72
    7
    2025-02-24 00:00:00.00081271-40056273788072879143.110862981-865339.02239861513804.088464366188327.2632954210.81742701421.6032310370.019450.03190.67
    8
    2025-02-25 00:00:00.000166405-705405672416771823910.27723989-820836.860353073.41688989191400.680185314.95123510311.6364737790.010.03770.702
    9
    2025-02-26 00:00:00.000332867-15331813795233018695973.592934182-677004.35379373818969.239140444210369.9193257542.0908458724.4156873540.010.01880.685
    10
    2025-02-27 00:00:00.000284865-13765511754325953182852.792285148-166058.60044838816794.19183676227164.1111625140.64189279931.2063390390.005260.010.674
    11
    2025-02-28 00:00:00.000299603-17663512397052835461469.77431818-445682.23996481515787.534353364242951.6455158791.5402708732.5231819290.0120.065185498010.629
    12
    2025-03-01 00:00:00.000200312-875619006327379210640.628355522-198035.35870346812605.269652053255556.9151679321.0515627042.2616845250.00410.01670.696
    13
    2025-03-02 00:00:00.000108737-702874061920163204047.867581377-219395.93879654-15348.071215163240208.8439527691.8765265513.1214298350.010.02530.607
    13
    2KB
    29s