Skip to content

Commit

Permalink
Update src/sql/orderbook/barn_order_rewards.sql
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Henneke <[email protected]>
  • Loading branch information
harisang and fhenneke authored Apr 9, 2024
1 parent dda14f1 commit 279337e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sql/orderbook/barn_order_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ order_surplus AS (
ON o.uid = oq.order_uid
WHERE
ss.block_deadline >= {{start_block}}
-- since this table filtered on block_deadline is joined with another table filtered on block_number
-- the bound for this table need to be a bit looser.
AND ss.block_deadline <= {{end_block}} + 100
),
order_protocol_fee AS (
Expand Down

0 comments on commit 279337e

Please sign in to comment.