Repository navigation
Conversation
The Select Swap Provider modal listed the same quote twice when only one provider answered (Selected Quote plus its Fixed or Variable section). With a single quote there is nothing to choose, so the Powered by card is now static: tapping it does nothing and it shows no chevron or Tap to Change Provider hint, as Stealth Swap already does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Asana task
When only one swap quote comes back (for example Bridgeless for BTC to BTCx), the Select Swap Provider modal had nothing to offer except the same quote listed twice, once as the Selected Quote and again under Fixed or Variable Quotes.
The confirmation scene now passes
onPressto the Powered by card only when there is more than one quote. With a single quote the card is static: tapping it does nothing, and it shows no chevron and no "Tap to Change Provider" hint. Stealth Swap keeps its existing fixed-provider behavior. The check counts quotes rather than distinct providers, because one provider returning two quotes is still a real choice.Tests: two new SwapConfirmationScene cases (a single quote leaves the card without
onPressor the hint; two quotes keep both), plus the updated snapshot.CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
none
Requirements
If you have made any visual changes to the GUI. Make sure you have:
Note
Low Risk
UI-only change on swap confirmation with no impact on quote selection logic or transaction execution.
Overview
Swap confirmation no longer treats the Powered by card as tappable when there is only one quote, so users are not sent to a provider picker that duplicated the same option.
The scene now sets
canChangeProviderwhen the swap is not Stealth andquotes.length > 1, and passesonPresstoPoweredByCardonly in that case. With a single quote the card stays static (no chevron or “Tap to Change Provider”), matching fixed-provider Stealth swaps. The rule uses quote count rather than distinct providers so two quotes from one provider still allow switching.Tests cover single- vs multi-quote behavior; the snapshot reflects the non-interactive card layout.
Reviewed by Cursor Bugbot for commit d3fa637. Bugbot is set up for automated code reviews on this repo. Configure here.
Test evidence
d3fa637Hide the swap provider picker for a single quote
2026-11-05
1. multi quote tappable
2. multi quote picker opens
3. single quote static card
4. single quote tap does nothing