-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add lnurl withdrawal #158
Conversation
@im-adithya nice! what did you use for generating the two different types of vouchers? |
I'm using the LNURLw plugin from LNBits here (ran an instance for 21 sats, funded the wallet with NWC and installed the plugin and followed this video (make sure you install v0.1.13 otherwise it won't work)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, just did some first testing. 💪
- Min & Max amounts
If it's a dynamic amount lnurl-w (min != max) the UX currently is a bit flawed. I don't know what the min / max values are and the button is just disabled.
What if we do the on "Confirm" and display a toast with the min / max values instead? Since this also needs to be applied to the lnurl-pay flow I guess we can also do it as a follow-up:
- Linking
You already added a todo, please make sure this works as it's quite popular for different services (such as lightsats) to use the lightning:LNURLW link that just takes you to the wallet
Addressed ✅
For now I added code to throw error if amount is < min or > max, confirm button won't be disabled |
}, | ||
|
||
// LNURL-withdraw | ||
"lightning:lnurlw123": { url: "lightning:lnurlw123", path: "/withdraw" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice, thanks @reneaaron 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Fixes #6
Description
Adds LNURL Withdraw
Screenshots