diff --git a/pkg/rewards/operatorAvsSplitSnapshots.go b/pkg/rewards/operatorAvsSplitSnapshots.go index 0634fbf0..fea5c916 100644 --- a/pkg/rewards/operatorAvsSplitSnapshots.go +++ b/pkg/rewards/operatorAvsSplitSnapshots.go @@ -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 @@ -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 { diff --git a/pkg/rewards/operatorPISplitSnapshots.go b/pkg/rewards/operatorPISplitSnapshots.go index c7e8c2bf..710b5225 100644 --- a/pkg/rewards/operatorPISplitSnapshots.go +++ b/pkg/rewards/operatorPISplitSnapshots.go @@ -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 @@ -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 {