If the swap in amount or swap out amount is less than 1000 (raw balance), then the swap will fail. For that reason also such an amount should be disallowed by the UI, otherwise it looks buggy to the user.
Reason
The swap in and swap out amounts are temporarily moved to the router contract. If these amounts are less than 1000 (raw balance), then the router contract would temporarily hold a non-zero amount less than the existential deposit, which we defined to be 1000 (raw balance).
If the swap in amount or swap out amount is less than 1000 (raw balance), then the swap will fail. For that reason also such an amount should be disallowed by the UI, otherwise it looks buggy to the user.
Reason
The swap in and swap out amounts are temporarily moved to the router contract. If these amounts are less than 1000 (raw balance), then the router contract would temporarily hold a non-zero amount less than the existential deposit, which we defined to be 1000 (raw balance).