Function scaleAmount

  • Scales a token amount with fewer decimals to the token's decimal representation.

    Returns

    The scaled token amount.

    Throws

    If the token amount is not compatible with the token.

    Parameters

    • token: Token

      The token to scale the amount for.

    • amount: TokenAmount

      The amount to scale.

    Returns Type

Generated using TypeDoc