The off-chain orders will become fillable even after cancelling orders in case the nonce is higher than current nonce.
As per the comment above the cancelAllOffchainOrders
function -
We understand that users must sign orders with latest nonce in order for the function to be able to cancel the orders. But in case of nonce higher than current nonce, checks must be present to ensure the nonce is latest.
In the cancelAllOffchainOrders
no check is present to ensure or handle the case where nonce is greater than current nonce.
In case owner has set a future nonce, cancelAllOffchainOrders
will not be able to cancel off-chain orders and the offchain orders will be fillable.
Manual review
Checks must be implemented to handle the scenario in where user has set nonce greater than current nonce.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.