Skip to content

[Bug]: Switching Confirm FROM Spending to Savings with insufficient on-chain balance shows Coin selection failed #745

Description

@piotr-iohk

What happened?

On Confirm for a Lightning payment started from Spending, switching FROM to Savings when Savings has less than the send amount shows:

  • Toast: Please try again. / Coin selection failed
  • UI reverts (or remains) on Spending

This is not a hardware-wallet bug (HW may be paired in the background). It is the Confirm funding-source switch when Savings cannot cover the amount.

On Android, the same steps allow switching to Savings, but Swipe To Pay stays greyed/disabled — no coin-selection error.

Expected behavior

Match Android:

  1. Allow switching FROM Spending → Savings on Confirm even if Savings balance is below the amount.
  2. Keep Savings selected.
  3. Disable / grey Swipe To Pay (do not toast “Coin selection failed”).
  4. Optionally show a clear insufficient-funds state; do not surface an on-chain coin-selection error while the user was paying from Lightning.

Steps to Reproduce

  1. Have a wallet with Spending balance ≥ send amount and Savings balance below that amount (e.g. send 10 000 sats, Savings under 10 000).
  2. Use a payment that allows both funding sources (BIP21 / unified invoice with LN + on-chain, or otherwise switchable Confirm FROM).
  3. Start Send, choose amount (e.g. 10 000), pay from Spending, continue to Confirm.
  4. On Confirm details, switch FROM from SpendingSavings.
  5. Observe toast Please try again. Coin selection failed (iOS).

Android comparison: same switch → stays on Savings, Swipe To Pay greyed.

Logs / Screenshots / Recordings

2026-09-11-confirm-switch-savings-coin-selection.mov

Bitkit Version

2.5.0

Device / OS

iPhone (screen recording); regtest (lnbcrt… invoice)

Reproducibility

Always (when Savings balance is below Confirm amount and funding source is switched on Confirm)

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions