Afonso_DiazTop stakers
Updated 2025-01-27
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
pricet as (
select
hour::date as date,
token_address,
avg(price) as price_usd
from
near.price.ez_prices_hourly
group by 1, 2
),
main as (
select
tx_hash,
block_timestamp,
predecessor_id as token_address,
signer_id as user,
symbol,
args:amount / pow(10, decimals) as amount,
amount * price_usd as amount_usd,
'Stake' as action
from
near.core.fact_actions_events_function_call
join
near.core.dim_ft_contract_metadata on contract_address = predecessor_id
left join
pricet on block_timestamp::date = date and predecessor_id = token_address
where
receiver_id = 'allstake.near'
and receipt_succeeded
and method_name = 'ft_on_transfer'
union all
select
QueryRunArchived: QueryRun has been archived