Skip to content

Commit

Permalink
fix: improve constants
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder committed Dec 22, 2024
1 parent 64c8a4a commit 65f30b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/constant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ export const DEFAULT_TOKEN_LOGO =
export const DEFAULT_STATISTIC_DAYS: StatisticDaysFilter = 90;
export const DEFAULT_STATISTIC_BREAK_DOWN_FILTER =
BreakDownList['Source chain'];

export const SECONDS_PER_MINUTE = 60;
export const SECONDS_PER_HOUR = 3600;
2 changes: 0 additions & 2 deletions src/services/constants.ts

This file was deleted.

8 changes: 6 additions & 2 deletions src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable @typescript-eslint/restrict-template-expressions */
import { DailySummaryOption } from 'src/types';
import { API_URL, SEARCH_RESULT_OFFSET } from '../constant';
import { SECONDS_PER_HOUR, SECONDS_PER_MINUTE } from './constants';
import {
API_URL,
SEARCH_RESULT_OFFSET,
SECONDS_PER_HOUR,
SECONDS_PER_MINUTE,
} from '../constant';

export const GET_LAST_SWAPS_TAG = 'getLastSwaps';
export const getLastSwaps = async () =>
Expand Down

0 comments on commit 65f30b5

Please sign in to comment.