select
block_timestamp::date as day,
count(distinct t.TX_FROM[0]) as wallets,
sum(wallets) over (order by day) as grow_rate
from terra.transactions t join terra.labels l on t.TX_TO[0] = l.address
where t.block_timestamp>=CURRENT_DATE-90
and l.label_subtype != 'token_contract'
and l.label = 'anchor'
-- and l.LABEL_SUBTYPE='pool'
and t.TX_STATUS = 'SUCCEEDED'
group by 1