feyikemiAssignment 3
    Updated 2024-02-22
    -- Identify tokens deposited on uniswap, balancer, and sushiswap in January
    -- Where total amount deposited for each token is above $1B

    SELECT
    date_trunc(month, block_timestamp) month,
    platform,
    symbol_in,
    token_in,
    SUM(amount_in_usd) total_amount

    FROM ethereum.defi.ez_dex_swaps

    WHERE platform IN ('uniswap-v2', 'balancer', 'sushiswap')
    --AND month = 1 This includes January of other years
    AND block_timestamp::date BETWEEN '2024-01-01' AND '2024-01-30'
    AND amount_in_usd IS NOT NULL

    GROUP BY 1, 2, 3, 4

    HAVING total_amount > 1000000000

    ORDER BY 5 DESC

    LIMIT 100
    Last run: over 1 year ago
    MONTH
    PLATFORM
    SYMBOL_IN
    TOKEN_IN
    TOTAL_AMOUNT
    1
    2024-01-01 00:00:00.000uniswap-v2WETH0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc21739049141.02
    1
    108B
    2s