Skip to content

Commit

Permalink
Merge pull request #11664 from vegaprotocol/fix_GetPartyStats
Browse files Browse the repository at this point in the history
fix: remove unneeded check for market length in GetPartyStats
  • Loading branch information
ze97286 authored Sep 9, 2024
2 parents 8566286 + 7ae496c commit 2d3dd42
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions datanode/service/party_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package service

import (
"context"
"fmt"

"code.vegaprotocol.io/vega/datanode/entities"
"code.vegaprotocol.io/vega/libs/num"
Expand Down Expand Up @@ -101,10 +100,6 @@ func NewPartyStatsService(epoch EpochStore, ref ReferralSetStore, vds VDSStore,
}

func (s *PSvc) GetPartyStats(ctx context.Context, partyID string, markets []string) (*v2.GetPartyDiscountStatsResponse, error) {
// ensure the arguments we received make sense:
if len(markets) == 0 {
return nil, fmt.Errorf("required to provide at least one market ID")
}
// first up, last epoch to get the stats:
epoch, err := s.epoch.GetCurrent(ctx)
if err != nil {
Expand Down

0 comments on commit 2d3dd42

Please sign in to comment.