The WToken contract sets both the name and symbol to the same value, which can lead to confusing token representations in wallets, explorers, and user interfaces.
The token name is assigned the same value as the symbol (symbol_).
Example: If the symbol is "wUSDC", the token name is also "wUSDC", violating ERC20 conventions.
Expected Behavior: The name should be descriptive (e.g., "Wrapped USDC"), and the symbol should be short and identifiable (e.g., "wUSDC").
Confusion in Wallets & Block Explorers
Users interacting with wUSDC expect to see "Wrapped USDC" in their wallets.
Instead, wallets display only "wUSDC" as both the name and symbol, making it unclear what the token represents.
Potential for Impersonation Risks
A malicious token with the same symbol ("wUSDC") but different internal logic could be mistaken for the official wrapped token.
Users may trust a fake token, leading to scams or lost funds.
šµ Severity: Medium
ā
Likelihood: Moderate ā Users often rely on token names for identification.
ā
Impact: High ā Incorrect naming can lead to trust issues, user confusion, and impersonation risks.
Modify the constructor to allow a distinct name and symbol for clarity.
Example Usage:
ā Ensures proper token identification across wallets and explorers.
Require names to follow a standardized format ("Wrapped <Asset>").
ā Prevents contracts from using identical name and symbol values.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.