Troubleshooting
Last updated
Cause: stale order data.
Fix: fetch fresh order data right before fillOrder().
Cause: you changed one or more order fields.
Fix: pass API fields verbatim (incl. isLong, strikes, price, etc.).
Cause: USDC not approved.
Fix: check allowance(owner, OPTION_BOOK); call approve() if needed.
Cause: rounding or price changed.
Fix: always round down contracts (Math.floor(... * 1e6)).
Cause: indexer not caught up.
Fix: call /update, wait ~15s, then refetch /user/{addr}/positions.
Last updated

