boomer77top synths
    Updated 2022-05-11
    with raw as (select block_timestamp, tx_id, pool_name, native_to_address, to_asset, to_amount, case
    when to_amount_usd = 0 then to_amount
    else to_amount_usd end as vol_usd
    from thorchain.swaps
    where native_to_address like 'thor%' and to_asset!='THOR.RUNE')

    select to_asset, sum(vol_usd) as volume_usd
    from raw
    group by 1
    order by 2 desc
    Run a query to Download Data