datavortexsporting-teal
    Updated 2024-11-06
    SELECT
    affiliate_address,
    SUM(from_amount_usd) AS TotalVolumeUSD,
    COUNT(DISTINCT tx_id) AS TotalTransactions,
    COUNT(DISTINCT from_address) AS ActiveSwappers
    FROM
    thorchain.defi.fact_swaps
    WHERE
    affiliate_address IS NOT NULL
    GROUP BY
    affiliate_address
    ORDER BY
    TotalVolumeUSD DESC
    LIMIT
    5;

    QueryRunArchived: QueryRun has been archived