select 'Optimism' as network,
ORIGIN_FROM_ADDRESS as swapper,
count(distinct tx_hash) as n_swaps
from Optimism.core.fact_event_logs
where origin_to_address = '0xdef171fe48cf0115b1d80b88dc8eab59176fee57'
and event_name = 'Swap'
and block_timestamp >= CURRENT_DATE - 90
group by 2
ORDER by 3 DESC
LIMIT 10