A class for storing an API currency.

Hierarchy

Constructors

Properties

code: string

The currency code

An instance of CurrencyFormat for this currency

name: string

The currency name

Methods

  • Convert the value in this currency to USD as a BigNumber.

    Parameters

    Returns null | BigNumber

  • Convert a raw value to a BigNumber in human readable format.

    Parameters

    • value: BigNumber

      The raw value

    Returns BigNumber

  • Convert a BigNumber value in human readable format to a raw API BigNumber.

    Parameters

    • value: BigNumber

      The amount

    Returns BigNumber