fix(3353): validator performance penalty

This commit is contained in:
sam-keen
2023-04-05 09:17:52 +01:00
parent cc72cdbe16
commit 1322af5ee2
3 changed files with 2 additions and 6 deletions
@@ -7,8 +7,6 @@ query PreviousEpoch($epochId: ID) {
id
rewardScore {
rawValidatorScore
}
rankingScore {
performanceScore
}
}
@@ -8,7 +8,7 @@ export type PreviousEpochQueryVariables = Types.Exact<{
}>;
export type PreviousEpochQuery = { __typename?: 'Query', epoch: { __typename?: 'Epoch', id: string, validatorsConnection?: { __typename?: 'NodesConnection', edges?: Array<{ __typename?: 'NodeEdge', node: { __typename?: 'Node', id: string, rewardScore?: { __typename?: 'RewardScore', rawValidatorScore: string } | null, rankingScore: { __typename?: 'RankingScore', performanceScore: string } } } | null> | null } | null } };
export type PreviousEpochQuery = { __typename?: 'Query', epoch: { __typename?: 'Epoch', id: string, validatorsConnection?: { __typename?: 'NodesConnection', edges?: Array<{ __typename?: 'NodeEdge', node: { __typename?: 'Node', id: string, rewardScore?: { __typename?: 'RewardScore', rawValidatorScore: string, performanceScore: string } | null } } | null> | null } | null } };
export const PreviousEpochDocument = gql`
@@ -21,8 +21,6 @@ export const PreviousEpochDocument = gql`
id
rewardScore {
rawValidatorScore
}
rankingScore {
performanceScore
}
}
+1 -1
View File
@@ -15,7 +15,7 @@ export const getLastEpochScoreAndPerformance = (
return {
rawValidatorScore: validator?.rewardScore?.rawValidatorScore,
performanceScore: validator?.rankingScore?.performanceScore,
performanceScore: validator?.rewardScore?.performanceScore,
};
};