Afonso_DiazUser Activity Distribution on AlienBase 🚀
    Updated 2025-05-19
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    symbol_in,
    symbol_out,
    token_in,
    token_out
    from
    base.defi.ez_dex_swaps
    where
    platform = 'alienbase'
    ),

    users as (
    select
    swapper,
    count(distinct tx_hash) as transactions
    from
    main
    group by 1
    )

    SELECT
    CASE
    WHEN transactions = 1 THEN 'Newbie (1 Transaction)'
    WHEN transactions <= 5 THEN 'Casual (2 - 5 Transactions)'
    WHEN transactions <= 10 THEN 'Explorer (6 - 10 Transactions)'
    WHEN transactions <= 25 THEN 'Trader (11 - 25 Transactions)'
    WHEN transactions <= 50 THEN 'Active (26 - 50 Transactions)'
    ELSE 'Power Swapper (50+ Transactions)'
    END AS type,
    Last run: 28 days ago
    TYPE
    SWAPPERS
    1
    Active (26 - 50 Transactions)3346
    2
    Casual (2 - 5 Transactions)113221
    3
    Explorer (6 - 10 Transactions)23107
    4
    Newbie (1 Transaction)239773
    5
    Power Swapper (50+ Transactions)3533
    6
    Trader (11 - 25 Transactions)14586
    6
    236B
    17s