Dev.to
7/14/2026

The original title is about a bug in Polymarket's order path related to off-grid prices. Let me rewrite this as a concise headline.
Original: Clearing an off grid price bug out of Polymarket's order path
Short summary
A bug in Polymarket's Python SDK validated decimal place count instead of tick-size grid membership, allowing off-grid prices like 0.007 on a 0.005 tick market to pass validation and get signed via EIP-712, only to be rejected by the exchange. The fix adds an eight-line modulo check after the existing decimal check, validated by 23,000 exhaustive test cases with zero false rejects or accepts. The patch is purely additive and merged upstream.
- •Polymarket SDK validated decimal places instead of tick-grid multiples, allowing off-grid prices through
- •Off-grid prices get EIP-712 signed then rejected by exchange, wasting round trips on half-step tick markets
- •Fix adds 8-line modulo check, validated by 23,000 exhaustive cases with zero false results
Generated with AI, which can make mistakes.
Is this a good recommendation for you?


