Skip to content

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Jun 26, 2025

No description provided.

Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 8:02am
sepolia-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 8:02am

inputTokenSymbol: string
) {
const { MIN_DEPOSIT_USD, MIN_DEPOSIT_USD_OVERRIDES } = getEnvs();
const minDepositUsdOverrides = JSON.parse(
Copy link
Member

Choose a reason for hiding this comment

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

Since we're using a nested JSON in an environment variable, it could be useful to wrap this in a try-catch (or maybe in a new util function like safeParse which does this) in case the type check fails at runtime. Or maybe it's not needed if we don't expect the environment variable to change much - just a thought.

Comment on lines +586 to +589
routes?: { [key: string]: string };
originChains?: { [key: string]: string };
destinationChains?: { [key: string]: string };
tokens?: { [key: string]: string };
Copy link
Member

Choose a reason for hiding this comment

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

Think this type could be reusable for other overrides? I like how it goes from most specific to least specific. (Token + Chain) -> (Token) -> (Chain).

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.

4 participants