Afonso_DiazOvertime
    Updated 2025-03-25
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    symbol_in,
    symbol_out,
    pool_name,
    'BSC' as chain
    from
    bsc.defi.ez_dex_swaps
    where
    tx_hash in (select distinct tx_hash from bsc.core.ez_native_transfers where to_address = '0x90cbe4bdd538d6e9b379bff5fe72c3d67a521de5')

    union all

    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    symbol_in,
    symbol_out,
    pool_name,
    'Base' as chain
    from
    base.defi.ez_dex_swaps
    where
    tx_hash in (select distinct tx_hash from base.core.ez_native_transfers where to_address = '0x90cbe4bdd538d6e9b379bff5fe72c3d67a521de5')

    union all

    select
    Last run: 17 days ago
    DATE
    CHAIN
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    MEDIAN_AMOUNT_USD
    1
    2024-12-23 00:00:00.000Arbitrum66960312876647.7414339.25138084634.63
    2
    2024-12-23 00:00:00.000BSC523614477.58253.99263157914.04
    3
    2024-12-23 00:00:00.000Base1022646142797.36100.20867368434.72
    4
    2024-12-23 00:00:00.000Ethereum10846358554.043117.8612173911014.95
    5
    2024-12-23 00:00:00.000Optimism705912863.77102.9101654.13
    6
    2024-12-23 00:00:00.000Polygon4473319.550.2954545451.695
    7
    2024-12-30 00:00:00.000Arbitrum3523145703860.512647.14079822633.28
    8
    2024-12-30 00:00:00.000BSC24185004.15192.46730769236.22
    9
    2024-12-30 00:00:00.000Base20881039336440.46137.49099305345.34
    10
    2024-12-30 00:00:00.000Ethereum2222062626713.0711130.1401271193700.305
    11
    2024-12-30 00:00:00.000Optimism1219611466.6256.76544554513.745
    12
    2024-12-30 00:00:00.000Polygon16114332.94139.77225806513.08
    13
    2025-01-06 00:00:00.000Arbitrum22786168451.26588.9904195819.97
    14
    2025-01-06 00:00:00.000BSC372055825.181163.02458333340.885
    15
    2025-01-06 00:00:00.000Base23151112334335.22115.56696163251.04
    16
    2025-01-06 00:00:00.000Ethereum22834269279.21170.779130435971.52
    17
    2025-01-06 00:00:00.000Optimism856314130.0175.1596276634.52
    18
    2025-01-06 00:00:00.000Polygon211238.751.6847826090.45
    19
    2025-01-13 00:00:00.000Arbitrum1901019647454.1938901.02495967726.96
    20
    2025-01-13 00:00:00.000BSC159139798858.944389.3348351654839.45
    84
    6KB
    74s