@@ -74,6 +74,8 @@ operators_with_unique_stake AS (
7474 strategy,
7575 multiplier,
7676 reward_submission_date,
77+ registration_snapshot,
78+ slashable_until,
7779 -- Sum the weighted allocated stake across strategies
7880 SUM(allocated_stake * multiplier) OVER (
7981 PARTITION BY reward_hash, snapshot, operator
@@ -138,7 +140,10 @@ operators_with_slash_multiplier AS (
138140 ON DATE(b_reg.block_time) = owds.registration_snapshot
139141 LEFT JOIN blocks b_snapshot
140142 ON DATE(b_snapshot.block_time) = owds.snapshot
141- GROUP BY owds.*, owds.in_deregistration_queue
143+ GROUP BY owds.reward_hash, owds.snapshot, owds.token, owds.tokens_per_registered_snapshot_decimal,
144+ owds.avs, owds.operator_set_id, owds.operator, owds.strategy, owds.multiplier,
145+ owds.reward_submission_date, owds.registration_snapshot, owds.slashable_until,
146+ owds.operator_allocated_weight, owds.rn, owds.in_deregistration_queue
142147),
143148
144149-- Step 5: Apply slash multiplier to tokens
@@ -196,7 +201,7 @@ func (rc *RewardsCalculator) GenerateGold15OperatorOperatorSetUniqueStakeRewards
196201 query , err := rewardsUtils .RenderQueryTemplate (_15_goldOperatorOperatorSetUniqueStakeRewardsQuery , map [string ]interface {}{
197202 "destTableName" : destTableName ,
198203 "activeODRewardsTable" : allTableNames [rewardsUtils .Table_11_ActiveODOperatorSetRewards ],
199- "operatorAllocationSnapshotsTable" : allTableNames [ rewardsUtils . Table_OperatorAllocationSnapshots ] ,
204+ "operatorAllocationSnapshotsTable" : "operator_allocation_snapshots" ,
200205 "operatorShareSnapshotsTable" : "operator_share_snapshots" ,
201206 })
202207 if err != nil {
0 commit comments