Skip to content

Commit

Permalink
refactor: remove callGetMarkets from api.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rainforest-dev committed Nov 29, 2023
1 parent 6451f9c commit 6f6fde9
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -176,17 +170,6 @@ export const callGetAblyAccessToken = (formData) =>
data: formData,
})
/** -------------------------- Jarvan addon API END -------------------------- */
/** -------------------------- Zed API -------------------------- */
export const callGetMarkets = async () =>
apiHandler<AxiosResponse<IMarket[]>>({
url:
apiEndpointSets[await getStorage<string>('chainId')]?.zed +
'/markets',

method: 'get',
})

/** -------------------------- Zed API END -------------------------- */

/** -------------------------- Spacescan API -------------------------- */
export const callGetExchangeRate = (assetId: string) =>
Expand Down

0 comments on commit 6f6fde9

Please sign in to comment.