vendettaNumber of swaps from/to wAVAX
    Updated 2023-02-08
    SELECT project_name AS token_name
    ,SUM(number_of_swaps_from_wavax) AS number_of_swaps_from_to_wavax_by_token
    FROM (
    SELECT tokens.project_name
    ,COUNT(DISTINCT swaps.tx_id) AS number_of_swaps_from_wavax
    FROM osmosis.core.fact_swaps swaps
    JOIN osmosis.core.dim_tokens tokens
    ON swaps.to_currency = tokens.address
    WHERE from_currency = 'ibc/6F62F01D913E3FFE472A38C78235B8F021B511BC6596ADFF02615C8F83D3B373'
    GROUP BY 1
    UNION all
    SELECT tokens.project_name
    ,COUNT(DISTINCT swaps.tx_id) AS number_of_swaps_to_wavax
    FROM osmosis.core.fact_swaps swaps
    JOIN osmosis.core.dim_tokens tokens
    ON swaps.from_currency = tokens.address
    WHERE to_currency = 'ibc/6F62F01D913E3FFE472A38C78235B8F021B511BC6596ADFF02615C8F83D3B373'
    GROUP BY 1)
    GROUP BY 1
    Run a query to Download Data