MrftiLocked $JUP by Address copy
Updated 2024-03-08
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
-- forked from kellen / Locked $JUP by Address @ https://flipsidecrypto.xyz/kellen/q/tNjtkOqqtHJt/locked-jup-by-address
with t0 as (
select
block_timestamp,
signers[0]::string as address,
sum(decoded_instruction:args:amount::int) * pow(10, -6) as lock_amount
from solana.core.fact_decoded_instructions i
where block_timestamp >= '2024-02-01'
and i.program_id ='voTpe3tHQ7AjQHMapgSue2HJFAh2cGsdokqN3XqmVSj'
and event_type = 'increaseLockedAmount'
group by 1,2
)
select
date_trunc (hour, block_timestamp) as "Date",
sum (lock_amount) as "Total locked amount",
sum("Total locked amount") over (order by"Date") as "cumulative lock",
count (DISTINCT address) as "Total lockers",
sum ("Total lockers") over (order by "Date") as "cumulative lockers"
from t0
GROUP by 1
order by 2 desc
QueryRunArchived: QueryRun has been archived