Pine Analyticssilly-teal
Updated 2024-08-28
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
›
⌄
with tab1 as (
SELECT
tx_id as txs,
signers [0] as user
FROM
solana.core.fact_events
WHERE
program_id LIKE 'LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn'
AND block_timestamp > '2024-08-01'
),
tab2 as (
SELECT
date(hour) as day,
token_address as ta,
median(price) as price
FROM
solana.price.ez_prices_hourly
GROUP by
1,
2
)
SELECT
date(block_timestamp) as date,
count(DISTINCT tx_id) as events,
count(DISTINCT tx_from) as users,
sum(
case
when mint LIKE 'So11111111111111111111111111111111111111111' then amount * 145
else amount * price
end
) as deposit_volume_usd
FROM (
SELECT
*
QueryRunArchived: QueryRun has been archived