Skip to content

Commit bfe3162

Browse files
authored
Fix the cross chain api change problem (#43)
1 parent 4adacfc commit bfe3162

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyth_observer/crosschain.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ async def get_crosschain_prices(self):
3232
# return a dictionary of id -> {price, conf, expo} for fast lookup
3333
return {
3434
data["id"]: {
35-
"price": int(data["price"]) * 10 ** data["expo"],
36-
"conf": int(data["conf"]) * 10 ** data["expo"],
37-
"publish_time": data["publish_time"],
38-
"prev_publish_time": data["prev_publish_time"],
35+
"price": int(data["price"]["price"]) * 10 ** data["price"]["expo"],
36+
"conf": int(data["price"]["conf"]) * 10 ** data["price"]["expo"],
37+
"publish_time": data["price"]["publish_time"],
3938
}
4039
for data in latest_price_feeds
4140
}

0 commit comments

Comments
 (0)