saeedmzn[Liquid staking on Marinade] - Total
Updated 2025-02-17
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
›
⌄
--claim orderUnstake depositStakeAccount deposit
--orderUnstake -> MSOL_burned
--depositStakeAccount -> Msol_minted deposit_amount
--claim -> claim_amount
---deposit deposit_amount
--- zr7BPzqEE7j48gUruL4kpUUh7zbHhoNGJAbjQ9JJzPG7MjnhYuM2JYu99keV3UPEYQCxM5mGyVLwNPt5MnkdCTg my tx_id
-- select * from solana.marinade.ez_liquid_staking_actions
-- where tx_id ='zr7BPzqEE7j48gUruL4kpUUh7zbHhoNGJAbjQ9JJzPG7MjnhYuM2JYu99keV3UPEYQCxM5mGyVLwNPt5MnkdCTg'
with MSOL_PRICE as (
select
date_trunc(day,hour)::date date ,
symbol ,
median (price) price_usd
from solana.price.ez_prices_hourly
where token_address ='mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So'
and date_trunc(day,hour)::date >= current_date
group by 1 ,2
),
SOL_price as (
SELECT
date_trunc('day', hour)::date as date,
symbol,
median(price) as price_usd
FROM solana.price.ez_prices_hourly
WHERE symbol = 'SOL'
AND date_trunc('day', hour)::date = CURRENT_DATE
GROUP BY 1, 2
),
txns as (
with stake_txns as (
select BLOCK_TIMESTAMP ::Date date ,
tx_id ,
PROVIDER_ADDRESS user ,
DEPOSIT_AMOUNT amount ,
DEPOSIT_AMOUNT_USD amount_usd ,
'Stake' type
QueryRunArchived: QueryRun has been archived