AlphaWallet / AlphaWallet/alpha-wallet-android

Fix / Improve "Add Custom Token"

Open
#2,877 0 comments 0 reactions 1 assignee Claimed by @keval-finimble View on GitHub
Dominant language
Java
Stars
646
Forks
579
PR merge metrics
No merged PRs in 30d

Description

Two issues for this dialog:

1. Reproduce: Add first token eg USDT 0xdAC17F958D2ee523a2206206994597C13D831ec7 and scan, you should see USDT token. Now paste USDC from Polygon in: 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174

You should see:

![photo_6231229417821157136_y](https://user-images.githubusercontent.com/12689544/196499494-490c2bea-d5c6-44da-96cc-562535e8d0cd.jpg)

Notice how the original USDT result didn't get cleared.

2. After 'save' is clicked: If the discovered tokens are on mainnet, and we are currently in testnet mode, ask the user to swap using the standard testnet swap dialog. If the user selects a token that is on an unselected chain, on save being clicked ask user if they want to enable all unselected chains.

If mainnet is selected and user selects multiple tokens on testnet and mainnet, stay on mainnet and vice-versa.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.