Skip to content

Conversation

@squadgazzz
Copy link
Contributor

@squadgazzz squadgazzz commented Nov 21, 2025

There is a chance that after preprocessing, the auction can become empty due to filtering out orders for specific reasons. It doesn't make sense to send this kind of auction to solvers. One of the solvers already reported about this on BNB.

Copilot AI review requested due to automatic review settings November 21, 2025 16:59
@squadgazzz squadgazzz requested a review from a team as a code owner November 21, 2025 16:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a safeguard to prevent empty auctions from being sent to solvers after preprocessing. When all orders are filtered out during preprocessing (e.g., due to bad tokens, insufficient balance, or unsupported features), the auction becomes empty and there's no value in sending it to solvers for solving.

  • Early return added when no orders remain after preprocessing
  • Clear logging message indicates when this occurs
  • Returns Ok(None) to indicate no solution was found

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jmg-duarte jmg-duarte added this pull request to the merge queue Nov 24, 2025
Merged via the queue into main with commit dbbe4fb Nov 24, 2025
24 checks passed
@jmg-duarte jmg-duarte deleted the avoid-sending-empty-auctions branch November 24, 2025 14:45
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants