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

Reserve holder may do refund immediately by issuing and redeeming a note #7

Open
kushti opened this issue Jan 18, 2025 · 0 comments · May be fixed by #8
Open

Reserve holder may do refund immediately by issuing and redeeming a note #7

kushti opened this issue Jan 18, 2025 · 0 comments · May be fixed by #8
Assignees

Comments

@kushti
Copy link
Collaborator

kushti commented Jan 18, 2025

It is possible for a reserve holder to refund immediately by issuing a note and redeeming it.

After considering multiple options, I think the best one would be to introduce note counter token stored in reserve box, and mint action in reserve contract which is instantiating a note with note counter tokens. Approximate creation height to be written into a note box as well. This root note creation height is then passed through spending chains. Redemption is possible after refund period passed (since note creation).

And then we can relax note spending conditions, by not checking spendings history related conditions, thus allowing for offchain progression there.

@kushti kushti self-assigned this Jan 20, 2025
@kushti kushti linked a pull request Jan 21, 2025 that will close this issue
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 a pull request may close this issue.

1 participant