Updated 4 days ago
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    symbol_in,
    symbol_out,
    token_in,
    token_out,
    greatest(symbol_in, symbol_out) || ' - ' || least(symbol_in, symbol_out) as token_pair,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    'Ethereum' as chain
    from
    ethereum.defi.ez_dex_swaps
    where
    amount_usd < 1e7
    and platform ilike 'dodo%'

    union all

    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    symbol_in,
    symbol_out,
    token_in,
    token_out,
    greatest(symbol_in, symbol_out) || ' - ' || least(symbol_in, symbol_out) as token_pair,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    'Polygon' as chain
    from
    polygon.defi.ez_dex_swaps
    where
    Last run: 4 days ago
    SWAPS
    SWAPPERS
    VOLUME_USD
    CHAINS
    AVERAGE_AMOUNT_USD
    DAILY_AVERAGE_SWAPS
    DAILY_AVERAGE_SWAPPERS
    1
    269147947800741065501512.51414708.6218773477353.767761306.030055
    1
    74B
    22s