toUnderlyingDecimals(amount)
Converts a raw BigInt amount into a human-readable decimal-adjusted string based on the underlying asset’s decimals. Useful to displaying underlying balances (e.g., USDC, WETH) and to Interpret preview results from previewConversion() .
Parameters
amount: bigint— raw token amount in base units.
Returns
Promise<string>— formatted string with decimals applied.