Skip to content

[WIP] Refactor deals#3900

Draft
bznein wants to merge 1 commit intoBitBoxSwiss:staging-swapfrom
bznein:refactorDeals
Draft

[WIP] Refactor deals#3900
bznein wants to merge 1 commit intoBitBoxSwiss:staging-swapfrom
bznein:refactorDeals

Conversation

@bznein
Copy link
Copy Markdown
Collaborator

@bznein bznein commented Mar 2, 2026

This is a draft PR that shows how we could refactor the "Deals" in our code to make it more maintainable and extensible: it keeps a single endpoint but it separates the concept of Deal into Service (Buy/Sell) and Offer (otc/swap/spend).

It is only a starting point and not intended to be the final state, but just to start the conversation about refactoring this part of our code.

Before asking for reviews, here is a check list of the most common things you might need to consider:

  • updating the Changelog
  • writing unit tests
  • checking if your changes affect other coins or tokens in unintended ways
  • testing on multiple environments (Qt, Android, ...)
  • having an AI review your changes

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.

1 participant