--credit : masi
select 'Deposit' as status,
count(DISTINCT tx_hash) as count_tx,
count(DISTINCT origin_from_address) as total_user,
sum(event_inputs:amount/pow(10,18)) as total_amount
from ethereum.core.fact_event_logs
where event_name = 'Deposit' and
origin_to_address = '0xef0881ec094552b2e128cf945ef17a6752b4ec5d'
group by 1