Skip to content

feat: move the whole balance to spark in one swipe #1984

Description

@jvsena42

Move to Spark (#1774, twin synonymdev/bitkit-ios#1212) can take several manual steps to empty the Lightning connections.

Current flow

  • The quote looks for a single payment that fits the movable balance. When none routes (MoveToSparkRepo quote → MoveToSparkError.TooLarge), the screen shows "Amount too large… You can move it in smaller parts" and offers half the amount (MoveToSparkMath.smallerAmount).
  • After that move, Done says "Part of your balance is on Spark now. Move the rest the same way, then close the emptied connection." and shows Move Rest (MoveToSparkScreen.kt, MoveToSparkMoveRest).
  • A user who hits the routing limit swipes at least twice and reads two screens about routing limits. iOS has the same flow (MoveToSparkView.swift).

Proposal

  • One swipe moves everything. The app sends parts by itself, halving a part that doesn't route, until the movable balance is below MIN_MOVE_SATS.
  • One progress screen with the running total, and one Done screen with the total moved and the fees.
  • "Too large" and "Move Rest" stay only as the retry path when a part fails partway.
  • feat: update spending balance modal #1967 already closes the emptied channel automatically, which removes the third manual step.

Design: MoveToSparkScreen.kt is todo in docs/screens-map.md, so there is no frame for this yet.

Activity

  1. ovitrif commented on Nov 20, 2026

    @ovitrif
    Collaborator

    @jvsena42 #1967 doesn't cover this. Its modal keeps today's behaviour for the states that have no frame, "too large" included, so a move that doesn't route still goes through the smaller amount and Move Rest. What #1967 adds is closing the emptied channels automatically after the move.

    I'm putting this issue in 3.3.0, not 3.2.0:

    • 3.2.0 is due 27 Nov and still has a lot open.
    • There is no frame yet for the progress and Done screens.
    • Today's flow still empties the channels; it only takes extra swipes.
  2. added this to the 3.3.0 milestone on Nov 20, 2026
  3. self-assigned this
    on Nov 20, 2026
  4. modified the milestones: 3.3.0, 3.2.0 on Nov 20, 2026
  5. changed the title [-]Move to Spark: move the whole balance in one swipe[/-] [+]feat: move the whole balance to spark in one swipe[/+] on Nov 20, 2026
  6. ovitrif commented on Nov 20, 2026

    @ovitrif
    Collaborator

    Changing my earlier call: this issue goes in 3.2.0, with synonymdev/bitkit-ios#1379 as its iOS twin.

    Scope, on both apps:

    • One swipe in the Update Spending Balance modal moves the whole balance; the app splits it into parts by itself.
    • The modal follows the two v64 frames as designed: Update Spending Balance (with the update fee), then Spending Balance Updated.
    • No progress, Too large, smaller parts or Move Rest screens, and nothing about how many payments it took.

    It lands in a new PR per app, stacked on #1967 and synonymdev/bitkit-ios#1373.

  7. ovitrif commented on Nov 20, 2026

    @ovitrif
    Collaborator

    @jvsena42 we follow Aldert's v64 design here, so the one swipe from your proposal stays and its progress and Done screens don't:

    The split into parts happens behind those two frames.

  8. jvsena42 commented on Nov 20, 2026

    @jvsena42
    MemberAuthor

    Seen on device while gating #1967: after a move left 6 304 sats on a channel, the Done modal offered Move Rest, and Move To Spark then said "₿ 1 965 is too large to route to Spark in one payment". hasRest checks the movable-balance threshold, not whether the rest can route, so the button can lead to a dead end. Automatic splitting should also cover this case, or hide Move Rest when the remainder cannot route.

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