Expand description
Shared formatting utilities for consistent presentation across all chains.
Functionsยง
- format_
large_ number - Formats a large number with K, M, B suffixes (no currency prefix).
- format_
price - A price at the decimals of its own size (
price_decimals). - format_
price_ usd format_pricein USD.- format_
token_ balance - Formats a raw token balance string with proper decimals and K/M/B suffixes.
- format_
usd - price_
decimals - Formats a USD value with K, M, B suffixes.