ERC20
This contract is an ERC20 token.
Name
EBCoin
Symbol
EBC
Decimals
18
Total Supply
10,295,055,166 EBC
About
Stats
Public Functions
11
Event Types
8
Code Size
6,375 bytes
Library Use
Uses SafeMath for uint256.
Events (8) keyboard_arrow_up
State Variables (7) keyboard_arrow_up
Functions
changeOwner keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function changeOwner(address _newOwner) public onlyOwner {
require(_newOwner != address(0));
address oldOwner = owner;
if (oldOwner != _newOwner) {
owner = _newOwner;
OwnerChanged(oldOwner, _newOwner);
}
}
changeManager keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Requirements help
Source Code
function changeManager(address _newManager) public onlyOwner {
require(_newManager != address(0));
address oldManager = manager;
if (oldManager != _newManager) {
manager = _newManager;
ManagerChanged(oldManager, _newManager);
}
}
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Modifiers help
canTransfer checks for the following:
Requirements help
Source Code
function transfer(address _to, uint256 _value)
public
canTransfer(msg.sender)
returns (bool)
{
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Modifiers help
canTransfer checks for the following:
Requirements help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public canTransfer(_from) returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
Transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
mint keyboard_arrow_up
Modifiers help
onlyOwnerOrManager checks for the following:
One or more of the following:
-
manager
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
Source Code
function mint(
address _to,
uint256 _value,
uint256 _releaseTime
) public onlyOwnerOrManager returns (bool) {
require(_to != address(0));
totalSupply = totalSupply.add(_value);
balances[_to] = balances[_to].add(_value);
Mint(_to, _value);
Transfer(0x0, _to, _value);
setReleaseTime(_to, _releaseTime);
return true;
}
burn keyboard_arrow_up
Modifiers help
onlyOwnerOrManager checks for the following:
One or more of the following:
-
manager
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
Requirements help
Source Code
function burn(address _from, uint256 _value)
public
onlyOwnerOrManager
returns (bool)
{
require(_from != address(0));
require(_value <= balances[_from]);
balances[_from] = balances[_from].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(_from, _value);
return true;
}
setReleaseTime keyboard_arrow_up
Modifiers help
onlyOwnerOrManager checks for the following:
One or more of the following:
-
manager
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
Source Code
function setReleaseTime(address _owner, uint256 _newReleaseTime)
public
onlyOwnerOrManager
returns (bool)
{
require(_owner != address(0));
uint256 oldReleaseTime = releaseTime[_owner];
if (oldReleaseTime != _newReleaseTime) {
releaseTime[_owner] = _newReleaseTime;
ReleaseTimeChanged(_owner, oldReleaseTime, _newReleaseTime);
return true;
}
return false;
}
setReleased keyboard_arrow_up
Modifiers help
onlyOwnerOrManager checks for the following:
One or more of the following:
-
manager
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
Source Code
function setReleased(bool _newReleased)
public
onlyOwnerOrManager
returns (bool)
{
bool oldReleased = released;
if (oldReleased != _newReleased) {
released = _newReleased;
ReleasedChanged(oldReleased, _newReleased);
return true;
}
return false;
}
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.