collectionByPool()
This function is found in the BancorNetworkInfo.sol contract.
BancorNetwork.sol
function collectionByPool(Token pool) external view returns (IPoolCollection)
This function is used to get the address of the collection contract for a given liquidity pool.
Name | Type | Description |
---|---|---|
pool | Token | Input the contract address of a token. |
The function returns the address of the collection contract for the given token.
Type | Description |
---|---|
Contract address | The address of the pool collection contract. |
Last modified 1yr ago