freeman_7Total bridged volume 30-DAYS
    Updated 2024-09-03
    with bridge_transactions as (
    select
    distinct tx_hash as hash
    From
    arbitrum.core.ez_decoded_event_logs
    Where
    event_name = 'LiFiTransferStarted'
    and block_timestamp::date >= current_timestamp - interval '30 days'
    And ORIGIN_TO_ADDRESS = lower('0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae')
    And decoded_log:bridgeData:integrator = 'jumper.exchange'
    ),

    token_bridge_volume as (
    select
    'jumper' as protocol,
    sum(token.amount_usd) as token_volume
    from (
    select
    distinct tx_hash,
    amount_usd
    from arbitrum.core.ez_token_transfers
    where block_timestamp::date >= current_timestamp - interval '30 days'
    ) token
    join bridge_transactions br ON br.hash = token.tx_hash
    ),

    native_bridge_volume as (
    select
    'jumper' as protocol,
    sum(token.amount_usd) as native_volume
    from (
    select
    distinct tx_hash as hash,
    amount_usd
    from arbitrum.core.ez_native_transfers
    where block_timestamp::date >= current_timestamp - interval '30 days'
    QueryRunArchived: QueryRun has been archived