amountAvailableForTrading()

CarbonPOL.sol
    function amountAvailableForTrading(Token token) external view returns (uint128);

This function allows to identify the amount of token units that is available for trading.

Function Arguments

NameTypeDescription

token

Token

The token address of the token you would like to trade out of the contract. Notice, trading ETH out of the contract requires the caller to send BNT while all other tokens require the caller to send ETH

Example

tradingEnabled(
0x48Fb253446873234F2fEBbF9BdeAA72d9d387f94 //token address
)
returns (
9249858830919216555052 //amount of tokens available for trading in wei
)

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

Last updated