shreexsATELLİTE
    Updated 2023-04-07
    WITH
    list AS (
    SELECT distinct
    event_inputs:to AS recipient
    from
    arbitrum.core.fact_event_logs
    where
    event_name = 'Transfer'
    and event_inputs:
    from
    = '0x67a24ce4321ab3af51c2d0a4801c3e111d88c9d9'
    and contract_address = '0x912ce59144191c1204e64559fe8253a0e49e6548'
    and tx_status = 'SUCCESS'
    )
    select
    date_trunc('month', block_timestamp) as date,
    'Satellite #From Arb' as bridge,
    --token_symbol as t,
    count(distinct tx_hash) as bridges,
    count(
    distinct event_inputs:
    from
    ) as users,
    sum(event_inputs:value / POW(10, 6)) as bridge_volume,
    1 as pricee,
    pricee * bridge_volume as bridge_volume_usd
    from
    arbitrum.core.fact_event_logs
    where
    --tx_hash='0x4c23b4e7bb5d68d19e9554123a74923919bd04e4e4f1c109881d8c2bd55d71f0' min
    -- tx_hash = '0x6035b2554cb9ecd69c0297bfe967815b4cf9befb2c585e536653a5ba85c6c44b' burn
    origin_to_address = '0xe432150cce91c13a887f7d836923d5597add8e31'
    and event_Name = 'Transfer'
    and event_inputs:to = '0x0000000000000000000000000000000000000000'
    and event_inputs:
    from