tradingLiquidity()

This function is in the BancorNetworkInfo.sol contract.

Function tradingLiquidity()

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.

Function Arguments

Name
Type
Description

pool

Token

The contract address of the token. For example, DAI: 0x6B175474E89094C44Da98b954EedeAC495271d0F

Return Variables

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 updated