Afonso_DiazClassifying Bridgers
    Updated 2025-05-19
    with

    pricet as (
    select
    hour::date as date,
    avg(price) as token_price_usd
    from
    crosschain.price.ez_prices_hourly
    where
    blockchain = 'ethereum'
    and token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    group by 1
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    to_address as user,
    value as amount,
    amount * token_price_usd as amount_usd,
    'Bridge to Swell' as type
    from
    swell.core.fact_transactions
    join
    pricet on block_timestamp::date = date
    where
    from_address = '0xf70da97812cb96acdf810712aa562db8dfa3dbef'
    and tx_succeeded
    and from_address != to_address
    and tx_hash not in (select distinct tx_hash from swell.core.fact_event_logs)

    union all

    select
    tx_hash,
    Last run: 20 days ago
    USER_CATEGORY
    USERS
    1
    Active Bridger (11 - 25 Transactions)14
    2
    Casual Bridger (2 - 5 Transactions)2352
    3
    Frequent Bridger (26 - 50 Transactions)1
    4
    Moderate Bridger (6 - 10 Transactions)51
    5
    Occasional Bridger (1 Transaction)4682
    6
    Power Bridger (More than 50 Transactions)1
    6
    275B
    17s