Yousefi_1994Top 10 day with most volume bridged in the past 6 months
    Updated 2022-06-19
    with l2_bridge_list as (
    select
    block_timestamp::date as days,
    sum(amount_usd) as volume_of_bridge
    from ethereum.core.ez_token_transfers
    where origin_to_address in ('0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2',
    '0x3d4cc8a61c7528fd86c55cfe061a78dcba48edd1',
    '0x3666f603cc164936c1b87e207f36beba4ac5f18a',
    '0x3e4a3a4796d16c0cd582c382691998f7c06420b6',
    '0xb98454270065a31d71bf635f6f7ee6a518dfb849')
    and origin_function_signature = '0xdeace8f5'
    and has_price = true
    and block_timestamp::date >= current_date - 180
    group by days
    order by days
    ),
    eth_bridge as (
    select
    block_timestamp::date as days,
    sum(amount_usd) as volume_of_bridge
    from ethereum.core.ez_eth_transfers
    where origin_to_address = '0xb8901acb165ed027e32754e0ffe830802919727f'
    and origin_function_signature = '0xdeace8f5'
    and block_timestamp::date >= current_date - 180
    group by days
    order by days
    ),
    final_result as (
    select * from l2_bridge_list
    union
    select * from eth_bridge
    )
    select
    days,
    sum(volume_of_bridge) as volume
    from final_result
    Run a query to Download Data