Skip to content

Commit

Permalink
chore: add trending tokens flag to remote config.ts (#6373)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9f4c71f)
  • Loading branch information
derHowie authored and BrodyHughes committed Dec 24, 2024
1 parent ef4037e commit 9225e67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/remoteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export const DEFAULT_CONFIG: RainbowConfig = {
nfts_enabled: true,

trending_tokens_limit: 10,
trending_tokens_enabled: false,
};

export async function fetchRemoteConfig(): Promise<RainbowConfig> {
Expand Down Expand Up @@ -206,7 +207,8 @@ export async function fetchRemoteConfig(): Promise<RainbowConfig> {
key === 'degen_mode' ||
key === 'featured_results' ||
key === 'claimables' ||
key === 'nfts_enabled'
key === 'nfts_enabled' ||
key === 'trending_tokens_enabled'
) {
config[key] = entry.asBoolean();
} else if (key === 'trending_tokens_limit') {
Expand Down

0 comments on commit 9225e67

Please sign in to comment.