Skip to content

feat: Finalize Stuck Swap-to-Lightning Payments#169

Open
a1denvalu3 wants to merge 1 commit intomainfrom
fix/swap-to-lightning-finalization
Open

feat: Finalize Stuck Swap-to-Lightning Payments#169
a1denvalu3 wants to merge 1 commit intomainfrom
fix/swap-to-lightning-finalization

Conversation

@a1denvalu3
Copy link
Collaborator

This PR adds functionality to retry and finalize 'stuck' Swap-to-Lightning-mint transactions directly from the transaction history.

Changes:

  1. PaymentHistoryEntry: Added getSwapLightningQuoteId() to retrieve the quote ID.
  2. SwapToLightningMintManager: Implemented tryFinalizePendingSwap which checks the quote status against the mint and mints the tokens if the invoice is paid.
  3. PaymentsHistoryActivity: Updated to trigger the finalization check when a pending swap entry is clicked.
  4. UI: Added a progress dialog string resource.

This ensures users can recover funds if the initial swap flow was interrupted after payment.

This PR enables users to finalize 'stuck' Swap-to-Lightning-mint payments directly from the transaction history. It adds a check for the Lightning quote status and mints the tokens if paid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant