strategiesByPairCount()

CarbonController.sol
    function strategiesByPairCount(Token token0, Token token1) external view returns (uint256)

This function is used to get the number of strategies for the specified token pair.

Function Arguments

NameTypeDescription

token0

Token

The token address of the first token in the pair

token1

Token

The token address of the second token in the pair

Returns

This function returns the number of strategies that exist for the specified token pair.

Example

strategiesByPairCount(
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, //token0
0x514910771AF9Ca656af840dff83E8264EcF986CA, //token1
)

// returns
// 612

For the ETH token, use the contract address: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

Last updated