From 7359b3a6869f6e82ab6ca29fdff3cbc8c1d0eaf6 Mon Sep 17 00:00:00 2001 From: iamoskvin <44796732+iamoskvin@users.noreply.github.com> Date: Tue, 28 May 2024 11:44:32 +0300 Subject: [PATCH] strkGrantDataV2 (#309) --- src/apollo/queries.js | 4 ++-- src/pages/Pool/index.tsx | 2 +- src/pages/Rewards/index.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apollo/queries.js b/src/apollo/queries.js index eb2636f5..68b8d3af 100644 --- a/src/apollo/queries.js +++ b/src/apollo/queries.js @@ -93,8 +93,8 @@ export const HISTORICAL_GLOBAL_DATA = () => { } export const STRK_REWARDS_DATA = () => { - const queryString = ` query strkGrantData { - strkGrantData + const queryString = ` query strkGrantDataV2 { + strkGrantDataV2 }` return gql(queryString) } diff --git a/src/pages/Pool/index.tsx b/src/pages/Pool/index.tsx index ef302c42..39a331b2 100644 --- a/src/pages/Pool/index.tsx +++ b/src/pages/Pool/index.tsx @@ -111,7 +111,7 @@ export default function Pool() { let jediRewards: any = null; if (rewardsRespResult.status === "fulfilled") { const rewardsResp = rewardsRespResult.value as ApolloQueryResult; - jediRewards = rewardsResp.data?.strkGrantData; + jediRewards = rewardsResp.data?.strkGrantDataV2; } const poolsData: any = {} poolsDataRaw?.forEach((data: any) => { diff --git a/src/pages/Rewards/index.tsx b/src/pages/Rewards/index.tsx index 3978e66e..de19e589 100644 --- a/src/pages/Rewards/index.tsx +++ b/src/pages/Rewards/index.tsx @@ -505,7 +505,7 @@ export default function Rewards() { let jediRewards: any = null; if (rewardsRespResult.status === "fulfilled") { const rewardsResp = rewardsRespResult.value as ApolloQueryResult; - jediRewards = rewardsResp.data?.strkGrantData; + jediRewards = rewardsResp.data?.strkGrantDataV2; } const eligiblePools = []