From 3ec1770425e6ad531f18ece31b1b34f763983331 Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Wed, 26 Feb 2025 16:40:45 +0100 Subject: [PATCH] Fix condition --- prediction_market_agent_tooling/markets/omen/omen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prediction_market_agent_tooling/markets/omen/omen.py b/prediction_market_agent_tooling/markets/omen/omen.py index 3110880c..f482a364 100644 --- a/prediction_market_agent_tooling/markets/omen/omen.py +++ b/prediction_market_agent_tooling/markets/omen/omen.py @@ -408,7 +408,7 @@ def redeem_winnings(api_keys: APIKeys) -> None: @staticmethod def get_trade_balance(api_keys: APIKeys, web3: Web3 | None = None) -> xDai: - native_token_balance = get_balances(api_keys.public_key, web3=web3).xdai + native_token_balance = get_balances(api_keys.bet_from_address, web3=web3).xdai return xdai_type( wei_to_xdai( KEEPING_ERC20_TOKEN.balanceOf(api_keys.bet_from_address, web3=web3)