Skip to content

Commit 81f92b3

Browse files
committed
fix market name
1 parent 7dd2290 commit 81f92b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ def publish(self):
7878
return
7979
else:
8080
logger.debug("Current oracle price: {}", oracle_px)
81-
oracle_pxs[self.market_symbol] = oracle_px
81+
oracle_pxs[f"{self.market_name}:{self.market_symbol}"] = oracle_px
8282

8383
mark_pxs = []
8484
external_perp_pxs = {}
8585
if self.price_state.hl_mark_price:
86-
external_perp_pxs[self.market_symbol] = self.price_state.hl_mark_price.price
86+
external_perp_pxs[f"{self.market_name}:{self.market_symbol}"] = self.price_state.hl_mark_price.price
8787

8888
# TODO: "Each update can change oraclePx and markPx by at most 1%."
8989
# TODO: "The markPx cannot be updated such that open interest would be 10x the open interest cap."

0 commit comments

Comments
 (0)