-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1350 from madfish-solutions/v3.3.7
V3.3.7
- Loading branch information
Showing
146 changed files
with
2,115 additions
and
959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import { FARMING_COMMON_LIST_API_URL } from '@config/constants'; | ||
import { jsonFetch } from '@shared/api'; | ||
|
||
export const getFarmingListCommonApi = async () => { | ||
const farmingListCommonRaw = await fetch(FARMING_COMMON_LIST_API_URL); | ||
|
||
return await farmingListCommonRaw.json(); | ||
}; | ||
export const getFarmingListCommonApi = async () => await jsonFetch(FARMING_COMMON_LIST_API_URL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import { FARMING_STATS_API_URL } from '@config/constants'; | ||
import { jsonFetch } from '@shared/api'; | ||
|
||
import { FarmingStatsResponse } from '../interfaces'; | ||
|
||
export const getFarmingStatsApi = async () => { | ||
const response = await fetch(FARMING_STATS_API_URL); | ||
|
||
return (await response.json()) as FarmingStatsResponse; | ||
}; | ||
export const getFarmingStatsApi = async () => await jsonFetch<FarmingStatsResponse>(FARMING_STATS_API_URL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { LIQUIDITY_DEX_TWO_ITEM_API_URL } from '@config/constants'; | ||
import { jsonFetch } from '@shared/api'; | ||
|
||
export const getDexTwoLiquidityItemApi = async (tokenPairSlug: string) => { | ||
if (!tokenPairSlug) { | ||
throw Error('tokenPairSlug is required'); | ||
} | ||
|
||
const response = await fetch(`${LIQUIDITY_DEX_TWO_ITEM_API_URL}/${tokenPairSlug}`); | ||
|
||
return await response.json(); | ||
return await jsonFetch(`${LIQUIDITY_DEX_TWO_ITEM_API_URL}/${tokenPairSlug}`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { LIQUIDITY_LIST_API_URL } from '@config/constants'; | ||
import { jsonFetch } from '@shared/api'; | ||
|
||
import { LiquidityItemResponse } from '../interfaces'; | ||
|
||
export const getLiquidityListApi = async (): Promise<{ list: Array<LiquidityItemResponse> }> => { | ||
const response = await fetch(LIQUIDITY_LIST_API_URL); | ||
|
||
return (await response.json()) as { list: Array<LiquidityItemResponse> }; | ||
}; | ||
export const getLiquidityListApi = async () => | ||
await jsonFetch<{ list: Array<LiquidityItemResponse> }>(LIQUIDITY_LIST_API_URL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import { LIQUIDITY_STATS_API_URL } from '@config/constants'; | ||
import { jsonFetch } from '@shared/api'; | ||
|
||
import { NewLiquidityStatsResponse } from '../types'; | ||
|
||
export const getLiquidityStatsApi = async () => { | ||
const response = await fetch(LIQUIDITY_STATS_API_URL); | ||
|
||
return (await response.json()) as NewLiquidityStatsResponse; | ||
}; | ||
export const getLiquidityStatsApi = async () => await jsonFetch<NewLiquidityStatsResponse>(LIQUIDITY_STATS_API_URL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.