• Check if two token amounts are the same. This tests for numeric equlity, not equality of object values.

    Example

    const a = TokenAmount.create(1, 2);
    const b = TokenAmount.create(100, 4);
    console.log(TokenAmount.equals(a, b)); // true

    Returns

    True if they are equal.

    Parameters

    • left: TokenAmount
    • right: TokenAmount

    Returns boolean

Generated using TypeDoc