Skip to content

Conversation

@gsteenkamp89
Copy link
Contributor

@gsteenkamp89 gsteenkamp89 commented Dec 16, 2025

closes FE-84

Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
@vercel
Copy link

vercel bot commented Dec 16, 2025

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

Project Deployment Review Updated (UTC)
app-frontend-v3 Ready Ready Preview, Comment Dec 16, 2025 4:21pm
sepolia-frontend-v3 Ready Ready Preview, Comment Dec 16, 2025 4:21pm

@linear
Copy link

linear bot commented Dec 17, 2025

Copy link
Contributor

@0xjorgen 0xjorgen left a 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;
Copy link
Contributor

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"],
},
];

Copy link
Contributor

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"],
  }

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.

3 participants