-- forked from doncote / parameter list @ https://flipsidecrypto.xyz/doncote/q/parameter-list-HAHUYA
select
date_trunc('{{grouping}}', d.block_timestamp)::date AS date,
sum(d.amount_deposited)
from
ethereum.maker.ez_deposits d
where
d.block_timestamp > current_timestamp - interval '2 {{grouping}}'
group by 1
order by 1 asc