select
count (distinct tx_hash) as num_txs,
count(ORIGIN_FROM_ADDRESS) as num_wallets,
'Borrow' as type
from optimism.core.fact_event_logs
where EVENT_NAME ilike 'borrow'
union all
select
count (distinct tx_hash) as num_txs,
count(ORIGIN_FROM_ADDRESS) as num_wallets,
'Repay' as type
from optimism.core.fact_event_logs
where EVENT_NAME ilike '%Repay%'