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

contribution does not go thru in some cases - follow up to 3707, 4090 #5230

Closed
LaurenWags opened this issue Jul 12, 2019 · 6 comments
Closed

Comments

@LaurenWags
Copy link
Member

LaurenWags commented Jul 12, 2019

Description

Follow up to #4090, #3707 and brave/brave-core#2208

In the issues described above, the PR made it so that if your wallet balance covers the contribution/recurring tips for verified sites, you won't get the Insufficient funds message. However, in this case your contribution will not go through. Per the issues above, especially #3707, I was expecting the AC and recurring tips to go thru and be deducted from my balance accordingly, however, this did not happen.

Steps to Reproduce

  1. Start Brave clean profile with --rewards=reconcile-interval=20,staging=true (or some other value less than 4320 [3 days])
  2. Visit a mix of verified and unverified sites. Add at least two recurring monthly tips - one for verified site and one for unverified site.
  3. Accept grant (at present time 30 BAT)
  4. Go to Rewards page and set AC budget to 50 BAT
  5. Quit browser and restart to reinitiate timer
  6. Wait a few moments and make sure that you don't see 'Insufficient Funds' notification
  7. Make sure that your wallet balance (mine is 30 BAT) will cover the contribution to verified sites in AC and recurring tips.
  8. Wait until contribution happens.

Actual result:

Contribution does not go thru.
In my case I had a wallet balance of 30 BAT and a monthly budget of 50 BAT.
My amount for auto-contribution to verified sites is 22.5 BAT.
My amount for recurring monthly tips to verified sites is 1 BAT.
In total, they are less than 30 BAT (22.5 + 1 = 23.5)

Screen Shot 2019-07-12 at 12 21 56 pm

Screen Shot 2019-07-12 at 12 22 57 pm

However, my contribution did not go thru:
pr2208

Expected result:

My AC and recurring tip contributions to verified pubs should have been deducted from my wallet balance and displayed in my transactions accordingly, leaving me with 6.5 BAT remaining in my wallet (30-22.5-1 = 6.5) and 32.5 BAT in pending contributions. (pending contribution number comes from 27.5 BAT for unverified publishers in AC and 5 BAT for monthly recurring tip to unverified publisher)

Reproduces how often:

easily

Brave version (brave://version info)

Brave 0.67.108 Chromium: 75.0.3770.100 (Official Build) beta(64-bit)
Revision cd0b15c8b6a4e70c44e27f35c37a4029bad3e3b0-refs/branch-heads/3770@{#1033}
OS Mac OS X

Version/Channel Information:

  • Can you reproduce this issue with the current release? n/a
  • Can you reproduce this issue with the beta channel? yes
  • Can you reproduce this issue with the dev channel? unsure
  • Can you reproduce this issue with the nightly channel? unsure

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? n/a
  • Does the issue resolve itself when disabling Brave Rewards? n/a
  • Is the issue reproducible on the latest version of Chrome? n/a

Miscellaneous Information:

cc @brave/legacy_qa @NejcZdovc @mandar-brave @alexwykoff

@LaurenWags
Copy link
Member Author

note - I did confirm that a "normal" contribution - that is, when monthly budget and total of all recurring tips is less than wallet balance - goes thru as expected.
contrib

@NejcZdovc
Copy link
Contributor

@LaurenWags this is not a bug, we still didn't decide what to do with it and the current logic is correct one

@NejcZdovc NejcZdovc removed the bug label Jul 12, 2019
@LaurenWags
Copy link
Member Author

so we removed the informative notification - the one telling you why your contribution wouldn't go thru? that seems like an odd choice.

@NejcZdovc
Copy link
Contributor

@LaurenWags no, we didn't remove this notification. Insufficient notification checks for an actual contribution and it doesn't just do AC amount + recurring. It actually checks for verified in AC and verified in recurring list and compare it to your balance

@NejcZdovc
Copy link
Contributor

@LaurenWags I think this is not a problem anymore as we completely changed how monthly contribution works. Can we close it?

@NejcZdovc NejcZdovc added the needs-discussion Although the issue is clear, we haven't yet reached a decision about the right solution. label Nov 18, 2019
@LaurenWags
Copy link
Member Author

@NejcZdovc yes, I think we can close this one due to the re-working of AC/recurring tips.

@LaurenWags LaurenWags added closed/wontfix and removed QA/Test-Plan-Specified QA/Yes feature/rewards needs-discussion Although the issue is clear, we haven't yet reached a decision about the right solution. release-notes/include labels Nov 18, 2019
@LaurenWags LaurenWags added this to the Dupe / Invalid / Not actionable milestone Nov 18, 2019
@bbondy bbondy removed this from the Dupe / Invalid / Not actionable milestone May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants