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

All asset deposit addresses should be shown in the Binance Widget #9250

Closed
ryanml opened this issue Apr 16, 2020 · 4 comments · Fixed by brave/brave-core#5267
Closed

All asset deposit addresses should be shown in the Binance Widget #9250

ryanml opened this issue Apr 16, 2020 · 4 comments · Fixed by brave/brave-core#5267

Comments

@ryanml
Copy link
Contributor

ryanml commented Apr 16, 2020

Description

With current widget behavior, only deposit addresses for assets which users have holdings for are available. Binance recently updated their Oauth API to take the default network as a parameter for deposit info, allowing all addresses to be fetched. Networks are provided here:

https://www.binance.com/gateway-api/v1/public/capital/getNetworkCoinAll

Steps to Reproduce

  1. Connect the Binance widget
  2. Go to "Deposit"
  3. Click in to the detail view of an asset which you have no holdings for.

Actual result:

image (13)

Expected result:

An ETH deposit address to be shown, along with a QR code for the address.

Reproduces how often:

Brave version (brave://version info)

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the dev channel?
  • 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:

@kjozwiak
Copy link
Member

kjozwiak commented May 3, 2020

@ryanml I don't think this was resolved via brave/brave-core#5267. I can still reproduce it on 1.10.24 CR: 81.0.4044.129 which includes the above PR. This is what I'm seeing now:

Screen Shot 2020-05-03 at 12 41 39 PM

Rather than displaying Address Not Available as we do in 1.8.86 CR: 81.0.4044.129 which is the current release, I see Info Not Available being displayed. I double checked via Binance to make sure that I have a generated address so I'm assuming I should see it being listed.

Mind taking a look? Let me know if there's something that I might be missing.

@kjozwiak
Copy link
Member

kjozwiak commented May 3, 2020

@ryanml @bbondy so looks like the above happens when you have no assets in Binance. If a new user creates an account and starts using the widget, they'll see Info Not Available. However, once you transfer a single asset in your account, the deposit info will start appearing for all the assets. Example:

  • Create a brand new Binance account and connect it to Brave via the NTP widget
  • Even though there's address generated under Binance, they won't appear in the Deposit section of the NTP widget
  • Send ~10-15 BAT to your Binance BAT card
  • Once you've received the funds, you'll start noticing the addresses being listed under the deposit section of the NTP widget.

Is this considered a bug or a limitation that Binance imposes? Created #9600.

@kjozwiak
Copy link
Member

kjozwiak commented May 4, 2020

Verification PASSED on macOS 10.15.4 x64 Catalina using the following build:

Brave | 1.8.89 Chromium: 81.0.4044.129 (Official Build) (64-bit)
-- | --
Revision | 3d71af9f5704a40b85806f4d08925db24605ba25-refs/branch-heads/4044@{#979}
OS | macOS Version 10.15.4 (Build 19E287)
  • ensured that the cases outlined under both All asset deposit addresses should be shown in the Binance Widget #9250 (comment) & Showing all deposit addresses, memos in the Binance Widget. brave-core#5267 (comment) passed without any issues
  • ensured that the Rewards widget is the default widget on a clean install
  • ensured that the Address & QR Code are being displayed for all tokens
    • ensured Address & QR Code is being displayed for tokens with a balance
    • ensured Address & QR Code is being displayed for tokens without a balance
  • ensured that clicking on Copy correctly copies the tokens address
  • ensured that clicking on the QR Code displays the code without any issues
  • ensured that the Address & QR Code are being displayed for tokens without balances when upgrading from the following:
    • 1.8.86 CR: 81.0.4044.129 --> 1.8.89 CR: 81.0.4044.129
    • 1.10.19 CR: 81.0.4044.129 --> 1.10.24 CR: 81.0.4044.129

Ran into #9600 with an account without any deposits.

Address QR Code
Screen Shot 2020-05-04 at 12 56 41 AM Screen Shot 2020-05-04 at 12 56 46 AM

@srirambv
Copy link
Contributor

srirambv commented May 4, 2020

Verification passed on

Brave 1.8.89 Chromium: 81.0.4044.129 (Official Build) (64-bit)
Revision 3d71af9f5704a40b85806f4d08925db24605ba25-refs/branch-heads/4044@{# 979}
OS Windows 10 OS Version 1809 (Build 17763.1158)

Verification passed on

Brave 1.8.89 Chromium: 81.0.4044.129 (Official Build) (64-bit)
Revision 3d71af9f5704a40b85806f4d08925db24605ba25-refs/branch-heads/4044@{# 979}
OS Linux

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