chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
@@ -42,7 +42,20 @@ Since the contract's `decimals()` function is incorrect, you need to manually sp
|
||||
|
||||
4. **Verify**
|
||||
- The token should now display as "6 WETH" instead of "6,000,000,000.0T WETH"
|
||||
- You may need to remove the old token entry first if it exists
|
||||
- **Note:** MetaMask only lets you **hide** an asset, not remove it. If WETH already shows the wrong amount (e.g. "500.00T WETH"): open the asset → ⋮ menu → **Hide WETH**, then add the token again via the explorer’s "Add to wallet" button or manual import above with **Decimals: 18**. The new entry will use the correct decimals.
|
||||
|
||||
---
|
||||
|
||||
## 📱 MetaMask: Hide, then re-add with correct decimals
|
||||
|
||||
MetaMask does not offer "Remove token" — only **Hide [asset]** (⋮ menu on the token). To fix a wrong WETH display (e.g. "500.00T WETH" instead of "500 WETH"):
|
||||
|
||||
1. Open the WETH asset → tap the **⋮** menu → **Hide WETH**.
|
||||
2. Add the token again so MetaMask gets **decimals: 18**:
|
||||
- **Option A:** Go to https://explorer.d-bis.org/weth , connect MetaMask, and click the **wallet icon** next to the WETH9 contract. Confirm "Add token." The explorer sends decimals 18 and symbol WETH.
|
||||
- **Option B:** In MetaMask, Import tokens → Custom token: Address `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`, Symbol **WETH**, **Decimals 18** → Add.
|
||||
|
||||
The (re-)added token should then show the correct balance (e.g. 500 WETH).
|
||||
|
||||
---
|
||||
|
||||
@@ -65,6 +78,17 @@ If you have access to host a token list JSON file:
|
||||
|
||||
---
|
||||
|
||||
## 🌐 Explorer "Add to wallet" (same as MetaMask display)
|
||||
|
||||
The **SolaceScanScout explorer** (https://explorer.d-bis.org) adds WETH9 and WETH10 to MetaMask with **decimals: 18** and **symbol: WETH** when you click the wallet icon next to a token (WETH page, Tokens list, or token detail). So MetaMask will display balances the same way as the explorer (e.g. "100 WETH", not "100T" or raw wei).
|
||||
|
||||
- **WETH page** (Tools → WETH): wallet icon next to each contract address.
|
||||
- **Tokens list** and **token detail**: wallet icon to add that token with correct decimals and symbol.
|
||||
|
||||
Our token lists (`METAMASK_TOKEN_LIST.json`, `config/token-list.json`, provider token list) also use **symbol: WETH** and **decimals: 18** for both WETH9 and WETH10 so any app using these lists will show the same as the explorer.
|
||||
|
||||
---
|
||||
|
||||
## 📊 Verification
|
||||
|
||||
After fixing, verify the display:
|
||||
|
||||
Reference in New Issue
Block a user