Skip to content

Commit

Permalink
add default field 2 new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 3, 2023
1 parent 8c10ddd commit 4b18f1a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/TrueSightV2/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ export const DEFAULT_PARAMS_BY_TAB: Partial<{ [tab in KyberAIListType]: Record<s
[KyberAIListType.TOP_TRADED]: { sort: `${SORT_FIELD.VOLUME_24H}:${SORT_DIRECTION.DESC}` },
[KyberAIListType.TRENDING]: { trendingTypes: 'trending' },
[KyberAIListType.TRENDING_SOON]: { trendingTypes: 'trending-soon' },
[KyberAIListType.FUNDING_RATE]: { sort: `${SORT_FIELD.FUNDING_RATE}:${SORT_DIRECTION.DESC}` },
[KyberAIListType.KYBERSWAP_DELTA]: { sort: `${SORT_FIELD.KYBER_SCORE_DELTA}:${SORT_DIRECTION.DESC}` },
[KyberAIListType.FUNDING_RATE]: {
sort: `${SORT_FIELD.FUNDING_RATE}:${SORT_DIRECTION.DESC}`,
requiredFields: 'funding_rate',
},
[KyberAIListType.KYBERSWAP_DELTA]: {
sort: `${SORT_FIELD.KYBER_SCORE_DELTA}:${SORT_DIRECTION.DESC}`,
requiredFields: 'kyber_score_delta',
},
}

export enum KYBERAI_CHART_ID {
Expand Down

0 comments on commit 4b18f1a

Please sign in to comment.