dethectiveWintermute - ETH token
    Updated 2025-02-04
    WITH token_in as (
    SELECT
    block_timestamp,
    token_in as token,
    symbol_in as symbol
    from
    ethereum.defi.ez_dex_swaps
    where
    origin_to_address = lower('0x51C72848c68a965f66FA7a88855F9f7784502a7F')
    or origin_from_address = lower('0x51C72848c68a965f66FA7a88855F9f7784502a7F')
    ),
    token_out as (
    SELECT
    block_timestamp,
    token_out as token,
    symbol_out as symbol
    from
    ethereum.defi.ez_dex_swaps
    where
    origin_to_address = lower('0x51C72848c68a965f66FA7a88855F9f7784502a7F')
    or origin_from_address = lower('0x51C72848c68a965f66FA7a88855F9f7784502a7F')
    ),
    all_transactions as (
    SELECT
    *
    FROM
    token_in
    UNION
    ALL
    SELECT
    *
    FROM
    token_out
    )
    SELECT
    count(distinct token) as token_traded
    QueryRunArchived: QueryRun has been archived