Helpers
Getting the Pool Identifier
Typically each pool has a unique poolId
. The following method retrieves the currently selected pool ID:
Exception: Polygon BOB and Sepolia BOB pools share the same poolID
which is 0.
Returns
Promise
returns number
: pool identifier
Example
Get the Network (Chain) Name
Returns
Name of the current chain (e.g. polygon
, sepolia
etc). The name is retrieved locally from the integrated hard-coded mapping. The default value for unknown chains is unknown-chain
.
Example
Get Token Seller Contract
Returns
Promise
returns the tokenSeller
contract address.
Example
Last updated