Skip to content

feat: add WSOL/SOL as popular token on Solana#2250

Draft
0xjorgen wants to merge 2 commits intomasterfrom
jorgen/fe-322-wsol-as-a-popular-token-on-fe
Draft

feat: add WSOL/SOL as popular token on Solana#2250
0xjorgen wants to merge 2 commits intomasterfrom
jorgen/fe-322-wsol-as-a-popular-token-on-fe

Conversation

@0xjorgen
Copy link
Contributor

Adds chain-specific popular tokens support so WSOL appears in the "Popular Tokens" section when Solana is selected. Includes both WSOL and SOL symbols since the /token endpoint returns SOL for wrapped sol.

Adds chain-specific popular tokens support so WSOL appears in the "Popular Tokens" section when Solana is selected. Includes both WSOL and SOL symbols since the /token endpoint returns SOL for wrapped sol.
@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
app-frontend-v3 Ready Ready Preview, Comment Jan 29, 2026 9:32am
sepolia-frontend-v3 Ready Ready Preview, Comment Jan 29, 2026 9:32am

Request Review

@linear
Copy link

linear bot commented Jan 28, 2026

# Conflicts:
#	src/views/SwapAndBridge/components/ChainTokenSelector/ChainTokenSelectorModal.tsx
Comment on lines +58 to +61
const chainSpecificPopularTokens: Record<number, string[]> = {
[CHAIN_IDs.SOLANA]: [TOKEN_SYMBOLS_MAP.WSOL.symbol, "SOL"], // SOL is also included because the /token endpoint returns SOL instead of WSOL for wrapped sol
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we specifically don't want to show this as a popular token chains other than Solana?
(If we just added this token symbol to the popular tokens constant then it would show up on all chains that have that token)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was my assumption. I think it's very Solana-specific. Since we're just looking at the token symbols and not the token contract address, I thought there might be a risk of adding some "garbage" token that's not sold for some of the other chains. But I'm not so sure about the likelihood of this since we're importing curated lists of tokens anyway. If you think that it's a low likelihood, then we could go back to the simpler implementation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah that's not a bad instinct actually.
But imo since, like you said, a) these are curated lists, and b) we don't do this for any other token symbol on other chains and c) is very unlikely to occur, we could remove this added complexity I think

@0xjorgen 0xjorgen marked this pull request as draft February 6, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants