Skip to content

Commit a49518d

Browse files
committed
skip alerting on coming soon feeds
1 parent c90f52a commit a49518d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyth_observer/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ async def run(self):
9090
# for each publisher).
9191
states = []
9292
price_accounts = await self.get_pyth_prices(product)
93+
94+
# If the min_publishers is set to 255, this is a "coming soon" feed and is not live yet
95+
# Skip alerting on these feeds
96+
if product.prices[PythPriceType.PRICE].min_publishers == 255:
97+
continue
98+
9399
crosschain_price = crosschain_prices.get(
94100
b58decode(product.first_price_account_key.key).hex(), None
95101
)

0 commit comments

Comments
 (0)