Skip to content

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 7571656 commit f610986
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions queries/orderbook/quote_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ with winning_quotes as (SELECT concat('0x', encode(oq.solver, 'hex')) as 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 BETWEEN {{start_block}} AND {{end_block}}
WHERE block_number BETWEEN {{start_block}} AND {{end_block}}
AND oq.solver != '\x0000000000000000000000000000000000000000')

SELECT solver, count(*) AS num_quotes
Expand Down

0 comments on commit f610986

Please sign in to comment.