Monitize AINYAN 1
Updated 2024-07-15
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from NYAN 1 @ https://flipsidecrypto.xyz/edit/queries/08c548cc-129a-4cd6-9d3e-d674f804f080
with claimt as (
select
date_trunc('day', BLOCK_TIMESTAMP) as dates,
count(distinct tx_to) as users,
sum(amount) as claimed_amount
from solana.core.fact_transfers
where tx_from = '4cZgUw6T8yYQ2CordAfSzS4Q5VKJNyVU3JEX6xGg2Xwy'
and mint = 'NYANpAp9Cr7YarBNrby7Xx4xU6No6JKTBuohNA3yscP'
--and program_id = 'meRjbQXFNf5En86FXT2YPz1dQzLj4Yb3xK8u1MVgqpb'
and tx_to != 'C8FXTcztFpdjMjPZYtu6mMTs3M5fLzNKR7Q6vymkQC8e'
and amount > 0
group by 1)
select
dates,
ifnull(claimed_amount,0) as claimed_amount,
ifnull(users,0) as claimers,
sum(ifnull(claimed_amount,0)) over(order by dates asc) as cum_claimed_amount,
20000000 - sum(ifnull(claimed_amount,0)) over(order by dates asc) as cum_unclaimed_amount,
sum(ifnull(users,0)) over(order by dates asc) as cum_claimers
from claimt
order by 1 asc
QueryRunArchived: QueryRun has been archived