feyikemiAssignment 2
    Updated 2024-03-10
    -- Using the ez_dex_swaps and ethereum.core.dim_labels table in the Ethereum database
    -- Find the names of the top 10 contracts in uniswap by USD amount received

    SELECT
    address_name,
    platform,
    symbol_in,
    amount_in_usd

    FROM ethereum.defi.ez_dex_swaps s
    JOIN ethereum.core.dim_labels l
    ON s.contract_address = l.address

    WHERE platform LIKE 'uniswap%'
    AND amount_in_usd IS NOT NULL

    ORDER BY 4 DESC

    LIMIT 10
    QueryRunArchived: QueryRun has been archived