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
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/configendpoint 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
/api/v1/config.defaultSlippage,maxTradeSize,maintenanceMode, andsupportedNetworks..envvariables or static defaults.200 OKresponse with caching enabled.