I-1: Insufficient minimum validation for CoW Swap order expiry period
Description:
The setOrderConfig() function only checks that expiryPeriodSecs is non-zero:
if (config.expiryPeriodSecs == 0) revert CommonEventsAndErrors.ExpectedNonZero();
A value of 1 second is technically valid but impractical. The CoW Swap Watchtower polls every block, so orders with very short expiry periods will expire before they can be detected and executed.
Impact:
Informational
Recommendation:
A minimal value of 5 minutes seems more inline with a reasonable operational window for CoW Swap's infrastructure.
Developer Response:
Acknowledged - The check is to ensure the caller has at least set it to something non-zero.