0-MIDtop 20 Route By $Volume (Base)
    Updated 2025-01-09

    with tab1 as (
    select case
    when DECODED_LOG:bridgeData:destinationChainId=10 then 'Optimism'
    when DECODED_LOG:bridgeData:destinationChainId=324 then 'zkSync'
    when DECODED_LOG:bridgeData:destinationChainId=42161 then 'Arbitrum'
    when DECODED_LOG:bridgeData:destinationChainId=137 then 'Polygon'
    when DECODED_LOG:bridgeData:destinationChainId=56 then 'BNB'
    when DECODED_LOG:bridgeData:destinationChainId=59144 then 'Linea'
    when DECODED_LOG:bridgeData:destinationChainId=1 then 'Ethereum'
    when DECODED_LOG:bridgeData:destinationChainId=43114 then 'Avalanche'
    when DECODED_LOG:bridgeData:destinationChainId=250 then 'Fantom'
    when DECODED_LOG:bridgeData:destinationChainId=1101 then 'Polygon zkEVM'
    when DECODED_LOG:bridgeData:destinationChainId=1088 then 'Metis'
    when DECODED_LOG:bridgeData:destinationChainId=1151111081099710 then 'Solana'
    when DECODED_LOG:bridgeData:destinationChainId=534352 then 'Scroll'
    when DECODED_LOG:bridgeData:destinationChainId=34443 then 'Mode'
    when DECODED_LOG:bridgeData:destinationChainId=1329 then 'Sei'
    when DECODED_LOG:bridgeData:destinationChainId=81457 then 'Blast'
    when DECODED_LOG:bridgeData:destinationChainId=100 then 'Gnosis'
    when DECODED_LOG:bridgeData:destinationChainId=34443 then 'Mode'
    end as dst_chain
    ,TX_HASH
    from base.core.ez_decoded_event_logs
    where EVENT_NAME='LiFiTransferStarted'
    and DECODED_LOG:bridgeData:integrator='jumper.exchange'
    and ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    ),
    tab2 as (
    select SYMBOL
    ,AMOUNT_USD
    ,TX_HASH
    from base.core.ez_token_transfers
    where ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and ORIGIN_FROM_ADDRESS=FROM_ADDRESS
    and TX_HASH in (select TX_HASH from tab1)
    QueryRunArchived: QueryRun has been archived