Skip to content

Commit

Permalink
Merge pull request #11694 from vegaprotocol/11672
Browse files Browse the repository at this point in the history
fix: add resolver for high volume maker fee
  • Loading branch information
jeremyletang authored Sep 17, 2024
2 parents 605bb60 + 9d038a2 commit 28205c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datanode/gateway/graphql/resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3045,6 +3045,7 @@ func (r *myTradeResolver) BuyerFee(_ context.Context, obj *vegapb.Trade) (*Trade
fee.LiquidityFeeVolumeDiscount = setIfExists(obj.BuyerFee.LiquidityFeeVolumeDiscount)
fee.TreasuryFee = obj.BuyerFee.TreasuryFee
fee.BuyBackFee = obj.BuyerFee.BuyBackFee
fee.HighVolumeMakerFee = obj.BuyerFee.HighVolumeMakerFee
}
return &fee, nil
}
Expand Down Expand Up @@ -3072,6 +3073,7 @@ func (r *myTradeResolver) SellerFee(_ context.Context, obj *vegapb.Trade) (*Trad
fee.LiquidityFeeVolumeDiscount = setIfExists(obj.SellerFee.LiquidityFeeVolumeDiscount)
fee.TreasuryFee = obj.SellerFee.TreasuryFee
fee.BuyBackFee = obj.SellerFee.BuyBackFee
fee.HighVolumeMakerFee = obj.SellerFee.HighVolumeMakerFee
}

return &fee, nil
Expand Down

0 comments on commit 28205c0

Please sign in to comment.