Skip to content

Commit

Permalink
Fix is_open attribute on OmenMarket (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Feb 3, 2025
1 parent 3ce6ae0 commit dd2386d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion prediction_market_agent_tooling/markets/omen/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
DatetimeUTC,
check_not_none,
should_not_happen,
utcnow,
)
from prediction_market_agent_tooling.tools.web3_utils import wei_to_xdai

Expand Down Expand Up @@ -245,7 +246,7 @@ def has_valid_answer(self) -> bool:

@property
def is_open(self) -> bool:
return self.currentAnswer is None
return self.close_time > utcnow()

@property
def is_resolved(self) -> bool:
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.57.14"
version = "0.57.15"
description = "Tools to benchmark, deploy and monitor prediction market agents."
authors = ["Gnosis"]
readme = "README.md"
Expand Down

0 comments on commit dd2386d

Please sign in to comment.