Primary finding
Hardcoded prediction contract routing ignores Markets API predictionContract; docs instruct dynamic routing
- agenticbets/scripts/agenticbets.py:122-126
- agenticbets/scripts/agenticbets.py:223-224
- agenticbets/scripts/agenticbets.py:261-262
- agenticbets/scripts/agenticbets.py:24-27
- agenticbets/SKILL.md:279
- agenticbets/references/agent-usage.md:108
The CLI derives the prediction contract via a hardcoded AGBETS token check, ignoring the predictionContract field provided by the Markets API. Documentation explicitly instructs to use the API and avoid hardcoding to future-proof for new versions (e.g., V3/V4) or token address changes. This increases breakage risk and contradicts the docs.
Recommendation
Use market['predictionContract'] from fetch_markets()/find_market for routing, and remove get_prediction_contract/AGBETS_TOKEN. Fall back only if the API lacks the field (with a clear error).