Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazabbas committed May 28, 2024
1 parent 216f09d commit 5f81087
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyth_observer/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,14 @@ async def send(self):
state = self.check.state()
if isinstance(state, PublisherState):
alert_identifier += f"-{state.publisher_name}"
symbol = self.check.state().symbol.replace(".", "-").replace("/", "-").lower()
cluster = "solana-mainnet-beta" if self.context.network == "mainnet" else self.context.network
symbol = (
self.check.state().symbol.replace(".", "-").replace("/", "-").lower()
)
cluster = (
"solana-mainnet-beta"
if self.context["network"] == "mainnet"
else self.context["network"]
)
publisher_key = state.public_key.key
summary += f"https://pyth.network/metrics?price-feed={symbol}&cluster={cluster}&publisher={publisher_key}\n"

Expand Down

0 comments on commit 5f81087

Please sign in to comment.