Function assetFromString

  • Creates an Asset by a given string

    This helper function expects a string with following naming convention: AAA.BBB-CCC where chain: AAA ticker (optional): BBB symbol: BBB-CCC or CCC (if no ticker available)

    Parameters

    • s: string

      The given string.

    Returns null | Asset

    The asset from the given string.

    See

    https://docs.thorchain.org/developers/transaction-memos#asset-notation

    If the naming convention fails, it returns null

Generated using TypeDoc