MetaMask / MetaMask/metamask-extension
[Bug]: Incorrect value of DeFi position gUSDC displayed in MetaMask
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
**Describe the bug**
The value displayed in MetaMask for the Pendle protocol position gUSDC on arbitrum network is $289,874,768.42
The value displayed on [Pendle](https://app.pendle.finance/trade/markets/0x22e0f26320ace985e3cb2434095f18bfe114e28e/matured?tab=positions&chain=arbitrum) is 0.000288
**Expected behavior**
Correct value to be displayed in MetaMask for gUSDC
**Screenshots/Recordings**
https://github.com/user-attachments/assets/9041739b-78df-406a-9f96-162d6f68f498
**Steps to reproduce**
1. Have gUSDC open position on [Pendle finance ](https://app.pendle.finance/trade/pools/0x18ffb61c6d223bd91ec15acc248bb7e670abcc48/zap/in?chain=arbitrum&trades=trades)
2. Click DeFi tab in MetaMask
3. Enable Arbitrum network
4. Notice the value of gUSDC in MetaMask and on the Pendle platform
**Error messages or log output**
```shell
```
**Detection stage**
in production
**Version**
13.0.0
**Build type**
None
**Browser**
Chrome
**Operating system**
MacOS
Contributor guide
Research direction
Start by reproducing the gUSDC position on Arbitrum and comparing the value shown in MetaMask with the linked Pendle position. Trace the DeFi value calculation and verify the displayed result against Pendle's 0.000288 value; done means MetaMask shows the correct gUSDC value for the reported production case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100