Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
remove restriction on quote rewards for limit orders
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
fhenneke committed Jan 4, 2024
1 parent 30655d6 commit 17b52ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sql/orderbook/order_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 17b52ab

Please sign in to comment.