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.
Parameters
Section titled “Parameters”unknown
decimals
Section titled “decimals”number
Returns
Section titled “Returns”bigint | null