From 684f80d8cef28b113686356472c95eddcee47580 Mon Sep 17 00:00:00 2001 From: wwestgarth Date: Thu, 29 Aug 2024 08:56:47 +0100 Subject: [PATCH] fix: populate treasury and buyback fee fields in trade API --- datanode/entities/trade.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datanode/entities/trade.go b/datanode/entities/trade.go index 5476d0a0c5..ad4f8a2d87 100644 --- a/datanode/entities/trade.go +++ b/datanode/entities/trade.go @@ -99,6 +99,8 @@ func (t Trade) ToProto() *vega.Trade { InfrastructureFeeVolumeDiscount: t.BuyerInfrastructureFeeVolumeDiscount.String(), LiquidityFeeReferrerDiscount: t.BuyerLiquidityFeeReferralDiscount.String(), LiquidityFeeVolumeDiscount: t.BuyerLiquidityFeeVolumeDiscount.String(), + TreasuryFee: t.BuyerTreasuryFee.String(), + BuyBackFee: t.BuyerBuyBackFee.String(), HighVolumeMakerFee: t.BuyerHighVolumeMakerFee.String(), }, SellerFee: &vega.Fee{ @@ -111,6 +113,8 @@ func (t Trade) ToProto() *vega.Trade { InfrastructureFeeVolumeDiscount: t.SellerInfrastructureFeeVolumeDiscount.String(), LiquidityFeeReferrerDiscount: t.SellerLiquidityFeeReferralDiscount.String(), LiquidityFeeVolumeDiscount: t.SellerLiquidityFeeVolumeDiscount.String(), + TreasuryFee: t.SellerTreasuryFee.String(), + BuyBackFee: t.SellerBuyBackFee.String(), HighVolumeMakerFee: t.SellerHighVolumeMakerFee.String(), }, BuyerAuctionBatch: t.BuyerAuctionBatch,