Skip to content

@swapped/connect-sdk / format / roundUpDisplayDecimals

Function: roundUpDisplayDecimals()

roundUpDisplayDecimals(amount, token): number

Defined in: src/constants/crypto.constants.ts:714

Rounds up the amount to the nearest display decimals useful when working with min amount

Parameters

amount

number

token

TokenSymbol

Returns

number