Skip to content

Commit bcca674

Browse files
committed
fix: hotfix and abi updates (#244)
* hotfix: bug pyth fetcher * update abis * log * version update
1 parent b1be433 commit bcca674

10 files changed

Lines changed: 13 additions & 16 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"

lp-pricer/lp_pricer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"

pragma-oracle

Submodule pragma-oracle updated 139 files

pragma-sdk/pragma_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"

pragma-sdk/pragma_sdk/common/fetchers/fetchers/pyth.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ def format_url(self, feed_ids: List[str]) -> str:
7272
return f"{self.BASE_URL}?{params}"
7373

7474
async def fetch_pair(
75-
self, pair: Pair, session: ClientSession, feed_id: str
75+
self, pair: Pair, session: ClientSession, feed_id: Optional[str] = None
7676
) -> SpotEntry | PublisherFetchError:
7777
"""Fetch price for a single pair."""
78+
if not feed_id:
79+
return PublisherFetchError(f"No Pyth feed ID found for pair {pair}")
80+
7881
url = self.format_url([feed_id])
7982

8083
async with session.get(url) as resp:
@@ -108,12 +111,6 @@ async def fetch(
108111
entries = []
109112
for pair in self.pairs:
110113
feed_id = self.get_feed_id(pair)
111-
if not feed_id:
112-
entries.append(
113-
PublisherFetchError(f"No Pyth feed ID found for pair {pair}")
114-
)
115-
continue
116-
117114
entries.append(
118115
asyncio.ensure_future(self.fetch_pair(pair, session, feed_id))
119116
)

pragma-sdk/pragma_sdk/onchain/abis/pragma_Oracle.sierra.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.9"
1+
__version__ = "2.4.10"

0 commit comments

Comments
 (0)