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

🍏 Re-initialize Expired Subscriptions #31

Open
alecchendev opened this issue Mar 17, 2022 · 1 comment
Open

🍏 Re-initialize Expired Subscriptions #31

alecchendev opened this issue Mar 17, 2022 · 1 comment
Assignees
Labels
atomic Single task, well defined enhancement New feature or request

Comments

@alecchendev
Copy link
Member

When subscriptions expire, the rent from the deposit vault and metadata accounts are withdrawn, so if someone wants to use that subscription again, they need to reinitialize it. To differentiate subscriptions of the same type (i.e. payee, amount, duration) we store a count in a separate account and increment it every time we create a new subscription. If we reinitialize a subscription, we don't want to increment.

2 things to do

  1. Have count be passed into the instruction as an argument
  2. If count != latest count, don't increment
@alecchendev alecchendev added good first issue Good for newcomers atomic Single task, well defined and removed good first issue Good for newcomers labels Mar 17, 2022
@alecchendev alecchendev added the enhancement New feature or request label Mar 24, 2022
@kevinz420 kevinz420 self-assigned this Apr 8, 2022
@alecchendev
Copy link
Member Author

New development: just modify the program now to store count so you don't have to pass it in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
atomic Single task, well defined enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants