Skip to content

Commit

Permalink
strkGrantDataV2 (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamoskvin authored May 28, 2024
1 parent da1563f commit 7359b3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/apollo/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion src/pages/Pool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function Pool() {
let jediRewards: any = null;
if (rewardsRespResult.status === "fulfilled") {
const rewardsResp = rewardsRespResult.value as ApolloQueryResult<any>;
jediRewards = rewardsResp.data?.strkGrantData;
jediRewards = rewardsResp.data?.strkGrantDataV2;
}
const poolsData: any = {}
poolsDataRaw?.forEach((data: any) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Rewards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export default function Rewards() {
let jediRewards: any = null;
if (rewardsRespResult.status === "fulfilled") {
const rewardsResp = rewardsRespResult.value as ApolloQueryResult<any>;
jediRewards = rewardsResp.data?.strkGrantData;
jediRewards = rewardsResp.data?.strkGrantDataV2;
}

const eligiblePools = []
Expand Down

0 comments on commit 7359b3a

Please sign in to comment.