Suggest a swap pair instead of leaving the cells empty - #977
Open
DRadmir wants to merge 1 commit into
Open
Conversation
DRadmir
force-pushed
the
wt4/swap-suggest-receive
branch
from
August 26, 2026 12:28
2498a0a to
f2fce7d
Compare
Pick the receive asset from the wallet's own swap history, falling back to recent swap selections and then to the top of the receive picker. On Android also pick the pay asset when the swap screen opens empty. Closes #918
DRadmir
force-pushed
the
wt4/swap-suggest-receive
branch
from
August 26, 2026 13:35
f2fce7d to
45d4802
Compare
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.
The swap screen no longer opens with empty cells.
The receive asset is picked from the wallet's own swap history — the asset most often received for the selected pay asset, or the most often received overall. If there is no history yet, it falls back to recent swap selections, and then to the first asset of the receive picker.
On Android the swap screen can also open with no pay asset, so the asset with the largest balance is picked there as well.
Closes #918