Skip to content

Commit

Permalink
Merge pull request #11649 from vegaprotocol/11646-volume-rebate-tiers
Browse files Browse the repository at this point in the history
fix: add tier number to volume rebate resolver
  • Loading branch information
jeremyletang authored Sep 4, 2024
2 parents 7b08a4d + e85a700 commit f243b4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datanode/gateway/graphql/volume_rebate_program_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"errors"
"math"

"code.vegaprotocol.io/vega/libs/ptr"
v2 "code.vegaprotocol.io/vega/protos/data-node/api/v2"
)

Expand All @@ -32,6 +33,7 @@ func (r *volumeRebateProgramResolver) BenefitTiers(ctx context.Context, obj *v2.
tiers = append(tiers, &VolumeRebateBenefitTier{
MinimumPartyMakerVolumeFraction: tier.MinimumPartyMakerVolumeFraction,
AdditionalMakerRebate: tier.AdditionalMakerRebate,
TierNumber: ptr.From(int(ptr.UnBox(tier.TierNumber))),
})
}
return tiers, nil
Expand Down

0 comments on commit f243b4f

Please sign in to comment.