select
last_day(block_timestamp,'month') as date,
sum(amount) as sushi_deposited,
sum(sushi_deposited) over (order by date) as total_deposit
from ethereum.udm_events
where to_address = lower('0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272')
and contract_address = '0x6b3595068778dd592e39a122f4f5a5cf09c90fe2'
group by 1
-- limit 100