-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Create an endpoint to fetch dynamic system configuration variables #65
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
The frontend needs to know certain global variables (like the current default slippage, supported networks, or maintenance mode status) immediately upon loading.
Hardcoding these in the frontend means we have to deploy a new React build every time a parameter changes.
We need a /api/v1/config endpoint that returns a JSON object containing these global system settings.
This allows us to control the frontend behavior entirely from the backend environment variables.
Requirements
- Create a GET route at
/api/v1/config. - Construct a JSON payload containing:
defaultSlippage,maxTradeSize,maintenanceMode, andsupportedNetworks. - Populate these values using either
.envvariables or static defaults. - Ensure the route returns a fast
200 OKresponse with caching enabled.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program