vega icon indicating copy to clipboard operation
vega copied to clipboard

Duplication of per epoch totalQuantumRewards on teamStatistics API

Open JonRay15 opened this issue 1 year ago • 0 comments

If you query the teamStatistics API and the teamMemberStatistics API for the same team as below you will see that in the quantumRewards section where you get the per epoch breakdown we are getting rows in the teamStatistics API for each member where they should presumably be being added up to give the total for the team that epoch.

N.B. We dont actually use this currently in Console so it is not critical ... but we should fix,

query teamStats{
  teamsStatistics(teamId:"5fa84776202ac98ce8fc12e3fdacef07ee99ef3e45548398b575058ab9113999"){
    edges{
      node{
        teamId
        totalQuantumVolume
        totalQuantumRewards
        totalGamesPlayed
        gamesPlayed
        quantumRewards{
          epoch
          totalQuantumRewards
        }
      }
    }
  }
}


query teamMemberStats {
  teamMembersStatistics(teamId:"5fa84776202ac98ce8fc12e3fdacef07ee99ef3e45548398b575058ab9113999"){
    edges{
      node{
        partyId
        totalQuantumVolume
        totalQuantumRewards
        totalGamesPlayed
        gamesPlayed
        quantumRewards{
          epoch
          totalQuantumRewards
        }
      }
    }
  }
}

JonRay15 avatar Feb 09 '24 15:02 JonRay15