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

Automatically set a budget when configuring connection #60

Open
rolznz opened this issue Oct 9, 2023 · 1 comment
Open

Automatically set a budget when configuring connection #60

rolznz opened this issue Oct 9, 2023 · 1 comment
Labels

Comments

@rolznz
Copy link
Contributor

rolznz commented Oct 9, 2023

Based on the interval a user picks, pass budget info to NWC when creating the connection. That way, the user does not need to set it up. Use the delay in milliseconds to figure out which interval makes sense (daily, weekly, monthly, yearly) and set the correct amount of sats to be exactly needed.

Also, make it impossible to create subscriptions with an interval more than 1 year (there is no point in this).

The change needs to be made here: https://github.com/getAlby/ZapPlanner/blob/main/app/confirm/components/ConfirmSubscriptionForm.tsx#L60

@aniketmdinde
Copy link

I am contributing to this issue.. Please accept it under hacktoberfest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants