ERC20
This contract is an ERC20 token.
Name
Quantum
Symbol
QAU
Decimals
8
Total Supply
2,087,571 QAU
About
Stats
Public Functions
9
Event Types
3
Code Size
3,362 bytes
Events (3) keyboard_arrow_up
Functions
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
totalSupply keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
if (_to == 0x0) return false;
if (balances[msg.sender] < _value) return false;
if (balances[_to] + _value < balances[_to]) return false;
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value) returns (bool success) {
allowances[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
approveAndCall keyboard_arrow_up
Source Code
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
if (_to == 0x0) return false;
if (balances[_from] < _value) return false;
if (balances[_to] + _value < balances[_to]) return false;
if (_value > allowances[_from][msg.sender]) return false;
balances[_from] -= _value;
balances[_to] += _value;
allowances[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
}
burn keyboard_arrow_up
Source Code
function burn(uint256 _value) returns (bool success) {
if (balances[msg.sender] < _value) return false;
balances[msg.sender] -= _value;
_totalSupply -= _value;
Burn(msg.sender, _value);
return true;
}
burnFrom keyboard_arrow_up
Source Code
function burnFrom(address _from, uint256 _value) returns (bool success) {
if (balances[_from] < _value) return false;
if (_value > allowances[_from][msg.sender]) return false;
balances[_from] -= _value;
_totalSupply -= _value;
Burn(_from, _value);
return true;
}