ERC20
This contract is an ERC20 token.
Name
STACS
Symbol
STACS
Decimals
18
Total Supply
900,000,000 STACS
About
Stats
Public Functions
23
Event Types
3
Code Size
13,137 bytes
Library Use
Uses SafeMath for uint256.
State Variables (12) keyboard_arrow_up
Functions
requestPause keyboard_arrow_up
requestUnpause keyboard_arrow_up
cancelRequestPause keyboard_arrow_up
approveRequestPause keyboard_arrow_up
Parameters help
This function has no parameters.
Modifiers help
onlyApprover checks for the following:
Requirements help
pausePending must be true
Source Code
function approveRequestPause() public onlyApprover {
require(pausePending);
pausePending = false;
paused = true;
}
rejectRequestPause keyboard_arrow_up
cancelRequestUnpause keyboard_arrow_up
approveRequestUnpause keyboard_arrow_up
Parameters help
This function has no parameters.
Modifiers help
onlyApprover checks for the following:
Requirements help
unpausePending must be true
Source Code
function approveRequestUnpause() public onlyApprover {
require(unpausePending);
unpausePending = false;
paused = false;
}
rejectRequestUnpause keyboard_arrow_up
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) public onlyOwner {
pendingOwner = newOwner;
}
claimOwnership keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value)
public
whenNotPaused
returns (bool success)
{
return super.transfer(_to, _value);
}
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Requirements help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public whenNotPaused returns (bool) {
return super.transferFrom(_from, _to, _value);
}
approve keyboard_arrow_up
Source Code
function approve(address spender, uint256 value)
public
whenNotPaused
returns (bool)
{
return super.approve(spender, value);
}
increaseAllowance keyboard_arrow_up
Source Code
function increaseAllowance(address _spender, uint256 _addedValue)
public
returns (bool)
{
allowed[msg.sender][_spender] = (
allowed[msg.sender][_spender].add(_addedValue)
);
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
decreaseAllowance keyboard_arrow_up
Source Code
function decreaseAllowance(address _spender, uint256 _subtractedValue)
public
returns (bool)
{
uint256 oldValue = allowed[msg.sender][_spender];
if (_subtractedValue >= oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
mint keyboard_arrow_up
Modifiers help
onlyMigrationOperator checks for the following:
Requirements help
migrationPhase must be true
Source Code
function mint(address[] _accounts, uint256[] _amounts)
public
onlyMigrationOperator
{
require(migrationPhase);
uint256 length = _accounts.length;
require(length == _amounts.length);
for (uint256 i = 0; i < length; i++) {
balances[_accounts[i]] = balances[_accounts[i]].add(_amounts[i]);
emit Transfer(address(0), _accounts[i], _amounts[i]);
totalSupply_ = totalSupply_.add(_amounts[i]);
}
require(totalSupply_ <= MAX_TOKEN_SUPPLY);
}
endMigration keyboard_arrow_up
transferAnyERC20Token keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferAnyERC20Token(address tokenAddress, uint256 tokens)
public
onlyOwner
returns (bool success)
{
return ERC20Basic(tokenAddress).transfer(owner, tokens);
}
increaseAllowance keyboard_arrow_up
Source Code
function increaseAllowance(address spender, uint256 addedValue)
public
whenNotPaused
returns (bool success)
{
return super.increaseAllowance(spender, addedValue);
}
decreaseAllowance keyboard_arrow_up
Source Code
function decreaseAllowance(address spender, uint256 subtractedValue)
public
whenNotPaused
returns (bool success)
{
return super.decreaseAllowance(spender, subtractedValue);
}
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.