Skip to content

Commit

Permalink
fix: rename new gql field to better reflect what it is
Browse files Browse the repository at this point in the history
  • Loading branch information
wwestgarth committed Aug 14, 2024
1 parent 4815e13 commit 0dd6fea
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion datanode/gateway/graphql/benefit_tier_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (br *benefitTierResolver) ReferralRewardFactors(ctx context.Context, obj *v
}

// Referrals implements BenefitTierResolver.
func (br *benefitTierResolver) Referrals(ctx context.Context, obj *vega.BenefitTier) (*DiscountFactors, error) {
func (br *benefitTierResolver) ReferralDiscountFactors(ctx context.Context, obj *vega.BenefitTier) (*DiscountFactors, error) {
infra, err := num.DecimalFromString(obj.ReferralDiscountFactors.InfrastructureDiscountFactor)
if err != nil {
return nil, err
Expand Down
42 changes: 21 additions & 21 deletions datanode/gateway/graphql/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions datanode/gateway/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5191,9 +5191,9 @@ type BenefitTier {
"The minimum running notional for the given benefit tier"
minimumRunningNotionalTakerVolume: String!
"The proportion of the referee's taker fees to be discounted"
referralDiscountFactor: String! @deprecated(reason: "Use referralRewardFactors")
referralDiscountFactor: String! @deprecated(reason: "Use referralDiscountFactors")
"The proportion of the referee's taker fees to be discounted"
referrals: DiscountFactors!
referralDiscountFactors: DiscountFactors!
"The proportion of the referee's taker fees to be rewarded to the referrer"
referralRewardFactor: String! @deprecated(reason: "Use referralRewardFactors")
"The proportion of the referee's taker fees to be rewarded to the referrer"
Expand Down

0 comments on commit 0dd6fea

Please sign in to comment.