Trade Token X
ERC20
This contract is an ERC20 token.
Name
Trade Token X
Symbol
TIOx
Decimals
18
Total Supply
223,534,823 TIOx
About
Stats
Public Functions
13
Event Types
3
Code Size
13,121 bytes
State Variables (9) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Modifiers help
onlyValidAddress checks for the following:
onlySufficientBalance checks for the following:
Source Code
function transfer(address to, uint256 value)
public
onlyValidAddress(to)
onlySufficientBalance(msg.sender, value)
returns (bool)
{
_balanceOf[msg.sender] = _balanceOf[msg.sender].sub(value);
_balanceOf[to] = _balanceOf[to].add(value);
emit Transfer(msg.sender, to, value);
return true;
}
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Modifiers help
onlyValidAddress checks for the following:
onlySufficientBalance checks for the following:
onlySufficientAllowance checks for the following:
Source Code
function transferFrom(
address from,
address to,
uint256 value
)
public
onlyValidAddress(to)
onlySufficientBalance(from, value)
onlySufficientAllowance(from, msg.sender, value)
returns (bool)
{
_balanceOf[from] = _balanceOf[from].sub(value);
_balanceOf[to] = _balanceOf[to].add(value);
_allowance[from][msg.sender] = _allowance[from][msg.sender].sub(value);
emit Transfer(from, to, value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address spender, uint256 value)
public
onlyValidAddress(spender)
returns (bool)
{
_allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
increaseAllowance keyboard_arrow_up
Source Code
function increaseAllowance(address spender, uint256 addedValue)
public
onlyValidAddress(spender)
returns (bool)
{
_allowance[msg.sender][spender] = _allowance[msg.sender][spender].add(
addedValue
);
emit Approval(msg.sender, spender, _allowance[msg.sender][spender]);
return true;
}
decreaseAllowance keyboard_arrow_up
Modifiers help
onlyValidAddress checks for the following:
onlySufficientAllowance checks for the following:
Source Code
function decreaseAllowance(address spender, uint256 subtractedValue)
public
onlyValidAddress(spender)
onlySufficientAllowance(msg.sender, spender, subtractedValue)
returns (bool)
{
_allowance[msg.sender][spender] = _allowance[msg.sender][spender].sub(
subtractedValue
);
emit Approval(msg.sender, spender, _allowance[msg.sender][spender]);
return true;
}
burn keyboard_arrow_up
burnFrom keyboard_arrow_up
Modifiers help
onlyValidAddress checks for the following:
onlySufficientAllowance checks for the following:
Source Code
function burnFrom(address from, uint256 amount)
public
onlyValidAddress(from)
onlySufficientAllowance(from, msg.sender, amount)
{
_allowance[from][msg.sender] = _allowance[from][msg.sender].sub(amount);
_burn(from, amount);
}
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
onlyValidAddress checks for the following:
Source Code
function transferOwnership(address newOwner)
public
onlyOwner
onlyValidAddress(newOwner)
{
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
mint keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
onlyValidAddress checks for the following:
onlyNotExceedingCap checks for the following:
Source Code
function mint(address to, uint256 amount)
public
onlyOwner
onlyValidAddress(to)
onlyNotExceedingCap(amount)
returns (bool)
{
_mint(to, amount);
return true;
}
mintMany keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
onlyNotExceedingCap checks for the following:
Requirements help
Source Code
function mintMany(address[] addresses, uint256[] amounts)
public
onlyOwner
onlyNotExceedingCap(_sum(amounts))
returns (bool)
{
require(
addresses.length == amounts.length,
"Addresses array must be the same size as amounts array"
);
for (uint256 i = 0; i < addresses.length; i++) {
_mint(addresses[i], amounts[i]);
}
return true;
}
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.
internal MintableToken._mint keyboard_arrow_up
Source Code
function _mint(address to, uint256 amount) internal onlyValidAddress(to) {
_totalSupply = _totalSupply.add(amount);
_balanceOf[to] = _balanceOf[to].add(amount);
emit Transfer(address(0), to, amount);
}
internal MintableToken._sum keyboard_arrow_up
internal BurnableToken._burn keyboard_arrow_up
Modifiers help
onlySufficientBalance checks for the following:
Source Code
function _burn(address from, uint256 amount)
internal
onlySufficientBalance(from, amount)
{
_totalSupply = _totalSupply.sub(amount);
_balanceOf[from] = _balanceOf[from].sub(amount);
emit Transfer(from, address(0), amount);
}