Amount

constructor(tokenQuantity: Long, token: T)

Automatic conversion constructor from number of tokens to an Amount using getDisplayTokenSize to determine the displayTokenSize.

Parameters

tokenQuantity

the number of tokens represented.

token

the type of the token, for example a Currency object.


constructor(quantity: Long, displayTokenSize: BigDecimal, token: T)

Parameters

T

the type of the token, for example Currency. T should implement TokenizableAssetInfo if automatic conversion to/from a display format is required.