Mrftiinternal-crimson copy copy
    Updated 2025-05-29
    -- forked from internal-crimson copy @ https://flipsidecrypto.xyz/studio/queries/822a3133-bd3c-4faa-9e03-703ab2b8c765

    -- forked from internal-crimson @ https://flipsidecrypto.xyz/studio/queries/dadc0674-864e-4c76-8adc-946a9bde97b0

    WITH database AS (
    SELECT
    a.BLOCK_TIMESTAMP,
    a.TX_HASH,
    a.ORIGIN_FROM_ADDRESS as "Unstaker",
    CAST(ethereum.public.udf_hex_to_int(data) AS decimal) / 1e18 AS "$sMON Burned",
    b.tx_fee as "Fee ($MON)"
    FROM
    monad.testnet.fact_event_logs a
    join
    monad.testnet.fact_transactions b on a.tx_hash = b.tx_hash

    where a.CONTRACT_ADDRESS = '0x07aabd925866e8353407e67c1d157836f7ad923e'
    and a.ORIGIN_TO_ADDRESS = '0x07aabd925866e8353407e67c1d157836f7ad923e'
    and a.ORIGIN_FUNCTION_SIGNATURE = '0x30af6b2e'
    and a.TX_SUCCEEDED = 'TRUE'
    AND a.BLOCK_TIMESTAMP > '2025-02-18 00:00:00.000'
    )

    select
    "Unstaker",
    count (distinct TX_HASH) as "Unstake tx",
    sum ("$sMON Burned") as "Total $sMON Burned"

    from database
    group by 1
    order by 2 desc
    limit 100



    QueryRunArchived: QueryRun has been archived