Skip to content
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

Allowance with LNURL-withdraw advanced links #24

Open
motorina0 opened this issue Jun 17, 2021 · 1 comment
Open

Allowance with LNURL-withdraw advanced links #24

motorina0 opened this issue Jun 17, 2021 · 1 comment
Assignees

Comments

@motorina0
Copy link
Collaborator

motorina0 commented Jun 17, 2021

Problem

  • the user might spend more than it wants on a particular site
  • there is no way for the user to set a limit on how much and how often it spends
  • the user is prompted to confirm each invoice, even if it trusts the particular site

Solution

  • use LNURL-w to configure "allowances" for sites
  • if an allowance is configured for a site then the extension "pulls" money from that allowance WITHOUT asking the user
    • only a progress dialog is shown
  • if one of the LNURL-w limitations is met (count, min/max values, delay) it shows an error message
    • the user can take action and update the limitations (eg: max withdraw amount)

Configure LNURL-withdraw

  • the title of the withdraw link must be the exact name of the domain including the protocol (https://htlc.me)
    • trailing slash is NOK: https://htlc.me/ <-- bad
  • image

Pay a BOLT 11 invoice

  • click on a bolt11 link or "cut it out" from an image
    • no confirmation required, progress dialog shown
  • LNURL-pay not supported at the moment
  • image

Check Transactions List

  • the memo comes from the client invoice itself
  • image

That's it!

See negative cases below

@motorina0 motorina0 self-assigned this Jun 17, 2021
motorina0 added a commit that referenced this issue Jun 17, 2021
motorina0 added a commit that referenced this issue Jun 18, 2021
motorina0 added a commit that referenced this issue Jun 18, 2021
motorina0 added a commit that referenced this issue Jun 18, 2021
@motorina0
Copy link
Collaborator Author

motorina0 commented Jun 18, 2021

Limits

  • check that the limits set by the user are enforced

Withdraw is spent

  • image

Wait X seconds

  • image

Amount invoice is too high

  • image

Amount invoice is too low

  • lnurl-w min value not taken into consideration, LNbits bug?

motorina0 added a commit that referenced this issue Jun 18, 2021
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

No branches or pull requests

1 participant