ERC20
This contract is an ERC20 token.
Name
CZR
Symbol
CZR
Decimals
18
Total Supply
1,618,033,988 CZR
About
link
CanonChain (CZR) is a cryptocurrency token and operates on the Ethereum platform. CanonChain has a current supply of 1,618,033,988 with 582,212,719.278 in circulation. The last known price of CanonChain is $0.004767 USD and is down -26.48% over the last 24 hours. It is currently trading on 2 active market(s) with $732.34 traded over the last 24 hours. More information can be found at http://www.canonchain.com/.
Stats
Public Functions
9
Event Types
3
Code Size
8,747 bytes
Events (3) keyboard_arrow_up
Functions
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
transferFrom keyboard_arrow_up
Requirements help
Source Code
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
approveAndCall keyboard_arrow_up
Source Code
function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
burn keyboard_arrow_up
Requirements help
Source Code
function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
Burn(msg.sender, _value);
return true;
}
burnFrom keyboard_arrow_up
Requirements help
Source Code
function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Subtract from the targeted balance
allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance
totalSupply -= _value; // Update totalSupply
Burn(_from, _value);
return true;
}
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
freezeAccount keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
FrozenFunds(target, freeze);
}
init keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Requirements help
Source Code
function init(address[] addrs, uint256[] balances) onlyOwner public {
require(addrs.length == balances.length);
uint totalValue;
for (uint i = 0; i < addrs.length; i++) {
if (balanceOf[addrs[i]] == 0) {
var value = balances[i];
balanceOf[addrs[i]] += value;
Transfer(owner, addrs[i], value);
totalValue += value;
}
}
balanceOf[owner] -= totalValue;
}