omer93MEMES 2
    Updated 2023-04-24
    WITH
    pepe AS (
    SELECT
    COUNT(DISTINCT TX_TO) AS unique_users,
    COUNT(*) AS total_swaps,
    DATE_TRUNC('day', block_timestamp) AS date
    FROM ethereum.core.ez_dex_swaps
    WHERE TOKEN_OUT = LOWER('0x6982508145454ce325ddbe47a25d4ec3d2311933') --PEPE
    GROUP BY 3
    ORDER BY 2 DESC
    ),

    bobo AS (
    SELECT
    COUNT(DISTINCT TX_TO) AS unique_users,
    COUNT(*) AS total_swaps,
    DATE_TRUNC('day', block_timestamp) AS date
    FROM ethereum.core.ez_dex_swaps
    WHERE TOKEN_OUT = LOWER('0x5888641e3e6cBeA6D84Ba81EDb217bD691d3bE38') -- bobo
    GROUP BY 3
    ORDER BY 2 DESC
    ),

    mememe AS (
    SELECT
    COUNT(DISTINCT TX_TO) AS unique_users,
    COUNT(*) AS total_swaps,
    DATE_TRUNC('day', block_timestamp) AS date
    FROM ethereum.core.ez_dex_swaps
    WHERE TOKEN_OUT = LOWER('0x1A963Df363D01EEBB2816b366d61C917F20e1EbE') -- MEMEME
    GROUP BY 3
    ORDER BY 2 DESC
    ),

    all_tokens AS (
    SELECT
    Run a query to Download Data