tradingLiquidity()
This function is in the BancorNetworkInfo.sol contract.
BancorNetworkInfo.sol
function tradingLiquidity(Token pool) external view returns (TradingLiquidity memory);
This function is used to determine the available trading liquidity for a given token.
Name | Type | Description |
---|---|---|
pool | Token |
This function returns two numbers: the number of BNT available to trade for the indicated pool, and the number of tokens available to trade.
Variable Type | Returns |
---|---|
uint256 | The available trading liquidity in BNT |
uint256 | The number of tokens available to trade in the specified token |
Example Response:
tuple : 35507645789415459211470741,6814142261515743619858238
In the example above:
- BNT available to trade: 35,507,645.789415459211470741
- TOKEN available to trade: 6,814,142.261515743619858238
Last modified 1yr ago