freemartianTotal DR3AM Users ACTIVITY
    Updated 2025-03-05
    WITH
    prices AS (
    SELECT
    hour::date AS price_day, AVG(price) AS price

    FROM base.price.ez_prices_hourly
    WHERE token_address = '0x0521aaa7c96e25afee79fdd4f1bb48f008ae4eac'
    GROUP BY 1
    ),
    first_dist AS(
    SELECT block_timestamp, tx_hash, to_address AS user, amount AS first_amount_received,
    FROM base.core.ez_token_transfers
    WHERE contract_address = '0x0521aaa7c96e25afee79fdd4f1bb48f008ae4eac'
    AND tx_hash = '0xe930bba69e4c165a44197088b25f890b37de23c182f992c0834fa8843407c9f0'
    ORDER BY event_index ASC
    ),

    token_in_out AS(
    SELECT
    to_address AS user,
    SUM(amount) AS amount,
    FROM base.core.ez_token_transfers
    WHERE contract_address = '0x0521aaa7c96e25afee79fdd4f1bb48f008ae4eac'
    GROUP BY 1
    UNION ALL
    SELECT
    from_address AS user,
    SUM(-amount) AS amount,
    FROM base.core.ez_token_transfers
    WHERE contract_address = '0x0521aaa7c96e25afee79fdd4f1bb48f008ae4eac'
    GROUP BY 1
    ),
    current_user_amount AS(
    SELECT
    user,
    sum(amount) AS current_balance
    Last run: 21 days agoAuto-refreshes every 1 hour
    STAKE_AMOUNT
    SWAP_FROM_FDREAM
    SWAP_FROM_FDREAM_USD
    SWAP_TO_FDREAM
    SWAP_TO_FDREAM_USD
    1
    131154824.36602217687710344.1626102335988.15862424607333318.1184121195070.14605
    1
    87B
    1025s