hessShare of Last 30 D
    Updated 2023-11-16
    with woofi as ( select block_timestamp,
    'Avalanche' as chain,
    tx_hash,
    origin_from_address,
    pool_name,
    symbol_in,
    symbol_out,
    case when amount_in_usd is null then amount_out_usd
    when amount_out_usd is null then amount_in_usd
    when amount_in_usd>=amount_out_usd then amount_in_usd
    when amount_out_usd>amount_in_usd then amount_out_usd end as amount_usd
    from avalanche.defi.ez_dex_swaps
    where platform = 'woofi'
    UNION
    select block_timestamp,
    'Arbitrum' as chain,
    tx_hash,
    origin_from_address,
    pool_name,
    symbol_in,
    symbol_out,
    case when amount_in_usd is null then amount_out_usd
    when amount_out_usd is null then amount_in_usd
    when amount_in_usd>=amount_out_usd then amount_in_usd
    when amount_out_usd>amount_in_usd then amount_out_usd end as amount_usd
    from arbitrum.defi.ez_dex_swaps
    where platform = 'woofi'
    UNION
    select block_timestamp,
    'BSC' as chain,
    tx_hash,
    origin_from_address,
    pool_name,
    symbol_in,
    symbol_out,
    case when amount_in_usd is null then amount_out_usd
    Run a query to Download Data