File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ latest_share_snapshots AS (
2020 MAX(sss.snapshot) as latest_share_snapshot
2121 FROM {{.activeRewardsTable}} ap
2222 CROSS JOIN (SELECT DISTINCT snapshot, strategy FROM staker_share_snapshots) sss
23- WHERE ap.reward_type = 'all_stakers '
23+ WHERE ap.reward_type = 'all_earners '
2424 AND sss.strategy = ap.strategy
2525 AND sss.snapshot <= ap.snapshot
2626 GROUP BY ap.reward_hash, ap.snapshot, ap.strategy
@@ -45,7 +45,7 @@ reward_snapshot_stakers AS (
4545 JOIN staker_share_snapshots sss ON
4646 sss.strategy = lss.strategy AND
4747 sss.snapshot = lss.latest_share_snapshot
48- WHERE ap.reward_type = 'all_stakers '
48+ WHERE ap.reward_type = 'all_earners '
4949 -- Parse out negative shares and zero multiplier so there is no division by zero case
5050 AND sss.shares > 0 and ap.multiplier != 0
5151),
You can’t perform that action at this time.
0 commit comments