Skip to content

Fix LNURL-withdraw redeem functionality - #431

Merged
Nodirbek75 merged 6 commits into
mainfrom
fix/lnurl-withdraw
Jul 2, 2025
Merged

Nodirbek75 merged 6 commits into
mainfrom
fix/lnurl-withdraw

Conversation

@Nodirbek75

Copy link
Copy Markdown
Contributor

No description provided.

@Nodirbek75
Nodirbek75 requested a review from islandbitcoin June 27, 2025 13:57
@Nodirbek75 Nodirbek75 self-assigned this Jun 27, 2025
@Nodirbek75 Nodirbek75 linked an issue Jun 27, 2025 that may be closed by this pull request
@islandbitcoin

Copy link
Copy Markdown
Contributor

We still seem to have an issue, when trying to complete the redeem, I'm hitting a hidden fee issue. see video

screen-20250627-163556.mp4

@Nodirbek75

Copy link
Copy Markdown
Contributor Author

We still seem to have an issue, when trying to complete the redeem, I'm hitting a hidden fee issue. see video

screen-20250627-163556.mp4

When creating an invoice via IBEX to redeem an LNURL-withdraw (e.g. 16 sats), the IBEX fee is added, making the total 17 sats — which exceeds the LNURL-withdraw’s maximum allowed amount.

I see two possible solutions:

  1. Show a clear error message when the final amount exceeds the LNURL-w bounds.
  2. Create an initial IBEX invoice, parse the response to determine the fee, subtract the fee from the user-entered amount, and generate a second invoice with the adjusted value (this requires multiple API calls).

@islandbitcoin islandbitcoin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] - Cannot claim LNURL-withdraw QR code

2 participants