Skip to content

fix(tokens): don't gate Convert on holding a second currency - #1579

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/token-convert-gate
Sep 27, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/token-convert-gate

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Tapping Convert on a currency's info screen showed "No Balance Yet" unless the user also held a displayable balance in some other currency. A user reported it with $11.04 of Moony and no USDF: every tap brought up the Add Money sheet, and their log shows the sheet each time.

The check reused hasFundableBalance from the Buy path, which asks whether another currency could pay for this one. Convert doesn't need that. It spends the source currency, and SwapViewModel resolves a destination the user doesn't hold through getTokenMetadata.

iOS opens the Convert flow without a check (CurrencyInfoScreen.swift, onConvert: { router.push(.convertCurrency(mint)) }). Both platforms already show the Convert tile only for a held currency, so this drops the Android check to match. State.canSell had no other caller and is removed with it.

Tapping Convert on the currency info screen showed "No Balance Yet"
unless the user also held a displayable balance in some other currency.
A user with $11.04 of Moony and no USDF couldn't convert it.

Converting only spends the source currency; SwapViewModel resolves a
destination the user doesn't hold through its token metadata. iOS opens
the Convert flow without a check, and both platforms already show the
tile only for a held currency, so drop the check. canSell had no other
caller and goes with it.
@bmc08gt bmc08gt self-assigned this Sep 27, 2026
@github-actions github-actions Bot added type: fix Bug fix area: tokens Token accounts, balances, token info and removed type: fix Bug fix labels Sep 27, 2026
@bmc08gt
bmc08gt merged commit 7173cb9 into code/cash Sep 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant