StangFAST5. staking
Updated 2023-04-09
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
›
⌄
with
stake AS
(
SELECT
a.tx_hash
, a.actions:receipt:Action:signer_id AS user
, ( a.actions:receipt:Action:actions[0]:FunctionCall:deposit::float ) AS volume
FROM
near.core.fact_receipts a
WHERE
a.receiver_id = 'xtoken.ref-finance.near'
AND a.actions:receipt:Action:actions[0]:FunctionCall:deposit::float!=0
AND a.actions:receipt:Action:actions[0]:FunctionCall:method_name ilike '%transfer%'
AND regexp_substr( a.status_value , 'Success' ) IS NOT NULL
)
,
unstake AS
(
SELECT
a.tx_hash
, a.actions:receipt:Action:signer_id AS user
, ( a.actions:receipt:Action:actions[0]:FunctionCall:deposit::float ) AS volume
FROM
near.core.fact_receipts a
WHERE
a.receiver_id = 'xtoken.ref-finance.near'
Run a query to Download Data