rezarwzMakers Key Metrics copy
Updated 2025-04-15Copy Reference Fork
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 all_makers as (
SELECT
tx_hash,
block_timestamp,
origin_from_address as ua,
decoded_log:maker as maker_ad,
decoded_log:gives as gives,
case
when (decoded_log:maker, block_timestamp) in (
SELECT
decoded_log:maker,
min(block_timestamp)
FROM
arbitrum.core.ez_decoded_event_logs
where
contract_address = '0x109d9cdfa4ac534354873ef634ef63c235f93f61'
and event_name = 'OfferWrite'
group by
1
) then 'New User'
else 'Returning User'
end as user_type
from
arbitrum.core.ez_decoded_event_logs
where
contract_address = '0x109d9cdfa4ac534354873ef634ef63c235f93f61'
and event_name = 'OfferWrite'
),
last_24 as (
SELECT
count(DISTINCT maker_ad) as last_24
FROM
all_makers
WHERE
block_timestamp > TIMESTAMPADD(HOUR, -24, CURRENT_TIMESTAMP)
),
QueryRunArchived: QueryRun has been archived