diff --git a/src/sql/orderbook/batch_rewards.sql b/src/sql/orderbook/batch_rewards.sql index b164bd5e..a7d6c079 100644 --- a/src/sql/orderbook/batch_rewards.sql +++ b/src/sql/orderbook/batch_rewards.sql @@ -15,8 +15,8 @@ WITH observed_settlements AS ( AND s.log_index = so.log_index JOIN settlement_scores ss ON s.auction_id = ss.auction_id WHERE - ss.block_deadline > { { start_block } } - AND ss.block_deadline <= { { end_block } } + ss.block_deadline > {{start_block}} + AND ss.block_deadline <= {{end_block}} ), auction_participation as ( SELECT @@ -30,8 +30,8 @@ auction_participation as ( auction_participants JOIN settlement_scores ss ON auction_participants.auction_id = ss.auction_id WHERE - block_deadline > { { start_block } } - AND block_deadline <= { { end_block } } + block_deadline > {{start_block}} + AND block_deadline <= {{end_block}} GROUP BY ss.auction_id ),