2 integrations tagged with "conversion"
Convert a smallest-unit integer (e.g. '3750000') back to a human-readable decimal string (e.g. '3.75' for USDC with 6 decimals). Uses string math — no floating-point errors. Works for any ERC-20 token.
Convert a human-readable decimal amount (e.g. '3.75') to its smallest-unit integer representation (e.g. '3750000' for USDC with 6 decimals). Uses string math — no floating-point errors. Works for any ERC-20 token.