Robotina token
ERC20
This contract is an ERC20 token.
Name
Robotina token
Symbol
ROX
Decimals
18
Total Supply
331,614,077 ROX
About link description
Robotina (ROX) is a cryptocurrency and operates on the Ethereum platform. Robotina has a current supply of 331,614,076.92142236 with 0 in circulation. The last known price of Robotina is 0.00202034 USD and is up 0.44 over the last 24 hours. It is currently trading on 6 active market(s) with $30.51 traded over the last 24 hours. More information can be found at https://robotinarox.io/.
Stats
Public Functions
14
Event Types
6
Code Size
6,616 bytes
Events (6) keyboard_arrow_up
Constants (1) keyboard_arrow_up
MAX_UINT256 Constant
uint256 help
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
State Variables (11) keyboard_arrow_up
Functions
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address _newOwner) public onlyOwner {
require(_newOwner != owner);
newOwner = _newOwner;
}
acceptOwnership keyboard_arrow_up
lockUntil keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function lockUntil(uint256 _untilBlock, string _reason) public onlyOwner {
lockedUntilBlock = _untilBlock;
ContractLocked(_untilBlock, _reason);
}
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Modifiers help
lockAffected checks for the following:
Source Code
function transfer(address _to, uint256 _value)
public
lockAffected
returns (bool success)
{
require(_to != 0x0 && _to != address(this));
balances[msg.sender] = safeSub(balanceOf(msg.sender), _value);
balances[_to] = safeAdd(balanceOf(_to), _value);
emit Transfer(msg.sender, _to, _value);
return true;
}
transferFrom keyboard_arrow_up
Modifiers help
lockAffected checks for the following:
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public lockAffected returns (bool success) {
require(_to != 0x0 && _to != address(this));
balances[_from] = safeSub(balanceOf(_from), _value);
balances[_to] = safeAdd(balanceOf(_to), _value);
allowances[_from][msg.sender] = safeSub(
allowances[_from][msg.sender],
_value
);
emit Transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Modifiers help
lockAffected checks for the following:
Source Code
function approve(address _spender, uint256 _value)
public
lockAffected
returns (bool success)
{
allowances[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
approveAndCall keyboard_arrow_up
Modifiers help
lockAffected checks for the following:
Source Code
function approveAndCall(
address _spender,
uint256 _value,
bytes _extraData
) public lockAffected returns (bool success) {
tokenRecipientInterface spender = tokenRecipientInterface(_spender);
approve(_spender, _value);
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
mint keyboard_arrow_up
Requirements help
Source Code
function mint(address _to, uint256 _amount) public {
require(msg.sender == mintingContractAddress);
supply = safeAdd(supply, _amount);
balances[_to] = safeAdd(balances[_to], _amount);
emit Mint(_to, _amount);
emit Transfer(0x0, _to, _amount);
}
burn keyboard_arrow_up
Source Code
function burn(uint256 _amount) public {
balances[msg.sender] = safeSub(balanceOf(msg.sender), _amount);
supply = safeSub(supply, _amount);
emit Burn(msg.sender, _amount);
emit Transfer(msg.sender, 0x0, _amount);
}
salvageTokensFromContract keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function salvageTokensFromContract(
address _tokenAddress,
address _to,
uint256 _amount
) public onlyOwner {
ERC20TokenInterface(_tokenAddress).transfer(_to, _amount);
}
killContract keyboard_arrow_up
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 SafeMath.safeAdd keyboard_arrow_up
Requirements help
Source Code
function safeAdd(uint256 x, uint256 y) internal constant returns (uint256 z) {
require(x <= MAX_UINT256 - y);
return x + y;
}
internal SafeMath.safeSub keyboard_arrow_up
internal SafeMath.safeMul keyboard_arrow_up
Source Code
function safeMul(uint256 x, uint256 y) internal constant returns (uint256 z) {
if (y == 0) {
return 0;
}
require(x <= (MAX_UINT256 / y));
return x * y;
}