ArioDistribution of Users by # of Pools
    Updated 2025-04-04
    with tab1 as (
    select
    FROM_ADDRESS as "User Address",
    count(POOL_NAME) as "# Pools"
    from thorchain.defi.fact_swaps
    where 1=1
    and POOL_NAME is not NULL
    group by 1
    )
    select
    case when "# Pools" = 1 then 'A: 1'
    when "# Pools" = 2 then 'B: 2'
    when "# Pools" = 3 then 'C: 3'
    when "# Pools" = 4 then 'D: 4'
    when "# Pools" = 5 then 'E: 5'
    else 'F: > 5'
    end as "# Pools Bin",
    count("User Address") as "# Users"
    from tab1
    group by 1
    order by "# Users" desc


    Last run: 25 days ago
    # Pools Bin
    # Users
    1
    C: 3258209
    2
    F: > 5206075
    3
    B: 2187282
    4
    D: 446003
    5
    A: 140523
    6
    E: 516763
    6
    96B
    1s