Skip to content

Commit

Permalink
fix to lop partial fills (#7487)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-morrow authored Jan 21, 2025
1 parent 383642f commit 570b50e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ select
, coalesce(dst_amount, taking_amount) as taking_amount
, order_hash
, map_concat(flags, map_from_entries(array[
('first', row_number() over(partition by coalesce(order_hash, tx_hash) order by block_number, tx_index, call_trace_address) = 1)
('first', row_number() over(partition by coalesce(order_hash, tx_hash), tx_success and call_success order by block_number, tx_index, call_trace_address) = 1)
, ('direct', call_from = tx_from and call_to = tx_to) -- == cardinality(call_trace_address) = 0, but because of zksync trace structure we switched to this
])) as flags
, remains
Expand Down

0 comments on commit 570b50e

Please sign in to comment.