Skip to content

bug: pending spark withdrawal hides the swap fallback #1921

Closed

Description

@ovitrif

While a Spark withdrawal to one contact settles, paying a different contact that Spark can't afford shows the settling toast instead of falling back to a Pubky Swaps route.

Why

withdrawalRouteLeg throws WithdrawalPending while any contact withdrawal's journal is open, and it checks that before the balance (SparkRepo.kt:871). routePaykitPayment then never reaches the swap fallback (AppViewModel.kt:5044), even though the swap pays from Spending and never touches Spark.

Fix

If the check is there so a contact isn't paid twice while its Spark withdrawal is unresolved, the journal already records address and contact: refuse the fallback only when the pending withdrawal is to this endpoint.

iOS twin: synonymdev/bitkit-ios#1334.

Found in review of #1732: #1732 (comment)

Activity

  1. added this to the 3.3.0 milestone on Nov 14, 2026
  2. self-assigned this
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions