TIME | STETH_AMOUNT | ETH_AMOUNT | RATE | |
---|---|---|---|---|
1 | 2025-06-18 02:00:00.000 | 3.952042885 | 3.952 | 0.9999891487 |
2 | 2025-06-18 00:00:00.000 | 17.910618892 | 17.906854574 | 0.9997898276 |
3 | 2025-06-17 20:00:00.000 | 8.823484345 | 8.821641693 | 0.9997911651 |
4 | 2025-06-17 16:00:00.000 | 86.788460106 | 86.787424814 | 0.9999880711 |
5 | 2025-06-17 15:00:00.000 | 4.8353099 | 4.834267014 | 0.9997843187 |
6 | 2025-06-17 14:00:00.000 | 7.9 | 7.89830294 | 0.9997851823 |
7 | 2025-06-17 12:00:00.000 | 3.753001055 | 3.752197492 | 0.999785888 |
8 | 2025-06-17 11:00:00.000 | 18.120763833 | 18.116903465 | 0.9997869644 |
9 | 2025-06-17 10:00:00.000 | 41.230581779 | 41.23 | 0.9999858896 |
10 | 2025-06-17 09:00:00.000 | 8.521928651 | 8.520091067 | 0.9997843699 |
11 | 2025-06-17 06:00:00.000 | 4.286616985 | 4.285695948 | 0.9997851366 |
12 | 2025-06-17 05:00:00.000 | 10 | 9.997857242 | 0.9997857242 |
13 | 2025-06-17 04:00:00.000 | 90.539230105 | 90.520272089 | 0.9997906099 |
14 | 2025-06-17 01:00:00.000 | 133.7888245 | 133.762235817 | 0.9998012638 |
15 | 2025-06-17 00:00:00.000 | 11.200980788 | 11.198833573 | 0.9998083012 |
16 | 2025-06-16 23:00:00.000 | 169.615848207 | 169.615603244 | 0.9999985558 |
17 | 2025-06-16 17:00:00.000 | 20.092223428 | 20.088946639 | 0.9998369126 |
18 | 2025-06-16 16:00:00.000 | 46.578054128 | 46.570444023 | 0.9998366161 |
19 | 2025-06-16 12:00:00.000 | 6.000859608 | 5.999647743 | 0.9997980513 |
20 | 2025-06-16 11:00:00.000 | 45.970471902 | 45.970299874 | 0.9999962578 |
lidostETH to ETH rate
Updated 11 hours ago
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
›
⌄
⌄
/*
Base assumption:
stETH:ETH rate is determined primarily using the main stETH:ETH Curve pool because most of the protocols built their Price Oracles based on this pool.
*/
-- ETH->stETH swaps
with exchanges as (
SELECT
BLOCK_TIMESTAMP as time
, tx_hash
, case when token_in = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84' then amount_in
when token_out = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84' then amount_out
end as steth_amount
, case when token_in = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' then amount_in
when token_out = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' then amount_out
end as eth_amount
FROM Ethereum.defi.ez_dex_swaps
where CONTRACT_ADDRESS = '0xdc24316b9ae028f1497c275eb9192a3ea0f67022'
AND steth_amount is NOT NULL
and eth_amount is NOT NULL
)
-- calculates the swap rate for the past 30 days
SELECT
date_trunc('hour', time) as time
, SUM(steth_amount) as steth_amount
, SUM(eth_amount) as eth_amount
, SUM(eth_amount)/ SUM(steth_amount) as rate
FROM exchanges
WHERE steth_amount > 2 -- filter for txns with minor quantities with screwed rate
and time >= current_date - interval '30 days'
GROUP by 1
ORDER by 1 DESC
Last run: about 11 hours agoAuto-refreshes every 24 hours
...
421
27KB
3s