Getting the pool from the token
Function Signature
Description
The getPoolFromToken
function takes in a Token
object and returns a Pool
object both are Address
objects. The pool address return, doesn't necessarily mean that the pool exists, If the Token
is the native chain token it returns the Wrapped native chain token Pool.
Parameters
xfai
: The xfai classtoken
: The token object
Example Usage
Last updated