Skip to content
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

improve(limits): Allow developer to set minDepositUSD #1197

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Sep 6, 2024

It's easier to maintain this value if we set a global USD min default and allow it to be overridden per chain

Copy link

vercel bot commented Sep 6, 2024

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 Sep 6, 2024 9:10pm
sepolia-frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2024 9:10pm

api/limits.ts Outdated
@@ -88,6 +84,12 @@ const handler = async (
outputToken,
} = validateChainAndTokenParams(query);

const minDepositUsdForDestinationChainId = Number(
process.env[`REACT_APP_MIN_DEPOSIT_USD_${destinationChainId}`] ??
REACT_APP_MIN_DEPOSIT_USD ??
Copy link
Contributor

Choose a reason for hiding this comment

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

ooc, does this actually need the REACT_APP prefix? I thought that was what gets pushed client side, but this is in the API.

Copy link
Member Author

Choose a reason for hiding this comment

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

fair point

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