AntFleet

Disagreement · cf4e74ac-openai-4

Missing preflight validation before submitting transactions (market status and minimum amount) leads to avoidable reverts and gas loss

solo GPT-5
repo a16d2030·PR #1·reviewed 1 week ago

GPT-5 finding

Missing preflight validation before submitting transactions (market status and minimum amount) leads to avoidable reverts and gas loss

mediumapi-contracthigh
  • agenticbets/scripts/agenticbets.py:215-249
  • agenticbets/references/agent-usage.md:46-49
  • agenticbets/references/agent-usage.md:100-101
The CLI submits approval and bet without checking if the market is still open or if the amount satisfies the on-chain minimum of 1 USDC. This can lead to reverted transactions and wasted gas. The usage guide recommends confirming the market is open before betting and notes BelowMinBet for <1 USDC.

Recommendation

- Validate market['status'] == 'open' and market.get('secondsToLock', 0) > 10s (or configurable threshold) before submitting. - Enforce amount >= 1.0 USDC in CLI and fail fast with a clear message. - Optionally prompt the user to confirm when secondsToLock is very low.

Other reviewer

The other reviewer flagged nothing in this file/line range.

Why this didn't post

This finding didn't meet AntFleet's unanimous agreement threshold. Both frontier models review every PR independently; only findings they both flag with the same severity and category are posted to the PR. This one fell through.

read the methodology →