tradingEnabled()

CarbonPOL.sol
    function tradingEnabled(Token token) external view returns (bool);

This function allows you to identify if there token is available for trading.

Notice, all tokens are paired with ETH which means the caller needs to send ETH to the contract in order to receive the tokens.

However, to receive ETH, the caller needs to send BNT to the contract.

Function Arguments

NameTypeDescription

token

Token

The token address of the token you would like to trade out of the contract.

Example

tradingEnabled(
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 //token address
)
returns (
true/false //true indicates that trading is enable for this token
)

To trade directly with the ETH token, use the contract address: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

Last updated