Skip to content

Commit

Permalink
Add get_omen_user_url (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Jul 3, 2024
1 parent afd8193 commit 8bbeb84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion prediction_market_agent_tooling/markets/omen/omen.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,11 @@ def get_positions_value(cls, positions: list[Position]) -> BetAmount:

@classmethod
def get_user_url(cls, keys: APIKeys) -> str:
return f"https://gnosisscan.io/address/{keys.bet_from_address}"
return get_omen_user_url(keys.bet_from_address)


def get_omen_user_url(address: ChecksumAddress) -> str:
return f"https://gnosisscan.io/address/{address}"


def pick_binary_market(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "prediction-market-agent-tooling"
version = "0.40.0"
version = "0.40.1"
description = "Tools to benchmark, deploy and monitor prediction market agents."
authors = ["Gnosis"]
readme = "README.md"
Expand Down

0 comments on commit 8bbeb84

Please sign in to comment.