Skip to content

fix(payments): route Add Money from confirm sheets - #1156

Merged
bmc08gt merged 2 commits into
mainfrom
fix/insufficient-funds-over-sheet
Oct 28, 2026
Merged

bmc08gt merged 2 commits into
mainfrom
fix/insufficient-funds-over-sheet

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

On Currency Info send, "Add More Cash" in the insufficient-funds dialog did nothing, and Add Money from a confirm sheet could navigate while that sheet was still up. A failed swipe still leaves the sheet up with the dialog over it, as on main.

  • Currency Info send's "Add More Cash" now works. CurrencySendFlow never observed depositMint; it now does, on the confirmed send's model.
  • Add Money from a confirm sheet closes the sheet before navigating. This covers request pay, group send and Currency Info send. router.navigate(.currencyInfoForDeposit) dismisses router sheets but not a local one, so each flow closes its confirm sheet and navigates from onDismiss.
  • Request pay's post-swipe dialog gains "Add More Cash". The check in submit() runs against the token picked in the sheet. Pressing Send still opens the sheet without a balance check, since the payer can pick any token in the wallet there.

InsufficientFundsSheetTests covers the depositMint routing on Currency Info send.

@bmc08gt bmc08gt self-assigned this Oct 28, 2026
… Money from confirm sheets

Paying a request without enough funds only checked after the swipe. Request
pay now checks funds in prepare() and, when short, shows the insufficient-funds
dialog (with Add More Cash) instead of opening the swipe sheet.

Currency Info send now observes depositMint, so Add More Cash routes to the
deposit instead of doing nothing. For request pay, group send and Currency
Info send, Add Money tapped while the confirm sheet is up closes that sheet
first and navigates once it has dismissed, since the router cannot dismiss a
local sheet. Failed swipes still leave the sheet up with the dialog over it.
@bmc08gt
bmc08gt force-pushed the fix/insufficient-funds-over-sheet branch from e1de11e to f38d213 Compare October 28, 2026 18:41
@bmc08gt bmc08gt changed the title fix(payments): check funds before the swipe sheet and dismiss it before showing failures fix(payments): check funds before the request pay sheet and route Add Money from confirm sheets Oct 28, 2026
The payer picks the token in the swipe sheet, so checking the token selected
before the sheet opens blocked payers who hold the funds in another currency.
prepare() no longer checks funds; a ready share opens the pay sheet as before.

The post-swipe check in submit() still runs against the picked token, and its
insufficient-funds dialog keeps the Add More Cash action.
@bmc08gt bmc08gt changed the title fix(payments): check funds before the request pay sheet and route Add Money from confirm sheets fix(payments): route Add Money from confirm sheets Oct 28, 2026
@bmc08gt
bmc08gt merged commit 264eb23 into main Oct 28, 2026
4 checks passed
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