0-MIDicy-aquamarine
    Updated 2024-09-30

    with tab1 as (
    select
    TX_HASH
    ,ORIGIN_FROM_ADDRESS
    from base.core.ez_decoded_event_logs
    where EVENT_NAME='LiFiTransferStarted'
    and DECODED_LOG:bridgeData:integrator='layer3'
    and ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and BLOCK_TIMESTAMP::date>=current_date-30
    )
    select SYMBOL
    ,count(distinct TX_HASH) as bridges
    ,count(distinct ORIGIN_FROM_ADDRESS) as bridgers
    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>=current_date-30
    and AMOUNT_USD is not null
    group by 1
    order by 2 desc
    limit 10




    QueryRunArchived: QueryRun has been archived