MetaMask / MetaMask/metamask-mobile
[Bug]: Perps position displayed when clicking on balance in token details for ERC20 tokens - icon differs between iOS and Android
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
**Describe the bug**
For native tokens, the Perps position is displayed when clicking on the token details
For ERC20 tokens, the Perps position is displayed when clicking on `Your balance` in the token details.
The icon is larger on Android versus iOS
**Expected behavior**
Possibly not a bug and is expected behavior?
**Screenshots/Recordings**
https://github.com/user-attachments/assets/04ca01ba-dfd5-4707-bf9b-bec91cdbd383
**Steps to reproduce**
1. Click on native token
2. Notice Perps position in the token details
3. Click on ERC20 token
4. Notice Perps position is missing
5. Click on Your Balance
6. Notice Perps Trading
**Error messages or log output**
```shell
```
**Where was this bug found?**
Internal release testing
**Version**
7.66.0
**Build number**
7.66.0
**Build type**
None
**Device**
iPhone 15, Pixel 6 Pro
**Operating system**
iOS, Android
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the native-token and ERC20-token flows in token details on the iPhone 15 and Pixel 6 Pro, following the listed steps. Compare the Perps position visibility and icon size, then confirm the intended behavior before defining the fix and its completion criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100