Skip to content

Commit c491a1e

Browse files
committed
fix: indexer urls
1 parent dd2f2f7 commit c491a1e

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/frontend/src/app/5_pages/LandingPage/components/ProtocolData/ProtocolData.constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export const DEFAULT_VOLUME_DATA: VolumeDataResult = {
3333
usd: 0,
3434
};
3535

36-
const indexer = getIndexerUrl();
36+
/** @deprecated */
37+
const indexer = getIndexerUrl() + '/';
3738

3839
export const LOCKED_DATA_URL = `${indexer}legacy/cmc/tvl`;
3940
export const VOLUME_DATA_URL = `${indexer}legacy/cmc/summary`;

apps/frontend/src/constants/infrastructure.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Environments, Services } from '../types/global';
21
import { INDEXER_URL, INDEXER_URL_TESTNET } from '@sovryn/sdk';
32

3+
import { Environments, Services } from '../types/global';
4+
45
export const SERVICES_CONFIG = {
56
[Environments.Testnet]: {
67
[Services.Maintenance]:
@@ -30,6 +31,7 @@ export const AMM_SERVICE = {
3031
[Environments.Testnet]: 'https://amm-apy.test.sovryn.app/',
3132
};
3233

34+
/** @deprecated */
3335
export const INDEXER_SERVICE = {
3436
[Environments.Mainnet]: INDEXER_URL,
3537
[Environments.Testnet]: INDEXER_URL_TESTNET,

apps/frontend/src/utils/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const getBitocracyUrl = () =>
8383
export const getGraphWrapperUrl = () =>
8484
GRAPH_WRAPPER[isMainnet() ? Environments.Mainnet : Environments.Testnet];
8585

86+
/** @deprecated */
8687
export const getIndexerUrl = () =>
8788
INDEXER_SERVICE[isMainnet() ? Environments.Mainnet : Environments.Testnet];
8889

0 commit comments

Comments
 (0)