Skip to content

fix: reject degenerate zero-amount orders at handler validation#26

Open
mfw78 wants to merge 1 commit into
feat/order-type-poll-hintsfrom
fix/degenerate-order-validation
Open

fix: reject degenerate zero-amount orders at handler validation#26
mfw78 wants to merge 1 commit into
feat/order-type-poll-hintsfrom
fix/degenerate-order-validation

Conversation

@mfw78

@mfw78 mfw78 commented Jul 10, 2026

Copy link
Copy Markdown

A fill-or-kill order with a zero amount settles without ever incrementing filledAmount, so the native replay guard never trips and the order is indefinitely replayable. Reject zero amounts at handler validation (closes #12), enforce the TWAP parameter gate on every entry path (closes #4), and bound the simulation fuzz so the suite runs green within test memory limits.

Part of #1.

A fill-or-kill order with sellAmount == 0 settles without ever
incrementing filledAmount, so the native replay guard never trips and
the order is indefinitely replayable. Reject zero amounts at handler
validation so such an order is never generated, and bound the TWAP
simulation fuzz so the suite runs green within test memory limits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant