• Utility function to scale some amount to a given number of decimals

    This is useful for things like the TokenBridge, where we want to scale the amount from some the over-the-wire 8 decimals

    Parameters

    • amount: amount.Amount

      the amount to scale

    • toDecimals: number

      the number of decimals to scale to

    Returns amount.Amount

    the scaled amount

Generated using TypeDoc