File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1212
1313from pyth_observer .alert_utils import generate_alert_identifier
1414from pyth_observer .check import Check
15+ from pyth_observer .check .price_feed import PriceFeedState
1516from pyth_observer .check .publisher import PublisherCheck , PublisherState
1617from pyth_observer .models import Publisher
1718from pyth_observer .zenduty import send_zenduty_alert
@@ -178,6 +179,11 @@ async def send(self) -> None:
178179 )
179180 publisher_key = state .public_key .key
180181 summary += f"https://legacy.pyth.network/metrics?price-feed={ symbol } &cluster={ cluster } &publisher={ publisher_key } \n "
182+ elif isinstance (state , PriceFeedState ):
183+ symbol = (
184+ self .check .state ().symbol .replace ("." , "-" ).replace ("/" , "-" ).lower ()
185+ )
186+ summary += f"https://legacy.pyth.network/price-feeds/{ symbol } \n "
181187
182188 logger .debug (f"Sending Zenduty alert for { alert_identifier } " )
183189 await send_zenduty_alert (
You can’t perform that action at this time.
0 commit comments