select --block_timestamp::date as date,
symbol,
count(distinct tx_hash) as num_txs,
count(distinct origin_from_address) as num_users,
sum(amount) as deposit_for_collatral
from polygon.sushi.ez_lending
where symbol in ('USDC','USDT','DAI','UST','FEI','FRAX','BUSD','TUSD','sUSD') and action = 'Deposit' and block_timestamp::date<='2022-07-10' and block_timestamp::date>='2022-06-06'
group by 1--,2
order by 1,2 asc