Sleepysupply BN
Updated 2023-06-01
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
select sum(total_supply) total_suply
from(
select
date_trunc('day', block_timestamp) day,
sum(case
when from_address = '0x0000000000000000000000000000000000000000' then amount
else 0 end) -
sum(case
when to_address = '0x0000000000000000000000000000000000000000' then amount
else 0 end) total_supply,
sum(total_supply) over(order by day) cum_total_supply,
case when total_supply < 0 then 'removing from circulating'
else 'introducing into circulating' end type
from
avalanche.core.ez_token_transfers
where contract_address = '0xc891eb4cbdeff6e073e859e987815ed1505c2acd'
and (from_address = '0x0000000000000000000000000000000000000000'
or to_address = '0x0000000000000000000000000000000000000000')
group by day
order by day
)
Run a query to Download Data