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

Auto Contribute does not work if there is more than 1 verified publisher in AC list #10058

Closed
LaurenWags opened this issue Jun 2, 2020 · 4 comments · Fixed by brave/brave-core#5728

Comments

@LaurenWags
Copy link
Member

Description

If you have more than 1 verified publisher in AC list, auto contribute does not occur properly. Experienced when doing AC w/ KYC'd uphold wallet, but should check user funded (anon) and VG funded wallets also

Steps to Reproduce

  1. Clean profile w/ flags like /Applications/Brave\ Browser\ Dev.app/Contents/MacOS/Brave\ Browser\ Dev --enable-logging=stderr --vmodule=*rewards*=6 --log-level=2 --rewards=staging=true,reconcile-interval=3 --brave-ads-staging
  2. Enable Rewards
  3. Connect KYC'd uphold account
  4. Add at least 2 verified publishers to AC list (I used ddg and laurenwags.github.io)
  5. Wait for AC to occur.

** When retesting, check w/ VG BAT and user funded (restored anon wallet) for step 3)

Actual result:

Balance decreases by monthly budget but AC does not get listed in UI/monthly summary. Logs show it is retrying.

Expected result:

AC should work

Reproduces how often:

easily

Brave version (brave://version info)

Brave 1.10.80 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
Revision 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS macOS Version 10.14.6 (Build 18G3020)

Version/Channel Information:

  • Can you reproduce this issue with the current release? no
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the dev channel? yes
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

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

Miscellaneous Information:

cc @NejcZdovc @rebron @brave/legacy_qa

@GeetaSarvadnya
Copy link

The issue is reproduced on


Brave | 1.10.80 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
-- | --
Revision | 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS | Windows 10 OS Version 1803 (Build 17134.1006)

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jun 2, 2020

@NejcZdovc @LaurenWags Here are my observations on the issue.

  1. Launched brave using staging flag and reconcile interval of 4 mins
  2. Claimed UGP grants of 20 BAT
  3. Added DDG and laurenwags.github.io pubs to AC table
  4. waited for 4 mins
  5. AC did not happen
  6. Wallet balance reduced to 14.5 BAT at 6th min
  7. Wallet balance reduced to 10 BAT at 8th min
  8. Received AC notification at 9th min and AC recorded in summary and monthly statement

@LaurenWags
Copy link
Member Author

@GeetaSarvadnya ok so looks like if you fund your wallet via VG (like UGP grant) then this works. we should double check that's still the case after this is fixed. We will also want to confirm if user funded anon cards work as well for AC.

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jun 10, 2020

Verification passed on


Brave | 1.10.87 Chromium: 83.0.4103.61 (Official Build) (64-bit)
-- | --
Revision | 94f915a8d7c408b09cc7352161ad592299f384d2-refs/branch-heads/4103@{#561}
OS | Windows 10 OS Version 1803 (Build 17134.1006)

Scenario 1:

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image
  • Confirmed AC listed in database:
    image

Scenario 2 (wallet funded via VG like UGP grant):

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image

  • Confirmed AC listed in the database:
    image

Scenario 3 (wallet funded via restored anon wallet):

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image

  • Confirmed AC listed in the database:
    image

Scenario 4 (Wallet funded via Ad grants and connect the wallet to KYC'd uphold account)

  • Enable rewards

  • Restore Ad grants and claim ad grants

  • Connect to KYC'd uphold account

  • Add multiple verified pubs to AC table

  • Set recurring tips

  • Trigger AC

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image
    image

  • Confirmed AC listed in the database:
    image

Scenario 5 ( Wallet funded via ad grants)

  • Enable rewards

  • Restore Ad grants

  • Claim ad grants

  • Add multiple verified pubs to AC table

  • Set multiple recurring tips

  • Send a one-time tip to multiple pubs

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image
    image

image
image

  • Confirmed AC listed in the database:
    image

Scenario 6 (Wallet funded via restore wallet and connect wallet to non verified uphold account)

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image
    image

  • Confirmed AC listed in the database:
    image

Scenario 7 (Wallet is funded via UGP grants and Ad grants)

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image
    image
    image

  • Confirmed AC listed in the database:

image

Scenario 8 ( wallet is funded via UGP+KYC'd uphold wallet)

  • Confirmed AC is listed in brave://rewards and on Monthly Summary:
    image
    image
    image

  • Confirmed AC listed in the database:
    image


Verified passed with below version and staging env:

Brave | 1.10.88 Chromium: 83.0.4103.97 (Official Build) (64-bit)
-- | --
Revision | 326d148b9655369b86498d9ecca39f63dd2bdd2d-refs/branch-heads/4103@{#657}
OS | macOS Version 10.14.6 (Build 18G3020)

Scenario 1 (wallet funded via KYC'd Uphold wallet)

  • Verified STR from description
  • Confirmed AC was completed and listed in UI/DB

Scenario 2 (wallet funded via VG like UGP grant):

  1. Clean profile w/ flags
  2. Enable Rewards
  3. Claim UGP.
  4. Add at least 2 verified publishers to AC list
  5. Wait for AC to occur.
  6. Confirmed AC was completed and listed in UI/DB

Scenario 3 (wallet funded via restored anon wallet):

  1. Clean profile w/ flags
  2. Enable Rewards
  3. Restore wallet w/ previously funded user BAT
  4. Add at least 2 verified publishers to AC list
  5. Wait for AC to occur.
  6. Confirmed AC was completed and listed in UI/DB

Verification passed on:

Brave 1.10.90 Chromium: 83.0.4103.97 (Official Build) (64-bit)
Revision 326d148b9655369b86498d9ecca39f63dd2bdd2d-refs/branch-heads/4103@{# 657}
OS Linux

Scenario 1 (wallet funded via VG like UGP grant):

  • Clean profile on 1.10.90
  • Enable Rewards on staging
  • Claim UGP.
  • Add at least 2 verified publishers to AC list
  • Trigger AC
  • Confirmed AC was completed and listed in UI
    image
  • Confirmed AC was completed and listed in DB
    image

Scenario 2 (wallet funded via restored anon wallet):

  • Clean profile on 1.10.90
  • Enable Rewards on staging
  • Restore wallet w/ previously funded user BAT
  • Add at least 2 verified publishers to AC list
  • Trigger AC
  • Confirmed AC was completed and listed in UI
  • Confirmed AC was completed and listed in DB

Scenario 3 (wallet funded via KYC'd Uphold wallet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment