Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More specific log #631

Merged
merged 2 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions prediction_market_agent_tooling/markets/omen/omen_resolving.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
OmenSubgraphHandler,
)
from prediction_market_agent_tooling.tools.utils import utcnow
from prediction_market_agent_tooling.tools.web3_utils import ZERO_BYTES, xdai_to_wei
from prediction_market_agent_tooling.tools.web3_utils import (
ZERO_BYTES,
wei_to_xdai,
xdai_to_wei,
)


def claim_bonds_on_realitio_questions(
Expand Down Expand Up @@ -116,7 +120,9 @@ def claim_bonds_on_realitio_question(
current_balance = realitio_contract.balanceOf(public_key, web3=web3)
# Keeping balance on Realitio is not useful, so it's recommended to just withdraw it.
if current_balance > 0 and auto_withdraw:
logger.info(f"Withdrawing remaining balance {current_balance=}")
logger.info(
f"Withdrawing remaining balance {wei_to_xdai(current_balance)} xDai from Realitio."
)
realitio_contract.withdraw(api_keys, web3=web3)


Expand Down
Loading