select case when lp_action = 'deposit' then 'stake' else lp_action end as new_lp_action , count(distinct origin_to_address) as num_users, count(tx_hash) as num_txs,
sum(lp_token_amount_usd) as total_lp_vol, total_lp_vol/num_txs as avg_lp_vol
from optimism.velodrome.ez_lp_actions
where lp_token_amount_usd > 0
group by 1