Repository navigation
chore: remove the Boltz savings swap - #1562
Conversation
bitkit-core 0.8.0-rc16 drops its Boltz module. Transfer to savings now only closes channels.
[Medium impact] The changes affect savings transfers and the developer swap tools, but not other wallet workflows. Preserve recovery for existing unfinished swaps before merging. SummaryRemoves the Boltz savings-swap feature while leaving
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Confirm transfer to Savings] --> B{Spark selected?}
B -->|Yes| C[Recheck withdrawal fee]
C --> D[Commit selected funds]
B -->|No| D
D --> E[Withdraw selected Spark balance]
E --> F[Close selected channels]
F --> G{Result}
G --> H[Success]
G --> I[Spark failure]
G --> J[Retry failed channel closes]
Reviews (1) · Last reviewed commit: "chore: remove the Boltz savings swap" · Reviewed by Greptile |
Comments Outside DiffThese findings could not be posted inline.
|
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Removes the Boltz savings swap (quote, slider, swap execution, updates stream, wipe step, Dev Settings entry and Swaps screens), leaving transfer to savings on the channel-close path it already took with the toggle off. Reviewed f50eda7, full tier, statically: iOS does not build on Linux, so CI is the gate.
What I checked, and 5 candidates I ruled out
Read in full: the diff of TransferViewModel.swift, WalletViewModel.swift, SavingsConfirmView.swift, SavingsProgressView.swift, DevSettingsView.swift, MainNavView.swift, NavigationViewModel.swift, AppScene.swift, Env.swift, the test changes
Dangling references at the head: none for BoltzService, BoltzSwap, BoltzPairInfo, SwapUpdatesStreaming, SwapsListView, AmountSlider, SavingsTransferMode, SavingsSwapState; the project uses synchronized groups, so the deleted files need no project.pbxproj edit
CI: SwiftFormat and translation validate green; Run Tests, Run Integration Tests and build-local still running at the time of review
Ruled out
- A swap in flight when a user upgrades: the reverse swap's preimage stays on the device, so without the claim Boltz cannot settle the hold invoice; the lockup times out and the HTLC fails back. Funds are held until the timeout, not lost, and only a mainnet build with the Dev Settings toggle on could have one.
- Strings still in use: none of the 7 removed keys is referenced from Swift;
lightning__savings_confirm__amount_too_low, still used bySavingsConfirmView, is kept. - Wipe ordering:
stopForWipenow goes straight tostopNodeLocked(clearEventCallback: true), which keeps its node-still-running guard; the swap-stream timeout it drops guarded only the stream. SavingsProgressViewlosing thewalletenvironment object:runChannelCloseand the Spark failure path do not read it.- Lost coverage of the Spark fee pin: the "close instead" tests are renamed onto the plain commit (
testCommitWaitsForTheSparkFee,testCommitWithdrawsSparkAtTheFeeShown...) with the same assertions; the payment-failure message cases moved toPaymentFailureMessageTests.swiftandPaymentFailureReason.userMessageis still used bySendFailure.
Merge confidence: 4/5, no findings, but the unit and integration jobs had not finished on f50eda7 when this was written.
Reviewer model: claude-opus-5-5
Reasoning effort: not exposed (the review runner does not report it)
|
Not changing
|
There was a problem hiding this comment.
Verdict: ✅ Approve
Review: full diff, 33 files.
Findings: None.
QA for f50eda7:
Tested on an iPhone 17 Pro simulator, iOS 27.0, using a fresh Debug build and local regtest funds.
Transfer a channel balance to savings ✅ Confirming and swiping closes the channel and shows success.
Manual case 1: transferred a 500,000 sat channel balance through confirmation and swipe. The app showed “Funds moved to savings”; the peer's channel list independently confirmed that no open channel remained.
transfer-savings-2x.2x.mp4
Dev Settings has no Swaps section ✅ No swap section, navigation row or toggle remains.
Manual case 2: scrolled Dev Settings from top to bottom. There was no Swaps section, Swaps row or Enable Savings Swap toggle.
dev-settings-2x.2x.mp4
Both requested manual cases were driven. Spark withdrawals, wallet stop/wipe and the payment-message test changes were reviewed in code; no device case exercised those paths.
Pair PR: synonymdev/bitkit-android#2214 matches the removal and retains the same channel-close and Spark-withdrawal behavior.
Related report: earlier static review.
Reviewed by gpt-6.1-sol-high
|
@coreyphillips Merged, as it was approved and green. |
Closes #1561
Twin: synonymdev/bitkit-android#2214
Unblocks the bitkit-core
0.8.0-rc16bump (synonymdev/bitkit-core#230), which drops the Boltz API. bitkit-core stays on rc15 here.Description
BoltzService, the swap path inTransferViewModel,SavingsConfirmViewandSavingsProgressView, the swap updates stream inWalletViewModeland its wipe step,SwapsListView, the Dev Settings toggle andEnv.isSwapSupported.Localizable.strings.Out of Scope
boltz.dbor the stalesavingsSwapEnableddefault. Nothing reads them.Design
N/A: no user-facing change. The swap was a mainnet Dev Settings option, and transfer to savings closes the channel as it did with the toggle off.
Preview
N/A
QA Notes
Setup
A debug build of this branch with a channel open.
Journeys
N/A: no journey changes.
Manual Tests
Automated Checks
SavingsSwapTests.swift,FakeSwapUpdatesStream.swiftand the swap stream cases inWalletViewModelWipeTests.swiftPaymentFailureMessageTests.swiftEvidence
f50eda7, iPhone 17 simulator: SwiftFormat lint andvalidate-translations.jspass; unit tests pass (4,814 run, 0 failures).Gaps