You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: move the whole balance to spark in one swipe #1984
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.
@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.
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.
Activity
ovitrif commentedon Nov 20, 2026
@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:
[-]Move to Spark: move the whole balance in one swipe[/-][+]feat: move the whole balance to spark in one swipe[/+]ovitrif commentedon Nov 20, 2026
Changing my earlier call: this issue goes in 3.2.0, with synonymdev/bitkit-ios#1379 as its iOS twin.
Scope, on both apps:
It lands in a new PR per app, stacked on #1967 and synonymdev/bitkit-ios#1373.
ovitrif commentedon Nov 20, 2026
@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.
jvsena42 commentedon Nov 20, 2026
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".
hasRestchecks 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.