MrftiWETH withdraw
    Updated 2025-01-31
    -- forked from WETH supply @ https://flipsidecrypto.xyz/studio/queries/14490d8c-02fd-40a9-9450-aa4c6d5bc24e

    with tbl AS (
    SELECT
    block_timestamp,
    tx_hash,
    '0x' || SUBSTR(PARSE_JSON(TOPICS)[2]::string, -40) AS address,
    utils.udf_hex_to_int(DATA) / POW(10, 18) as amount
    from berachain.testnet.fact_event_logs
    where contract_address = lower ('0x30A3039675E5b5cbEA49d9a5eacbc11f9199B86D')
    and ORIGIN_FUNCTION_SIGNATURE = '0x69328dec'--withdraw
    and '0x' || SUBSTR(PARSE_JSON(TOPICS)[1]::string, -40) = lower ('0xE28AfD8c634946833e89ee3F122C06d7C537E8A8') --WETH
    and address not in ('0x0000000000000000000000000000000000000000')
    and data not in ('0x')
    )
    SELECT
    date_trunc(day, block_timestamp) as date,
    sum (amount) AS "Total withdraw",
    sum ("Total withdraw") over (order by date) as "cumulative withdraw",
    count (DISTINCT tx_hash) as "Total withdraw tx",
    sum ("Total withdraw tx") over (order by date) as "cumulative withdraw tx",
    count (DISTINCT address) as "Total unique withdrawers"
    from tbl
    group by 1




    Last run: 3 months agoAuto-refreshes every 12 hours
    DATE
    Total withdraw
    cumulative withdraw
    Total withdraw tx
    cumulative withdraw tx
    Total unique withdrawers
    1
    2024-11-14 00:00:00.0002.2790994013741.24698793623227934229
    2
    2024-11-24 00:00:00.0002.4119895943839.33042169418529681181
    3
    2024-11-06 00:00:00.0003.099994093715.32357668415426354153
    4
    2024-12-17 00:00:00.0004.5294637983895.17501871511532657106
    5
    2024-08-08 00:00:00.0001.6524170491363.9974075711481819146
    6
    2024-09-11 00:00:00.00078.8801307953544.8154239826810822261
    7
    2024-09-20 00:00:00.0002.9086798953574.84935781832413880318
    8
    2024-10-22 00:00:00.0002.954128153670.13997310715522808154
    9
    2025-01-12 00:00:00.0000.94068342774070.827389791733599869
    10
    2024-08-22 00:00:00.0001.8554405383417.6170795522856137220
    11
    2024-10-18 00:00:00.0003.0188195253657.85136859431121855310
    12
    2024-12-22 00:00:00.0001.106794493939.52293805212433479117
    13
    2024-11-02 00:00:00.0001.2163623704.5679029316525394159
    14
    2024-08-24 00:00:00.0001.8791274933423.135855021706698170
    15
    2024-10-31 00:00:00.0002.9539589163699.8974462617625072166
    16
    2024-09-15 00:00:00.0008.4833982133562.3415143949912369498
    17
    2025-01-10 00:00:00.0000.858263644069.013296571803585279
    18
    2024-10-15 00:00:00.0003.0898374163645.05360451522620969223
    19
    2024-08-16 00:00:00.00035.6622507673252.0758872961983654186
    20
    2024-11-11 00:00:00.0009.0517050283732.6339573111827293115
    ...
    187
    13KB
    349s