Skip to content

Commit

Permalink
account for operator in calculating total_weight
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Dec 11, 2024
1 parent 171d8b1 commit b53a730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rewards/9_goldStakerODRewardAmounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ distinct_stakers AS (
staker_weight_sum AS (
SELECT
*,
SUM(staker_weight) OVER (PARTITION BY reward_hash, snapshot) AS total_weight
SUM(staker_weight) OVER (PARTITION BY reward_hash, operator, snapshot) AS total_weight
FROM distinct_stakers
),
-- Calculate staker proportion of tokens for each reward and snapshot
Expand Down

0 comments on commit b53a730

Please sign in to comment.