Nonce mismatch
Occasionally a ‘nonce mismatch’ error can come up when placing an order, resulting in a rejected order. This does not result in deducted gas or trading fees. What you can do as user is to refresh, reconnect your wallet and place a new order.
When a user signs an order, the nonce is included in the signed message. So when the swap is submitted, user's nonce has to match the signed nonce. If the user or the market maker increases their nonce before the swap is submitted (by making any other transaction, eg transfer, withdraw or another swap) then the order they signed becomes invalid. This becomes especially apparent when a market maker has to process a lot of swaps at a time.
We opened multiple market maker bots which made this issue basically non-apparent.
Last modified 3mo ago
Copy link