Companion

object Companion

Properties

Link copied to clipboard
const val MAX_TOKEN_DECIMALS: Int = 38

Maximum number of decimal places accepted by amountToBaseUnits.

Functions

Link copied to clipboard
fun amountToBaseUnits(amount: String, decimals: Int): BigInteger

Converts a positive decimal amount string to its base-units value scaled by decimals decimal places.