Skip to content

Commit 21bbec4

Browse files
committed
Patch SEDA handler for dreamcash temporarily
1 parent 7853de5 commit 21bbec4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/hip-3-pusher/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hip-3-pusher"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
description = "Hyperliquid HIP-3 market oracle pusher"
55
readme = "README.md"
66
requires-python = "==3.13.*"

apps/hip-3-pusher/src/pusher/seda_listener.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ async def _poll(self,
6868

6969
def _parse_seda_message(self, feed_name, message):
7070
result = json.loads(message["data"]["result"])
71-
price = result["composite_rate"]
72-
timestamp = datetime.datetime.fromisoformat(result["timestamp"]).timestamp()
71+
# XXX patch for SEDA
72+
price = result["ema"]
73+
timestamp = datetime.datetime.fromisoformat(result["ema_timestamp"]).timestamp()
7374
logger.debug("Parsed SEDA update for feed: {} price: {} timestamp: {}", feed_name, price, timestamp)
7475
self.seda_state.put(feed_name, PriceUpdate(price, timestamp))

apps/hip-3-pusher/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)