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

Eth Mainnet shows 2 Dai by default If the user is not logged in to MetaMask or Nifty Wallet #154

Closed
SiddigZeidan opened this issue Nov 28, 2018 · 2 comments
Assignees

Comments

@SiddigZeidan
Copy link

Issue
Affected only on https://dai-bridge.poa.network/ not http://bridge.poa.net

ETH Mainnet shows my balance to be 2 Dai, however I am not logged in. It should show 0 Dai.
image

@akolotov
Copy link
Collaborator

I saw similar issue during testing with other networks. Could it relate that some value from the browser storage are used?

@patitonar
Copy link

The issue is produced by making the call to get the token balance of the user even if user is not logged in, so we need to fix this. In this case, since we don't have the user account, it's making the call with an empty address. It turns out that 0x0000000000000000000000000000000000000000 address has a balance of 2 Dai.

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

5 participants