DAYS_HELD | STATUS | NUMBER_OF_USERS | |
---|---|---|---|
1 | 0 | exited | 23 |
2 | 1 | exited | 17 |
3 | 2 | exited | 7 |
4 | 3 | exited | 5 |
5 | 4 | exited | 7 |
6 | 5 | exited | 2 |
7 | 6 | exited | 2 |
8 | 7 | exited | 2 |
9 | 8 | exited | 2 |
10 | 10 | exited | 2 |
11 | 11 | exited | 2 |
12 | 15 | exited | 2 |
13 | 17 | exited | 1 |
14 | 19 | exited | 2 |
15 | 21 | exited | 1 |
16 | 22 | exited | 3 |
17 | 23 | exited | 2 |
18 | 25 | exited | 1 |
19 | 26 | exited | 2 |
20 | 28 | exited | 1 |
Sandeshaverage days held airdrop
Updated 2025-02-07
999
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
›
⌄
-- Step 1: Identify wolves SBT holders
WITH wolves_sbt_holders AS (
SELECT
DATE_TRUNC('week', block_timestamp) AS member_since,
nft_to_address AS member,
tokenId
FROM polygon.nft.ez_nft_transfers
WHERE block_number >= '44071817' -- Consider only transactions from this block onwards (SBT airdrop block)
AND nft_address = LOWER('0x0433882c60ada1077a9f652ca2d1d36422c62c6c') -- wolvesDAO sbt token
AND member != '0x0000000000000000000000000000000000000000' -- Ignore burn/mint address
QUALIFY ROW_NUMBER() OVER (PARTITION BY tokenId ORDER BY block_number DESC) = 1 -- Keep only latest transfer per tokenId
),
-- Step 2: Build the balance table
balance_table AS (
-- Incoming transactions
WITH inn AS (
SELECT
block_timestamp,
event_index,
tx_hash,
from_address AS counterparty,
to_address AS user,
amount
FROM base.core.ez_token_transfers
WHERE block_timestamp >= '2024-12-11 00:00:00.000'
AND to_address IN (SELECT member FROM wolves_sbt_holders) -- Only include wolvesdao members
AND contract_address = LOWER('0x919E43a2CcE006710090E64BDE9E01b38Fd7f32f') -- AIYP token
),
-- Outgoing transactions (negative amount for debits)
outt AS (
SELECT
block_timestamp,
event_index,
tx_hash,
Last run: about 2 months ago
30
482B
13s