From 17b52ab4839bf9e2c35bf658b7145911be7423b6 Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Thu, 4 Jan 2024 13:01:31 +0100 Subject: [PATCH] remove restriction on quote rewards for limit orders before this change only market orders were eligible for quote rewards and only in that case a quote_solver was fetched. with this change, a quote_solver is always fetched (if it exists) --- src/sql/orderbook/order_rewards.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sql/orderbook/order_rewards.sql b/src/sql/orderbook/order_rewards.sql index 5fa56ea1..ec0bb311 100644 --- a/src/sql/orderbook/order_rewards.sql +++ b/src/sql/orderbook/order_rewards.sql @@ -25,8 +25,7 @@ with trade_hashes as (SELECT settlement.solver, FROM trades t INNER JOIN orders o ON order_uid = uid JOIN order_quotes oq ON t.order_uid = oq.order_uid - WHERE o.class = 'market' - AND block_number > {{start_block}} + WHERE block_number > {{start_block}} AND block_number <= {{end_block}} AND oq.solver != '\x0000000000000000000000000000000000000000')