freemartianUniswap LP Transactions
    Updated 2025-03-05
    with
    current_price AS (
    SELECT
    hour, symbol, price, rank() over(ORDER BY hour DESC) AS rank

    FROM base.price.ez_prices_hourly
    WHERE token_address = '0x20ef84969f6d81ff74ae4591c331858b20ad82cd'
    qualify rank = 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 = '0x20ef84969f6d81ff74ae4591c331858b20ad82cd'
    AND tx_hash = '0xcf585407c610647a46e7d8900b91db33df2d6276697f5bbf12e5be5d97796605'
    ORDER BY event_index ASC
    ),

    lps AS(
    SELECT
    block_timestamp,
    tx_hash,
    from_address AS user,
    to_address AS lp_address,
    amount AS AISTR_amount,
    'Add 🟢' AS funciton
    FROM base.core.ez_token_transfers
    WHERE
    contract_address = lower('0x20ef84969f6d81ff74ae4591c331858b20ad82cd')
    AND to_address = lower('0x197ecb5c176ad4f6e77894913a94c5145416f148')
    UNION ALL
    SELECT
    block_timestamp,
    tx_hash,
    to_address AS user,
    from_address AS lp_address,
    Auto-refreshes every 1 hour
    QueryRunArchived: QueryRun has been archived