Skip to content

Suggest a swap pair instead of leaving the cells empty - #977

Open
DRadmir wants to merge 1 commit into
mainfrom
wt4/swap-suggest-receive
Open

Suggest a swap pair instead of leaving the cells empty#977
DRadmir wants to merge 1 commit into
mainfrom
wt4/swap-suggest-receive

Conversation

@DRadmir

@DRadmir DRadmir commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

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

@DRadmir DRadmir self-assigned this Aug 26, 2026
@DRadmir
DRadmir force-pushed the wt4/swap-suggest-receive branch from 2498a0a to f2fce7d Compare August 26, 2026 12:28
@DRadmir
DRadmir requested a review from gemcoder21 August 26, 2026 13:29
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
DRadmir force-pushed the wt4/swap-suggest-receive branch from f2fce7d to 45d4802 Compare August 26, 2026 13:35
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.

Improve swap selector / suggestions

1 participant