select
block_timestamp::date as day
,contract_name as Token
,count (distinct tx_id) as tx_count
,count (distinct trader) as wallets
from flow.defi.ez_swaps
join flow.core.dim_contract_labels
on token_out_contract = event_contract
group by 1,2
order by 1