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

ERC-20 Token balance #505

Open
adammake opened this issue Feb 3, 2023 · 0 comments
Open

ERC-20 Token balance #505

adammake opened this issue Feb 3, 2023 · 0 comments
Assignees

Comments

@adammake
Copy link
Member

adammake commented Feb 3, 2023

Background

The Casper Blockchain supports many cryptocurrencies, both fungible and nonfungible, in addition to its native CSPR token. Developers create tokens using popular standards such as ERC-20 (fungible), CEP-78 (non-fungible) and CEP-47 (non-fungible). Standards (basically a common framework for writing the token code) are popular because they make it easy for apps like Casper Wallet to identify and interact with those tokens on the network.

Casper Wallet users would benefit from being able to view balances for these different tokens within their Casper Wallet accounts.

Design
https://www.figma.com/file/mBlqs6l6I2d3ihX80Mswm4/Casper-Wallet-%E2%80%93-Extension?node-id=4705%3A7274&t=VQw7Ky4fglydsnSV-1

Token list

As a Casper Wallet user, I can see the amount of CSPR and ERC-20 tokens owned by my account.

CSPR tokens are always listed at the top of the list.

The list is scrollable if it expands beyond the length of the screen.

The Home screen will be updated to include a list of token assets held within the account.

Each row represents a different currency and includes:

  • The token logo (e.g. , )
  • The token balance held by that account (e.g. 200 CSPR, 45 SWPR, etc )
  • The fiat equivalent of that balance (e.g. $53.25)

The total value of all tokens in the account will be displayed above the token list, in fiat value.

Token detail page
Each token in the list is clickable (indicated by a chevron)
Clicking on a token in the token list directs the user to a token detail page which includes at the top of the screen:

  • The token logo
  • The token balance held by that account
  • The fiat equivalent of that balance

Additionally, the token detail page will feature:

Out of scope
Eventually, the lower portion of the token detail page will feature a transaction history for that token, as well as the ability to swap and transfer.

Assumptions
Users do not need to manually add or import ERC-20 tokens they own in their wallet. All owned tokens will appear automatically.

@adammake adammake self-assigned this Feb 3, 2023
@adammake adammake changed the title ERC-20/NFT Token Support ERC-20 Token Support Mar 9, 2023
@piotrwitek piotrwitek changed the title ERC-20 Token Support ERC-20 Token balance Apr 13, 2023
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

1 participant