diff --git a/CHANGELOG.md b/CHANGELOG.md index 4afbc3919d..60556cfb93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ - [11579](https://github.com/vegaprotocol/vega/issues/11579) - Spot calculate fee on amend, use order price if no amended price is provided. - [11585](https://github.com/vegaprotocol/vega/issues/11585) - Initialise rebate stats service in API. - [11592](https://github.com/vegaprotocol/vega/issues/11592) - Fix the order of calls at end of epoch between rebate engine and market tracker. +- [11607](https://github.com/vegaprotocol/vega/issues/11607) - Wire rank lottery distribution to team reward payout. - [959](https://github.com/vegaprotocol/core-test-coverage/issues/959) - Include `ELS` for `AMM` sub keys to the parent key `ELS`. ## 0.77.5 diff --git a/core/rewards/contribution_reward_calculator.go b/core/rewards/contribution_reward_calculator.go index 2498daf763..0eaca811b3 100644 --- a/core/rewards/contribution_reward_calculator.go +++ b/core/rewards/contribution_reward_calculator.go @@ -114,6 +114,8 @@ func calculateRewardsByContributionTeam(epochSeq, asset, accountID string, balan teamScores = proRataRewardCalculator(teamContribution, map[string]num.Decimal{}) } else if ds.DistributionStrategy == vega.DistributionStrategy_DISTRIBUTION_STRATEGY_RANK { teamScores = rankingRewardCalculator(teamContribution, ds.RankTable, map[string]num.Decimal{}) + } else if ds.DistributionStrategy == vega.DistributionStrategy_DISTRIBUTION_STRATEGY_RANK_LOTTERY { + teamScores = rankingLotteryRewardCalculator(teamContribution, ds.RankTable, map[string]num.Decimal{}, timestamp) } partyScores := []*types.PartyContributionScore{}