Query editor
with stablecoinvolume as (selectproject,sum(amount_usd) as stablecoin_total_usdfrom dex.tradeswhere block_time > now() - interval '{{Days}}' dayand project = 'uniswap'and (token_bought_symbol in ('USDC', 'USDT', 'DAI','BUSD','TUSD','FRAX','USDP','USDD')or token_sold_symbol in ('USDC', 'USDT', 'DAI','BUSD','TUSD','FRAX','USDP','USDD'))group by 1),allvolume as (selectproject,sum(amount_usd) as total_usdfrom dex.tradeswhere block_time > now() - interval '{{Days}}' dayand project = 'uniswap'group by 1)selectstable.project,stable.stablecoin_total_usd,all.total_usd,stable.stablecoin_total_usd/all.total_usd * 100 as percentage_stablefrom stablecoinvolume as stableleft join allvolume as allon stable.project = all.project