Creates a token amount from its integer representation and a number of decimals.
The token amount.
If the value/decimals exceeds the maximum allowed or is negative.
The integer representation of the token amount.
The decimals of the token amount, defining the precision at which amounts of the token can be specified.
Generated using TypeDoc
Creates a token amount from its integer representation and a number of decimals.
Returns
The token amount.
Throws
If the value/decimals exceeds the maximum allowed or is negative.