Skip to content

Commit

Permalink
fix reference to rewardsUtils.RenderQueryTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Dec 5, 2024
1 parent ddbafb3 commit 61a224a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/rewards/operatorAvsSplitSnapshots.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package rewards

import "github.com/Layr-Labs/sidecar/pkg/rewardsUtils"

const operatorAvsSplitSnapshotQuery = `
WITH operator_avs_splits_with_block_info as (
select
Expand Down Expand Up @@ -65,7 +67,7 @@ select * from final_results
func (r *RewardsCalculator) GenerateAndInsertOperatorAvsSplitSnapshots(snapshotDate string) error {
tableName := "operator_avs_split_snapshots"

query, err := renderQueryTemplate(operatorAvsSplitSnapshotQuery, map[string]string{
query, err := rewardsUtils.RenderQueryTemplate(operatorAvsSplitSnapshotQuery, map[string]string{
"cutoffDate": snapshotDate,
})
if err != nil {
Expand Down
4 changes: 3 additions & 1 deletion pkg/rewards/operatorPISplitSnapshots.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package rewards

import "github.com/Layr-Labs/sidecar/pkg/rewardsUtils"

const operatorPISplitSnapshotQuery = `
WITH operator_pi_splits_with_block_info as (
select
Expand Down Expand Up @@ -62,7 +64,7 @@ select * from final_results
func (r *RewardsCalculator) GenerateAndInsertOperatorPISplitSnapshots(snapshotDate string) error {
tableName := "operator_pi_split_snapshots"

query, err := renderQueryTemplate(operatorPISplitSnapshotQuery, map[string]string{
query, err := rewardsUtils.RenderQueryTemplate(operatorPISplitSnapshotQuery, map[string]string{
"cutoffDate": snapshotDate,
})
if err != nil {
Expand Down

0 comments on commit 61a224a

Please sign in to comment.