Updated 6 days ago
    with
    swappers as (
    SELECT
    SWAPPER,
    COUNT(DISTINCT PLATFORM) AS platform_count
    FROM
    aptos.defi.ez_dex_swaps
    WHERE
    BLOCK_TIMESTAMP >= DATEADD(day, -{{days}}, CURRENT_DATE)
    GROUP BY
    SWAPPER
    ORDER BY
    platform_count DESC
    )
    SELECT
    platform_count,
    count(distinct swapper) as swappers
    from swappers
    group by platform_count
    order by swappers desc
    Last run: 6 days ago
    PLATFORM_COUNT
    SWAPPERS
    1
    19769
    2
    22725
    3
    31147
    4
    4628
    5
    6290
    6
    5288
    7
    728
    8
    86
    8
    65B
    1s