Skip to content

Commit

Permalink
Merge pull request #11608 from vegaprotocol/11607
Browse files Browse the repository at this point in the history
fix: wire rank lottery into team reward distribution
  • Loading branch information
jeremyletang authored Aug 22, 2024
2 parents 428b119 + ba2a8fb commit d0d4536
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions core/rewards/contribution_reward_calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit d0d4536

Please sign in to comment.