From 6f6fde944ca8a172831b76ea660e1b622f39c3e0 Mon Sep 17 00:00:00 2001 From: Rainforest Date: Wed, 29 Nov 2023 06:33:09 +0000 Subject: [PATCH] refactor: remove callGetMarkets from api.ts --- src/api/api.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index f2b3b61..a349cd5 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -3,13 +3,7 @@ import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios' import { registerMessageHandler } from 'axios-chrome-messaging-adapter' import { toast } from 'react-toastify' -import { - IAsset, - IMarket, - IResponseData, - ITransaction, - RequestConfig, -} from '~/types/api' +import { IAsset, IResponseData, ITransaction, RequestConfig } from '~/types/api' import { ChainEnum } from '~/types/chia' import { Asset } from '~/types/entities' import { apiEndpointSets } from '~/utils/constants' @@ -176,17 +170,6 @@ export const callGetAblyAccessToken = (formData) => data: formData, }) /** -------------------------- Jarvan addon API END -------------------------- */ -/** -------------------------- Zed API -------------------------- */ -export const callGetMarkets = async () => - apiHandler>({ - url: - apiEndpointSets[await getStorage('chainId')]?.zed + - '/markets', - - method: 'get', - }) - -/** -------------------------- Zed API END -------------------------- */ /** -------------------------- Spacescan API -------------------------- */ export const callGetExchangeRate = (assetId: string) =>