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

Handle scenarios when budget exceeded #144

Open
1 of 4 tasks
raducristianpopa opened this issue Mar 7, 2024 · 2 comments
Open
1 of 4 tasks

Handle scenarios when budget exceeded #144

raducristianpopa opened this issue Mar 7, 2024 · 2 comments
Assignees

Comments

@raducristianpopa
Copy link
Member

raducristianpopa commented Mar 7, 2024

User has a one time amount

If we reached the grant limit - we cannot create outgoing payments anymore, we display a screen in the popup (inactive icon + orange dot - user interaction) where the user will have the options to:

  • Set a new one time amount: we create a new grant for the amount that the user is going to specify and revoke the previous grant
  • Set a recurring amount: we create a new grant for the amount that the user is going to specify with a recurring interval (30d) and revoke the previous grant
    When the user runs out of funds we need to update the extension state (new property in the storage - out_of_funds

User has a recurring amount

If we reached the grant limit, we display the same screen as in the one time amount scenario (same options + inactive icon - orange dot)

  • If the user sets a new recurring amount, we revoke the previous grant and create a new one with the specified amount
  • If the user wants to set a one time amount, we need to keep the previous grant, create a new one for the specified amount and use the one time grant for all future payments until the recurring amount is available again
  • When the recurring amount is available again we need to sum up the remaining amounts and we use recurring one until it runs out of funds again - no need to show the out_of_funds screen if we still have funds in the one time amount grant.

TODO:

@tselit tselit changed the title [PLACEHOLDER] Handle all budget spent scenarios [PLACEHOLDER] Handle scenarios when budget exceeded Apr 24, 2024
@tselit tselit added this to the WM Backlog milestone Jun 20, 2024
@tselit tselit changed the title [PLACEHOLDER] Handle scenarios when budget exceeded [TO REFINE] Handle scenarios when budget exceeded Jun 21, 2024
@tselit tselit modified the milestones: WM Backlog, WM extension beta Jun 21, 2024
@sidvishnoi sidvishnoi changed the title [TO REFINE] Handle scenarios when budget exceeded Handle scenarios when budget exceeded Jun 27, 2024
@tselit
Copy link

tselit commented Jul 2, 2024

Blocked by #377 and the OP depedency (@tselit to update with outlook for designs after chatting to Madalina)

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

No branches or pull requests

4 participants