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

Add website to exception list when updating the rate of pay #146

Open
3 tasks
raducristianpopa opened this issue Mar 7, 2024 · 0 comments
Open
3 tasks

Comments

@raducristianpopa
Copy link
Member

Context

Users have the ability to change the rate of pay for each website.

Todos

  • Add debounce for the rate of pay slider;
  • After changing the rate of pay, send the updated amount to the background script, convert the amount to the asset scale of the wallet (represented as a string, eg: asset code USD, asset scale 2, amount 0.01 -> amount * 10 ** scale) and add the website in the exception list using the below format;
  • If the website is already in the exception list, only update the amount (after converting it as well);

Format

{
  "exceptionList": {
    "https://example.com": {
      "amount": "60", 
      "interval": "3600000" // in ms
    }
  }
}

The interval property is for future proofing. For now, we will only store the default value for the interval, 1 hour in milliseconds.

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

No branches or pull requests

1 participant