Query editor
with pares_legit as (select token_pair, blockchainfrom dex.tradeswhere block_time > now() - interval '60' dayand amount_usd < 1e8group by 1, 2having count(distinct taker) >= 50)selectdate_trunc('day', t.block_time) as dia,100 * sum(case when t.project = 'uniswap' then t.amount_usd else 0 end)/ sum(t.amount_usd) as share_uniswap_pctfrom dex.trades tjoin pares_legit lon l.token_pair = t.token_pairand l.blockchain = t.blockchainwhere t.block_time > now() - interval '60' dayand t.block_time < current_dateand t.amount_usd < 1e8group by 1order by 1