Skip to content

Commit

Permalink
Merge pull request #11623 from vegaprotocol/populate-buyback-treasury…
Browse files Browse the repository at this point in the history
…-fees

fix: populate treasury and buyback fee fields in trade API
  • Loading branch information
wwestgarth authored Aug 29, 2024
2 parents 001ed76 + 684f80d commit e0dcb06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datanode/entities/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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,
Expand Down

0 comments on commit e0dcb06

Please sign in to comment.