-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 ?? |
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.
ooc, does this actually need the REACT_APP prefix? I thought that was what gets pushed client side, but this is in the API.
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.
fair point
Signed-off-by: james-a-morris <[email protected]>
It's easier to maintain this value if we set a global USD min default and allow it to be overridden per chain