tradingLiquidity()
This function is in the BancorNetworkInfo.sol contract.
Last updated
This function is in the BancorNetworkInfo.sol contract.
Last updated
This function is used to determine the available trading liquidity for a given token.
Name | Type | Description |
---|---|---|
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 |
---|---|
Example Response:
In the example above:
BNT available to trade: 35,507,645.789415459211470741
TOKEN available to trade: 6,814,142.261515743619858238
pool
Token
The contract address of the token. For example, DAI: 0x6B175474E89094C44Da98b954EedeAC495271d0F
uint256
The available trading liquidity in BNT
uint256
The number of tokens available to trade in the specified token