Skip to main content

Token

tokenEquals

Checks if the current instance is equal to another (has an identical chainId and address).

tokenEquals(token: Token!, other: Token!): Boolean!

tokenAmountEquals

Compares two TokenAmount types for equality, returning true if they have the same token and same amount.

tokenAmountEquals(
tokenAmount0: TokenAmount!
tokenAmount1: TokenAmount!
): Boolean!

tokenSortsBefore

Checks if the current instance sorts before another, by address.

tokenSortsBefore(token: Token!, other: Token!): Boolean!