Skip to content

Commit f1c4428

Browse files
authored
Merge pull request #226 from QuickSwap/dev
Merge updates in analytics pages to beta
2 parents 43bfbfc + 252eab6 commit f1c4428

28 files changed

Lines changed: 640 additions & 539 deletions

File tree

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ REACT_APP_PORTIS_ID="e086c1f2-2d26-4443-804f-3398bbab069e"
77
REACT_APP_FORTMATIC_KEY="pk_live_F937DF033A1666BF"
88
REACT_APP_MOONPAY_KEY="pk_live_72EGoobLnlgc8WB7AaxyiWu2S43dj8eY"
99
REACT_APP_TRANSAK_KEY="258960cf-1e17-4419-bf7f-77443282f5da"
10-
REACT_APP_GRAPH_API_URL="https://polygon.furadao.org/subgraphs/name/quickswap"
10+
REACT_APP_GRAPH_API_URL="https://api.fura.org/subgraphs/name/quickswap"
1111
REACT_APP_PRDT_URL="https://prdt-quickswap-main.pages.dev/"
1212
REACT_APP_SCAN_BASE_URL="https://polygonscan.com"
1313
REACT_APP_TOKEN_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-token-list@latest/build/quickswap-default.tokenlist.json"
1414
REACT_APP_STAKING_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-staking-list@latest/build/quickswap-default.lpfarms.json"
1515
REACT_APP_DUAL_STAKING_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-staking-list@latest/build/quickswap-default.dualfarms.json"
1616
REACT_APP_SYRUP_LIST_DEFAULT_URL="https://unpkg.com/quickswap-default-staking-list@latest/build/quickswap-default.syrups.json"
17+
REACT_APP_LEGACY_APP_URL="https://legacy.quickswap.exchange"

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ REACT_APP_FORTMATIC_KEY="pk_live_F937DF033A1666BF"
55
REACT_APP_GOOGLE_ANALYTICS_ID="UA-188438708-1"
66
REACT_APP_MOONPAY_KEY="pk_live_72EGoobLnlgc8WB7AaxyiWu2S43dj8eY"
77
REACT_APP_TRANSAK_KEY="258960cf-1e17-4419-bf7f-77443282f5da"
8-
REACT_APP_GRAPH_API_URL="https://polygon.furadao.org/subgraphs/name/quickswap"
8+
REACT_APP_GRAPH_API_URL="https://api.fura.org/subgraphs/name/quickswap"

public/locales/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
"transactionsWillAppear": "Your transactions will appear here",
243243
"copied": "Copied",
244244
"showPortis": "Show Portis",
245-
"betaWarningDesc": "This site is in beta. By using this software, you understand, acknowledge and accept that Quickswap and/or the underlying software are provided “as is” and “as available” basis and without warranties or representations of any kind either expressed or implied.",
245+
"betaWarningDesc": "You're on the new productions site if you'd like to use the old site please navigate to: ",
246246
"fiatProviders": "Fiat gateway providers",
247247
"buy": "Buy",
248248
"fiatServiceDesc": "Fiat services on Quickswap are provided by third-parties. Quickswap is not associated with, responsible or liable for the performance of these third-party services. Any claims & questions should be addressed with the selected provider.",
@@ -288,7 +288,7 @@
288288
"timeRemaining": "Time Remaining",
289289
"rewardsEnded": "Rewards Ended",
290290
"24hPer": "24H %",
291-
"24hTopMovers": "24h TOP MOVERS",
291+
"24hMostVolume": "24h MOST VOLUME",
292292
"waitingConfirm": "Waiting For Confirmation",
293293
"confirmTxinWallet": "Please confirm this transaction in your wallet.",
294294
"txSubmitted": "Transaction Submitted",

src/apollo/queries.ts

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const TOKEN_SEARCH = gql`
2929
symbol
3030
name
3131
decimals
32+
tradeVolumeUSD
3233
totalLiquidity
3334
}
3435
asName: tokens(
@@ -40,6 +41,7 @@ export const TOKEN_SEARCH = gql`
4041
symbol
4142
name
4243
decimals
44+
tradeVolumeUSD
4345
totalLiquidity
4446
}
4547
asAddress: tokens(
@@ -51,6 +53,7 @@ export const TOKEN_SEARCH = gql`
5153
symbol
5254
name
5355
decimals
56+
tradeVolumeUSD
5457
totalLiquidity
5558
}
5659
}
@@ -60,6 +63,7 @@ export const PAIR_SEARCH = gql`
6063
query pairs($tokens: [Bytes]!, $id: String) {
6164
as0: pairs(where: { token0_in: $tokens }) {
6265
id
66+
trackedReserveETH
6367
token0 {
6468
id
6569
symbol
@@ -75,6 +79,7 @@ export const PAIR_SEARCH = gql`
7579
}
7680
as1: pairs(where: { token1_in: $tokens }) {
7781
id
82+
trackedReserveETH
7883
token0 {
7984
id
8085
symbol
@@ -90,6 +95,7 @@ export const PAIR_SEARCH = gql`
9095
}
9196
asAddress: pairs(where: { id: $id }) {
9297
id
98+
trackedReserveETH
9399
token0 {
94100
id
95101
symbol
@@ -219,6 +225,7 @@ export const ALL_TOKENS = gql`
219225
name
220226
symbol
221227
decimals
228+
tradeVolumeUSD
222229
totalLiquidity
223230
}
224231
}
@@ -233,6 +240,7 @@ export const ALL_PAIRS = gql`
233240
orderDirection: desc
234241
) {
235242
id
243+
trackedReserveETH
236244
token0 {
237245
id
238246
symbol
@@ -418,10 +426,10 @@ export const TOKEN_DATA1: any = (
418426
export const TOKEN_DATA2: any = (tokenAddress: string) => {
419427
const queryString = `
420428
query tokens {
421-
pairs0: pairs(where: {token0: "${tokenAddress}"}, first: 100, orderBy: reserveUSD, orderDirection: desc){
429+
pairs0: pairs(where: {token0: "${tokenAddress}"}, first: 50, orderBy: reserveUSD, orderDirection: desc){
422430
id
423431
}
424-
pairs1: pairs(where: {token1: "${tokenAddress}"}, first: 100, orderBy: reserveUSD, orderDirection: desc){
432+
pairs1: pairs(where: {token1: "${tokenAddress}"}, first: 50, orderBy: reserveUSD, orderDirection: desc){
425433
id
426434
}
427435
}
@@ -462,22 +470,6 @@ export const ETH_PRICE: any = (block?: number) => {
462470
return gql(queryString);
463471
};
464472

465-
export const ETH_ALLPRICE: any = (block?: number) => {
466-
const queryString = `
467-
query bundles {
468-
oneDayBackPrice: bundles(where: { id: ${GlobalConst.utils.BUNDLE_ID} } block: {number: ${block}}) {
469-
id
470-
ethPrice
471-
}
472-
currentPrice: bundles(where: { id: ${GlobalConst.utils.BUNDLE_ID} }) {
473-
id
474-
ethPrice
475-
}
476-
}
477-
`;
478-
return gql(queryString);
479-
};
480-
481473
export const PAIRS_HISTORICAL_BULK: any = (block: number, pairs: any[]) => {
482474
let pairsString = `[`;
483475
pairs.map((pair) => {

0 commit comments

Comments
 (0)