Function getUsdValue

  • Gets the usd value for an amount of a token

    Parameters

    • token: TokenInfo

      the token for which to get the usd value

    • amount: BigNumber

      the amount of token for which to get the value of

    Returns Promise<undefined | number>

    the usd value of the amount of token, or undefined if a price cannot be fetched

Generated using TypeDoc