cryptodatadiveDaily Withdrawal
    Updated 2025-04-06
    WITH Withdraw_CTE AS (
    SELECT DISTINCT
    contract_name,
    contract_address,
    origin_from_address AS withdrawer,
    (decoded_log:assets::int) AS withdrawal_amount,
    tx_hash,
    DATE_TRUNC('day', block_timestamp) AS withdrawal_date
    FROM swell.core.ez_decoded_event_logs
    WHERE event_name = 'Withdraw'
    ),

    Withdrawal_CTE AS (
    SELECT DISTINCT
    contract_name,
    contract_address,
    origin_from_address AS withdrawer,
    (decoded_log:wad::int) AS withdrawal_amount,
    tx_hash,
    DATE_TRUNC('day', block_timestamp) AS withdrawal_date
    FROM swell.core.ez_decoded_event_logs
    WHERE event_name = 'Withdrawal'
    ),

    prices AS (
    SELECT
    LOWER(name) AS name,
    LOWER(symbol) AS symbol,
    DATE_TRUNC('day', hour) AS price_date,
    price,
    decimals,
    ROW_NUMBER() OVER (PARTITION BY LOWER(symbol), DATE_TRUNC('day', hour) ORDER BY hour DESC) AS rn
    FROM ethereum.price.ez_prices_hourly
    WHERE LOWER(symbol) IN ('swell', 'weth', 'usde', 'ena')
    ),

    Last run: 21 days ago
    WITHDRAWAL_DATE
    TOTAL_WITHDRAWAL_TRANSACTIONS
    TOTAL_WITHDRAWERS
    TOTAL_WITHDRAWALS_USD
    1
    2025-04-06 00:00:00.00017633106933.044154205
    2
    2025-04-05 00:00:00.00062238309.839226841
    3
    2025-04-04 00:00:00.0001362341773.273049072
    4
    2025-04-03 00:00:00.00018938218185.877974749
    5
    2025-04-02 00:00:00.00021033284929.617026855
    6
    2025-04-01 00:00:00.00014738131534.834304963
    7
    2025-03-31 00:00:00.0001543692700.572853364
    8
    2025-03-30 00:00:00.0001083166931.326171008
    9
    2025-03-29 00:00:00.00017733124719.14827937
    10
    2025-03-28 00:00:00.0002022550655.864308338
    11
    2025-03-27 00:00:00.00023853184034.855536334
    12
    2025-03-26 00:00:00.00042169217152.051354041
    13
    2025-03-25 00:00:00.000123502468951.02182661
    14
    2025-03-24 00:00:00.00013750357245.824774194
    15
    2025-03-23 00:00:00.000894246673.382902212
    16
    2025-03-22 00:00:00.00021045118362.35380049
    17
    2025-03-21 00:00:00.0001223395425.405636352
    18
    2025-03-20 00:00:00.0001835247644.476873683
    19
    2025-03-19 00:00:00.00011830171866.307752701
    20
    2025-03-18 00:00:00.000713683352.263738746
    ...
    120
    6KB
    2s