availableTokens()

CarbonController.sol
    function availableTokens(address token) external view returns (uint256);
 

This function is used to identify the amount of fees accumulated in the specified token. The returned amount is the sum of tokens from both the carbonController and carbonVortex own balance.

Function Arguments

NameTypeDescription

token

Token

The address of the token.

Returns

This returns the amount of fees accumulated by the protocol for the specified token.

Example

accumulatedFees(
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE // token
)

// Return
// 415000000000000000000 fees

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

Last updated