MetaMask / MetaMask/metamask-extension
[Bug]: Perp position can not be closed or edited
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
Given a displayed open position for 0x393A8D3f7710047324D369a7cB368C0570C335b8, when trying to remove SL/TP or closing, an error is displayed, and checking the background, position does not exist.
Checking mobile, this position is not displayed
### Expected behavior
Both platform should display the same information
### Screenshots/Recordings
### Steps to reproduce
I do not know how the position became opened on the extension but not on mobile (which seems to be the reality)
### Error messages or log output
```shell
```
### Where was this bug found?
Internal release testing
### Version
13.41.0
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
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 issue in extension version 13.41.0 on Chrome and macOS using the supplied account address, then compare the displayed position with the mobile view and capture the background error. The screenshot and the extension/mobile discrepancy are the main evidence; done means the position state is consistent and removing SL/TP or closing it no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100