freemartianToken Distribution
    Updated 2024-09-16

    WITH
    temps AS (
    SELECT
    block_timestamp::date AS temp_day,
    symbol AS temp_symbol
    FROM ethereum.core.ez_token_transfers
    WHERE block_timestamp::date >= '2024-06-11'
    AND symbol IN ('WBTC','weETH','sDAI','USDe','rsETH')
    AND block_timestamp::date >= '2024-08-22'
    GROUP BY 1,2
    ORDER BY 1 ASC
    ),

    deposits AS (
    SELECT
    block_timestamp::date AS deposit_day,
    symbol AS deposit_token,
    count(tx_hash) AS deposit_tx,
    count(DISTINCT origin_from_address) AS depositors,
    SUM(amount_usd) AS deposit_amount_usd

    FROM ethereum.core.ez_token_transfers
    WHERE to_address = '0x8bc93498b861fd98277c3b51d240e7e56e48f23c'
    AND from_address <> '0x0000000000000000000000000000000000000000'
    AND block_timestamp::date >= '2024-08-22'
    AND amount_usd IS NOT NULL
    GROUP BY 1,2
    ),

    withdraws AS (
    SELECT
    block_timestamp::date AS withdraw_day,
    symbol AS withdraw_token,
    count(tx_hash) AS withdraw_tx,
    count(DISTINCT origin_from_address) AS withdrawers,
    Auto-refreshes every 1 hour
    QueryRunArchived: QueryRun has been archived