datavortexRef Finance ranking
    Updated 2025-04-30
    WITH d_ex_swap_volumes AS (
    SELECT
    platform,
    SUM(amount_in_usd) AS total_volume,
    COUNT(DISTINCT tx_hash) AS total_swaps
    FROM
    near.defi.ez_dex_swaps
    WHERE
    amount_in_usd IS NOT NULL
    GROUP BY
    platform
    ),
    platform_ranking AS (
    SELECT
    platform,
    total_volume,
    total_swaps,
    ROW_NUMBER() OVER (ORDER BY total_volume DESC) AS volume_rank,
    ROW_NUMBER() OVER (ORDER BY total_swaps DESC) AS swaps_rank
    FROM
    d_ex_swap_volumes
    )
    SELECT
    platform,
    total_volume,
    total_swaps,
    volume_rank,
    swaps_rank
    FROM
    platform_ranking
    ORDER BY
    volume_rank, swaps_rank
    LIMIT 1;

    Last run: about 1 month ago
    PLATFORM
    TOTAL_VOLUME
    TOTAL_SWAPS
    VOLUME_RANK
    SWAPS_RANK
    1
    v2.ref-finance.near4313267124.017471906378011
    1
    55B
    545s