disable orders endpoint, add flag to disable gpa refresh

This commit is contained in:
wphan
2023-11-30 12:20:08 -08:00
parent 3497795a56
commit 9a371ce54e
2 changed files with 235 additions and 207 deletions

View File

@@ -1,7 +1,17 @@
// TODO : Is it worth adding proper infrastructure for feature flags? .. Would allow more powerful things like toggling them at runtime rather than being hardcoded
export const FEATURE_FLAGS = {
OLD_ORACLE_PRICE_IN_L2: true, // TODO : Remove this once we're confident that NEW_ORACLE_DATA_IN_L2 works .. delete corresponding code
// TODO : Remove this once we're confident that NEW_ORACLE_DATA_IN_L2 works .. delete corresponding code
OLD_ORACLE_PRICE_IN_L2: true,
NEW_ORACLE_DATA_IN_L2: true,
// enables old orders endpoint, disabled by default since the response is too big now
ENABLE_ORDERS_ENDPOINTS: process.env.ENABLE_ORDERS_ENDPOINTS
? process.env.ENABLE_ORDERS_ENDPOINTS.toLowerCase()
: false,
// disables periodically refreshing userAccounts via gPA
DISABLE_GPA_REFRESH: process.env.DISABLE_GPA_REFRESH
? process.env.DISABLE_GPA_REFRESH.toLowerCase()
: false,
};
export default FEATURE_FLAGS;