From 34baa66d5d72c237d5221f2ba1856c95793cba11 Mon Sep 17 00:00:00 2001 From: Jeremy Letang Date: Wed, 11 Sep 2024 12:00:49 +0200 Subject: [PATCH] fix: add missing fees in gql bindings Signed-off-by: Jeremy Letang --- CHANGELOG.md | 6 +++--- datanode/gateway/graphql/resolvers.go | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 121ee73db2..152a269303 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ ### 🐛 Fixes -- [](https://github.com/vegaprotocol/vega/issues/xxx) +- [11672](https://github.com/vegaprotocol/vega/issues/11672) - Add missing fees in GraphQL bindings. ## 0.78.2 @@ -34,7 +34,7 @@ - [11650](https://github.com/vegaprotocol/vega/issues/11650) - Add include sub accounts flag to `listPositions`. - [11641](https://github.com/vegaprotocol/vega/issues/11641) - Panic with pegged orders. - [11646](https://github.com/vegaprotocol/vega/issues/11646) - Add tier numbers to API. -- [11665](https://github.com/vegaprotocol/vega/issues/11665) - Delay the final termination of a transfer to the following epoch. +- [11665](https://github.com/vegaprotocol/vega/issues/11665) - Delay the final termination of a transfer to the following epoch. ## 0.78.1 @@ -70,7 +70,7 @@ - [11612](https://github.com/vegaprotocol/vega/issues/11612) - Reward scaling support. - [11624](https://github.com/vegaprotocol/vega/issues/11624) - prevent creation of rewards with no payout, but with high computational cost. - [11512](https://github.com/vegaprotocol/vega/issues/11512) - Add loss socialisation amounts to funding payment API. -- [11627](https://github.com/vegaprotocol/vega/issues/11627) - Add eligible keys filter to reward transfers. +- [11627](https://github.com/vegaprotocol/vega/issues/11627) - Add eligible keys filter to reward transfers. ### 🐛 Fixes diff --git a/datanode/gateway/graphql/resolvers.go b/datanode/gateway/graphql/resolvers.go index 315e233395..4951405597 100644 --- a/datanode/gateway/graphql/resolvers.go +++ b/datanode/gateway/graphql/resolvers.go @@ -3043,6 +3043,8 @@ func (r *myTradeResolver) BuyerFee(_ context.Context, obj *vegapb.Trade) (*Trade fee.LiquidityFee = obj.BuyerFee.LiquidityFee fee.LiquidityFeeReferralDiscount = setIfExists(obj.BuyerFee.LiquidityFeeReferrerDiscount) fee.LiquidityFeeVolumeDiscount = setIfExists(obj.BuyerFee.LiquidityFeeVolumeDiscount) + fee.TreasuryFee = obj.BuyerFee.TreasuryFee + fee.BuyBackFee = obj.BuyerFee.BuyBackFee } return &fee, nil } @@ -3068,6 +3070,8 @@ func (r *myTradeResolver) SellerFee(_ context.Context, obj *vegapb.Trade) (*Trad fee.LiquidityFee = obj.SellerFee.LiquidityFee fee.LiquidityFeeReferralDiscount = setIfExists(obj.SellerFee.LiquidityFeeReferrerDiscount) fee.LiquidityFeeVolumeDiscount = setIfExists(obj.SellerFee.LiquidityFeeVolumeDiscount) + fee.TreasuryFee = obj.SellerFee.TreasuryFee + fee.BuyBackFee = obj.SellerFee.BuyBackFee } return &fee, nil