0-MIDtotal zk track base.
    Updated 2025-01-21

    with tab1 as (
    select
    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'
    and DECODED_LOG:bridgeData:destinationChainId=324
    and BLOCK_TIMESTAMP::date>='2024-12-22' and BLOCK_TIMESTAMP::date<='2025-01-19'
    )
    select --BLOCK_TIMESTAMP::date as day
    case
    when BLOCK_TIMESTAMP::date>='2024-12-22' and BLOCK_TIMESTAMP::date<='2025-01-05' then '2 Weeks Before'
    when BLOCK_TIMESTAMP::date>='2025-01-06' and BLOCK_TIMESTAMP::date<='2025-01-19' then '2 Weeks After'
    end as time_period
    ,sum(AMOUNT_USD) as volume
    ,count(distinct ORIGIN_FROM_ADDRESS) as bridgers
    ,count(distinct TX_HASH) as bridges
    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)
    and BLOCK_TIMESTAMP::date>='2024-12-22' and BLOCK_TIMESTAMP::date<='2025-01-19'
    group by 1





    QueryRunArchived: QueryRun has been archived