Theta Token
ERC20
This contract is an ERC20 token.
Name
Theta Token
Symbol
THETA
Decimals
18
Total Supply
1,000,000,000 THETA
About
Stats
Public Functions
14
Event Types
2
Code Size
5,851 bytes
Library Use
Uses SafeMath for uint.
State Variables (6) keyboard_arrow_up
Functions
changeController keyboard_arrow_up
Modifiers help
only_controller checks for the following:
Source Code
function changeController(address _newController) public only_controller {
controller = _newController;
}
getController keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
transferFrom keyboard_arrow_up
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value)
public
returns (bool success)
{
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) {
revert();
}
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
mint keyboard_arrow_up
Modifiers help
only_controller checks for the following:
Source Code
function mint(address _owner, uint256 _amount)
external
only_controller
returns (bool)
{
totalSupply = totalSupply.add(_amount);
balances[_owner] = balances[_owner].add(_amount);
Transfer(0, _owner, _amount);
return true;
}
allowPrecirculation keyboard_arrow_up
Modifiers help
only_controller checks for the following:
Source Code
function allowPrecirculation(address _addr) public only_controller {
precirculated[_addr] = true;
}
disallowPrecirculation keyboard_arrow_up
Modifiers help
only_controller checks for the following:
Source Code
function disallowPrecirculation(address _addr) public only_controller {
precirculated[_addr] = false;
}
isPrecirculationAllowed keyboard_arrow_up
changeUnlockTime keyboard_arrow_up
Modifiers help
only_controller checks for the following:
Source Code
function changeUnlockTime(uint256 _unlockTime) public only_controller {
unlockTime = _unlockTime;
}
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.