Skip to content

Conversation

@FedericoLuque
Copy link

@FedericoLuque FedericoLuque commented Dec 8, 2025

What does this PR do?

Fixes #2146

This PR implements dynamic default sorting for the offer book. Offers are now automatically sorted by their premium in a way that is most favorable to the user, depending on the selected offer type.

Specifically:

  • Buy & Swap In offers are sorted by premium in ascending order (lowest premium first).
  • Sell & Swap Out offers are sorted by premium in descending order (highest premium first).

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sort by premium when the order type is defined

1 participant