Description
HTML type="number" inputs still allow users to type characters like "e" (exponent), "+", and "-", which breaks our swap math.
If a user pastes text or invalid characters into the amount field, the app calculates NaN and crashes.
We need to implement a strict input mask or regex filter that absolutely prevents anything other than numbers and a single decimal point from being entered.
This bulletproofs the UI against formatting bugs.
Requirements