Skip to content
docs

decimalToUnits

decimalToUnits(value, decimals): bigint | null

Defined in: protocol-swap2-layerswap/src/api.ts:133

A JSON number from Layerswap (a float) → base units, rounded DOWN, so an amount shown or held as a minimum is never more than Layerswap said. Null for anything that is not a finite, non-negative number.

unknown

number

bigint | null