ERC20
This contract is an ERC20 token.
Name
Humaniq
Symbol
HMQ
Decimals
8
Total Supply
207,143,695 HMQ
About
link
description
Humaniq (HMQ) is a cryptocurrency and operates on the Ethereum platform. Humaniq has a current supply of 207,143,695.03559843 with 185,811,695.03559843 in circulation. The last known price of Humaniq is 0.00710886 USD and is down -7.96 over the last 24 hours. It is currently trading on 8 active market(s) with $82,824.21 traded over the last 24 hours. More information can be found at https://humaniq.com/.
Stats
Public Functions
10
Event Types
3
Code Size
8,981 bytes
Constants (7) keyboard_arrow_up
State Variables (7) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
if (
balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]
) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
} else {
return false;
}
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) returns (bool success) {
if (
balances[_from] >= _value &&
allowed[_from][msg.sender] >= _value &&
balances[_to] + _value > balances[_to]
) {
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
} else {
return false;
}
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
issueTokens keyboard_arrow_up
Modifiers help
onlyMinter checks for the following:
Requirements help
maxTotalSupply
must be greater than or equal to
the result of calling add with totalSupply, tokenCount
Source Code
function issueTokens(address _for, uint256 tokenCount)
external
payable
onlyMinter
returns (bool)
{
if (tokenCount == 0) {
return false;
}
if (add(totalSupply, tokenCount) > maxTotalSupply) {
throw;
}
totalSupply = add(totalSupply, tokenCount);
balances[_for] = add(balances[_for], tokenCount);
Issuance(_for, tokenCount);
return true;
}
changeMinter keyboard_arrow_up
Modifiers help
onlyFounder checks for the following:
Source Code
function changeMinter(address newAddress) public onlyFounder returns (bool) {
// Forbid previous emission contract to distribute tokens minted during ICO stage
delete allowed[allocationAddressICO][minter];
minter = newAddress;
// Allow emission contract to distribute tokens minted during ICO stage
allowed[allocationAddressICO][minter] = balanceOf(allocationAddressICO);
}
changeFounder keyboard_arrow_up
Modifiers help
onlyFounder checks for the following:
Source Code
function changeFounder(address newAddress) public onlyFounder returns (bool) {
founder = newAddress;
}
changeMultisig keyboard_arrow_up
Modifiers help
onlyFounder checks for the following:
Source Code
function changeMultisig(address newAddress) public onlyFounder returns (bool) {
multisig = newAddress;
}
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.mul keyboard_arrow_up
Requirements help
Source Code
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
internal SafeMath.div keyboard_arrow_up
Source Code
function div(uint256 a, uint256 b) internal returns (uint256) {
assert(b > 0);
uint256 c = a / b;
assert(a == b * c + (a % b));
return c;
}