select
concat(symbol_in, ' to ', symbol_out) as pair,
count(distinct(tx_hash)) as tx_num,
sum(amount_in_usd) as amount_usd
from optimism.velodrome.ez_swaps
where block_timestamp >= current_date - interval '{{ days }} days'
group by pair
having amount_usd > 0