Appearance
@swapped/connect-sdk / format / roundUpDisplayDecimals
Function: roundUpDisplayDecimals()
roundUpDisplayDecimals(
amount,token,network?):number
Defined in: src/constants/crypto.constants.ts:599
Rounds up the amount to the nearest display decimals. Useful when working with min amount — never returns below the input. Uses decimal-aware ceil so values already on-grid (e.g. 0.14 USDT) stay put.
Parameters
amount
number
token
network?
Returns
number