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

Redeem all unredeemed tickets #6149

Open
ausias-armesto opened this issue Apr 4, 2024 · 2 comments
Open

Redeem all unredeemed tickets #6149

ausias-armesto opened this issue Apr 4, 2024 · 2 comments
Labels
feature New feature or request status:icebox

Comments

@ausias-armesto
Copy link
Contributor

Is your feature related to a problem?

As a user/investor, I would like to easily be able to redeem all the unredeemed tickets and collect everything, so all tickets first get aggregated and then redeemed. If a user has many input channels opened, or has too many nodes, it's complicated to perform that operation. Imagine that a user wants to collect some kind of statistics per week, month.

Describe the feature you'd like

A new API call which would essentially go through all input channels and aggregate tickets and redeem those tickets. So in one single api call, all the unredeemed tickets scale down to 0.

Describe alternatives you've considered

Although is posible to implement outside of the hoprd, like in hoprd-admin, it would be nice to have it in hoprd, as that can be automated. Specially interesting if you are an investor running multiple nodes.

Additional context

Ideally this API call would be invoked by hopr-admin in the tickets page as button Redeem all

@ausias-armesto ausias-armesto added feature New feature or request new issue A reviewer has to check this issue and apply all necessary labels labels Apr 4, 2024
@mjadach-iv
Copy link
Contributor

mjadach-iv commented Apr 4, 2024

We had a function like that before. But there were some reasons for not providing it in the Node Admin.
Maybe we should bring it back?

@NumberFour8
Copy link
Contributor

Per discussion, this is a feature request to provide the following:

  • single API call that goes over all channels in parallel and:
  • requests aggregation and waits until it is aggregated
  • requests ticket redemption of the aggregated ticket in each channel.

This has to somehow take into account if user has AutoRedeem strategy enabled, so that it does not compete with the strategy once a ticket gets aggregated.

@tolbrino tolbrino added status:icebox and removed new issue A reviewer has to check this issue and apply all necessary labels status:product-backlog labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request status:icebox
Projects
None yet
Development

No branches or pull requests

4 participants