Stop reinventing the wheel.
just use...
numora.
The Standard for
DeFi Numeric Inputs
Native inputs destroy precision. Regex is fragile.
numora solves the nightmares of building all financial inputs validation, formatting and sanitization.
0 dependencies
7.1kb gzipped
framework agnostic
Built for the
Swap Interface
Handling numeric state in DeFi is deceptively hard. You need to sanitize "bad" keystrokes, handle scientific notation, calculate the caret position and more...
Loading prices...
Input fields powered by numora
We analyzed the industry leaders.
We didn't guess how to handle money, we analyzed the DeFi leaders. Numora's core logic is a unification of the audited, hardened implementations used in the most trusted protocols in DeFi. We extracted the logic, removed the framework dependencies, and standardized the API.