prediction-market-agent-tooling 0.48.13__py3-none-any.whl → 0.48.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -876,17 +876,20 @@ def omen_fund_market_tx(
876
876
  market_contract = market.get_contract()
877
877
  collateral_token_contract = market_contract.get_collateral_token_contract()
878
878
 
879
- if auto_deposit:
880
- auto_deposit_collateral_token(collateral_token_contract, funds, api_keys, web3)
879
+ amount_to_fund = collateral_token_contract.get_in_shares(funds, web3)
881
880
 
882
881
  collateral_token_contract.approve(
883
882
  api_keys=api_keys,
884
883
  for_address=market_contract.address,
885
- amount_wei=funds,
884
+ amount_wei=amount_to_fund,
886
885
  web3=web3,
887
886
  )
888
887
 
889
- market_contract.addFunding(api_keys, funds, web3=web3)
888
+ if auto_deposit:
889
+ # In auto-depositing, we need to deposit the original `funds`, e.g. we can deposit 2 xDai, but receive 1.8 sDai, so for the funding we will use `amount_to_fund`.
890
+ auto_deposit_collateral_token(collateral_token_contract, funds, api_keys, web3)
891
+
892
+ market_contract.addFunding(api_keys, amount_to_fund, web3=web3)
890
893
 
891
894
 
892
895
  def build_parent_collection_id() -> HexStr:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.48.13
3
+ Version: 0.48.14
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.12
@@ -38,7 +38,7 @@ prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=6TBy17xn
38
38
  prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=1aaainHlMExDSp6nfKY31iATQsaJx1LdYp9p2PkQVAs,3453
39
39
  prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=vCDr8FX3FA5LIQydormq8q1aU4GxMh2tQ8i59v_X134,16887
41
- prediction_market_agent_tooling/markets/omen/omen.py,sha256=BuDfmZBegHqqJCErFDstzbqzVDLVuFpoSbyYD4ZteSI,42972
41
+ prediction_market_agent_tooling/markets/omen/omen.py,sha256=cEOnbpiqf0DFY8FCjzsy4UXVrJH7I7iiHH869eSs24s,43235
42
42
  prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=MfaWfDDfEzHYVAbeT3Dgtl8KG7XsqEpdY3m3-rsOPwo,23588
43
43
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=Awaw1r32IBAClCktrXbYJ24RNyLDWcLb8RqAx6FGSkI,9529
44
44
  prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=EwknHxU_EkK8H5-6fWW5IN5k6OAW5il4T2FhXrSKEJc,29984
@@ -78,8 +78,8 @@ prediction_market_agent_tooling/tools/tavily_storage/tavily_models.py,sha256=Uq2
78
78
  prediction_market_agent_tooling/tools/tavily_storage/tavily_storage.py,sha256=xrtQH9v5pXycBRyc5j45pWqkSffkoc9efNIU1_G633Q,3706
79
79
  prediction_market_agent_tooling/tools/utils.py,sha256=JE9YWtPPhnTgLiOyGAZDNG5K8nCwUY9IZEuAlm9UcxA,6611
80
80
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=IZDxHhUJH5RsaRkK9DW6z1RYdk2cz5RqLMZG3T6Gv1U,11602
81
- prediction_market_agent_tooling-0.48.13.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
82
- prediction_market_agent_tooling-0.48.13.dist-info/METADATA,sha256=hzpD4sc9MsTT8zyAaLg8feXkawAQ25AnDorJfCuQBKI,7811
83
- prediction_market_agent_tooling-0.48.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
84
- prediction_market_agent_tooling-0.48.13.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
85
- prediction_market_agent_tooling-0.48.13.dist-info/RECORD,,
81
+ prediction_market_agent_tooling-0.48.14.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
82
+ prediction_market_agent_tooling-0.48.14.dist-info/METADATA,sha256=rEMp7nc9hgFFpAPxMOmPpYps3i67J2p4njOLGjRYD3g,7811
83
+ prediction_market_agent_tooling-0.48.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
84
+ prediction_market_agent_tooling-0.48.14.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
85
+ prediction_market_agent_tooling-0.48.14.dist-info/RECORD,,