pouya_22Inflows and Outflows (redux) - OP to ETH
    Updated 2022-11-02
    with op_to_eth as (select
    'ETH' as asset,
    count(distinct tx_hash) as bridges,
    count(distinct origin_from_address) as users,
    sum(amount_usd) as usd_vol,
    avg(amount_usd) as avg_usd
    from ethereum.core.ez_eth_transfers
    where origin_to_address = '0x25ace71c97b33cc4729cf772ae268934f7ab5fa1'

    union all

    select
    symbol as asset,
    count(distinct tx_hash) as bridges,
    count(distinct origin_from_address) as users,
    sum(amount) as usd_vol,
    avg(amount) as avg_usd
    from ethereum.core.ez_token_transfers
    where origin_to_address = '0x25ace71c97b33cc4729cf772ae268934f7ab5fa1'
    group by 1)

    select * from op_to_eth where asset in ('ETH','USDC','USDT','LUSD')
    Run a query to Download Data