Madidestination chain
    Updated 2023-02-14


    with
    eth as (
    select
    BLOCK_TIMESTAMP::date as date,
    'Ethereum' as source_chain,
    TX_HASH,
    decoded_log:sender as wallet,
    case when decoded_log:destinationChain like '%binance%' then 'Binance'
    when decoded_log:destinationChain like '%celo%' then 'Celo'
    when decoded_log:destinationChain like '%Fantom%' then 'Fantom'
    when decoded_log:destinationChain like '%Moonbeam%' then 'Moonbeam'

    else decoded_log:destinationChain end as destination_chain,
    concat(source_chain, ' - ', destination_chain) as pathway,
    decoded_log:amount / pow(10, 6) as value
    from
    ethereum.core.ez_decoded_event_logs
    where
    decoded_log:destinationContractAddress = '0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
    and date >= '2023-01-31'
    and date <= '2023-02-06'
    and decoded_log:symbol = 'USDC'
    and EVENT_NAME = 'ContractCallWithToken'),
    bsc as (
    --Binance
    /*case when contract_address = '0x4268b8f0b87b6eae5d897996e6b845ddbd99adf3' then 'axlUSDC'
    when contract_address = '0xe9e7cea3dedca5984780bafc599bd69add087d56' then 'BUSD'
    when contract_address = '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c' then 'WBNB'
    when contract_address = '0x55d398326f99059ff775485246999027b3197955' then 'BUSD-T'
    when contract_address = '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d' then 'USDC'
    end as token, */
    select
    date,
    source_chain,
    Run a query to Download Data