Skip to content

Commit

Permalink
fix: send empty factors for party that does no quality
Browse files Browse the repository at this point in the history
  • Loading branch information
wwestgarth committed Aug 14, 2024
1 parent 370509b commit 0c64bac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/volumediscount/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ func (e *Engine) computeFactorsByParty(ctx context.Context, epoch uint64) {
// if the party hasn't qualified, then still send the stats but with a zero factor
if !qualifiedForTier {
evt.Stats = append(evt.Stats, &eventspb.PartyVolumeDiscountStats{
PartyId: party.String(),
DiscountFactor: "0",
RunningVolume: notionalVolume.Round(0).String(),
PartyId: party.String(),
DiscountFactor: "0",
DiscountFactors: types.EmptyFactors.IntoDiscountFactorsProto(),
RunningVolume: notionalVolume.Round(0).String(),
})
}
}
Expand Down

0 comments on commit 0c64bac

Please sign in to comment.