esi69sushi j 1
    Updated 2023-03-18
    select date_trunc(month,block_timestamp) as date,
    'Arbitrum' as blockchain,
    symbol_out as stablecoin,
    count(distinct tx_hash) as swaps,
    count(distinct origin_from_address) as swappers,
    sum(amount_out_usd) as volume_out
    from arbitrum.sushi.ez_swaps
    where symbol_out in ('MIM','FRAX','AMUSDC','BUSD','DAI','PUSD','TUSD','USDC','USDT','UST','alUSD','cDAI','sUSD','sUSD','USDD','USDN')
    group by 1,2,3
    union all
    select date_trunc(month,block_timestamp) as date,
    'Avalanche' as blockchain,
    symbol_out as stablecoin,
    count(distinct tx_hash) as swaps,
    count(distinct origin_from_address) as swappers,
    sum(amount_out_usd) as volume_out
    from avalanche.sushi.ez_swaps
    where symbol_out in ('MIM','FRAX','AMUSDC','BUSD','DAI','PUSD','TUSD','USDC','USDT','UST','alUSD','cDAI','sUSD','sUSD','USDD','USDN')
    group by 1,2,3
    union all
    select date_trunc(month,block_timestamp) as date,
    'BSC' as blockchain,
    symbol_out as stablecoin,
    count(distinct tx_hash) as swaps,
    count(distinct origin_from_address) as swappers,
    sum(amount_out_usd) as volume_out
    from bsc.sushi.ez_swaps
    where symbol_out in ('MIM','FRAX','AMUSDC','BUSD','DAI','PUSD','TUSD','USDC','USDT','UST','alUSD','cDAI','sUSD','sUSD','USDD','USDN')
    group by 1,2,3
    union all
    select date_trunc(month,block_timestamp) as date,
    'Ethereum' as blockchain,
    symbol_out as stablecoin,
    count(distinct tx_hash) as swaps,
    count(distinct origin_from_address) as swappers,
    sum(amount_out_usd) as volume_out
    Run a query to Download Data