select
program_name as "Program Name",
sum(case when event_name='Deposit' then amount else 0 end) as "Total $OLAS Staked",
--staked-unstaked as tvl,
count(distinct origin_from_address) as "Active Users",
count(distinct tx_hash) as "Actions"
from crosschain.olas.ez_olas_staking
group by 1 order by "Total $OLAS Staked" desc