Afonso_DiazTop Stakers
Updated 2025-03-01
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 t as (
select
tx_hash,
block_timestamp,
'Stake' as action,
signer_id as user,
args:amount / 1e18 as amount
from near.core.fact_actions_events_function_call
where
method_name = 'ft_on_transfer'
and receipt_succeeded = 1
and receiver_id = 'xtoken.ref-finance.near'
and predecessor_id = 'token.v2.ref-finance.near'
union all
select
tx_hash,
block_timestamp,
'Unstake' as action,
signer_id as user,
args:amount / 1e18 as amount
from near.core.fact_actions_events_function_call
where
method_name = 'ft_transfer'
and receipt_succeeded = 1
and predecessor_id = 'xtoken.ref-finance.near'
and receiver_id = 'token.v2.ref-finance.near'
),
pricet as (
select
hour::date as date,
avg(price) as price_usd
from near.price.ez_prices_hourly
where symbol = 'REF'
QueryRunArchived: QueryRun has been archived