We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4adacfc commit bfe3162Copy full SHA for bfe3162
pyth_observer/crosschain.py
@@ -32,10 +32,9 @@ async def get_crosschain_prices(self):
32
# return a dictionary of id -> {price, conf, expo} for fast lookup
33
return {
34
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"],
+ "price": int(data["price"]["price"]) * 10 ** data["price"]["expo"],
+ "conf": int(data["price"]["conf"]) * 10 ** data["price"]["expo"],
+ "publish_time": data["price"]["publish_time"],
39
}
40
for data in latest_price_feeds
41
0 commit comments