KaskoazulCorrelation DeGods-DUST
Updated 2022-03-30
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
›
⌄
WITH DUSTSWAPPERS AS (
SELECT SWAPPER,
COUNT(tx_id) as SWAPS,
SUM(swap_to_amount) as DUST_SWAPPED
FROM solana.fact_swaps
WHERE swap_to_mint = 'DUSTawucrTsGU8hcqRdHDCbuYhCPADMLM2VcCb8VnFnQ'
and succeeded = TRUE
and swap_program = 'jupiter aggregator v2'
GROUP by SWAPPER
),
WALLETS AS (
select
fns.purchaser as WALLET,
COUNT(fns.purchaser) AS DEGODS_PURCHASED
from solana.fact_nft_sales fns
inner join solana.dim_nft_metadata dnm
on lower(dnm.mint) = lower(fns.mint)
where lower(marketplace) like ('magic%')
and succeeded = TRUE
and contract_name = 'DeGods'
GROUP BY 1
)
SELECT WALLET,
DEGODS_PURCHASED,
SWAPS,
DUST_SWAPPED
from WALLETS
inner join DUSTSWAPPERS
on WALLET = SWAPPER
Run a query to Download Data