-
Notifications
You must be signed in to change notification settings - Fork 65
fix: mark non-bridgable svm tokens as unreachable #2118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix: mark non-bridgable svm tokens as unreachable #2118
Conversation
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
0xjorgen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I posted one idea. Not sure if it is a good one though
| const isSolanaDestination = token.chainId === CHAIN_IDs.SOLANA; | ||
|
|
||
| // If Solana is not involved, don't mark as unreachable | ||
| if (!isSolanaOrigin && !isSolanaDestination) return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
knit !(isSolanaOrigin || isSolanaDestination) is equal to (!isSolanaOrigin && !isSolanaDestination) but might be easier to read? 🤔
| toSymbol: ["!USDC"], | ||
| }, | ||
| ]; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be better if we extended the RESTRICTED_ROUTES to support multiple to symbols?
{
fromChainId: "*",
fromSymbol: ["*"],
toChainId: [CHAIN_IDs.SOLANA],
toSymbol: ["!USDC", "!USDH", "!USDH-SPOT", "!USDC-SPOT", "!USDT-SPOT"],
}
closes FE-84