Gene Source Code Chain
ERC20
This contract is an ERC20 token.
Name
Gene Source Code Chain
Symbol
Gene
Decimals
18
Total Supply
2,000,000,000 Gene
About link
Gene Source Code Chain (GENE) is a cryptocurrency and operates on the Ethereum platform. Gene Source Code Chain has a current supply of 2,000,000,000 with 375,244,800 in circulation. The last known price of Gene Source Code Chain is 0.00019184 USD and is up 1.79 over the last 24 hours. It is currently trading on 1 active market(s) with $0.00 traded over the last 24 hours. More information can be found at http://www.gscchain.org/.
Stats
Public Functions
7
Event Types
2
Code Size
2,819 bytes
Constants (1) keyboard_arrow_up
State Variables (8) keyboard_arrow_up
Functions
transfer keyboard_arrow_up
Modifiers help
isRunning checks for the following:
validAddress checks for the following:
Requirements help
Source Code
function transfer(address _to, uint256 _value)
isRunning
validAddress
returns (bool success)
{
require(balanceOf[msg.sender] >= _value);
require(balanceOf[_to] + _value >= balanceOf[_to]);
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
}
transferFrom keyboard_arrow_up
Modifiers help
isRunning checks for the following:
validAddress checks for the following:
Requirements help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) isRunning validAddress returns (bool success) {
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value >= balanceOf[_to]);
require(allowance[_from][msg.sender] >= _value);
balanceOf[_to] += _value;
balanceOf[_from] -= _value;
allowance[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Modifiers help
isRunning checks for the following:
validAddress checks for the following:
Requirements help
One or more of the following:
-
allowance for the sender's address for _spender
must be equal to
0
- OR
_value
must be equal to
0
Source Code
function approve(address _spender, uint256 _value)
isRunning
validAddress
returns (bool success)
{
require(_value == 0 || allowance[msg.sender][_spender] == 0);
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
stop keyboard_arrow_up
start keyboard_arrow_up
setName keyboard_arrow_up
burn keyboard_arrow_up
Requirements help
Source Code
function burn(uint256 _value) {
require(balanceOf[msg.sender] >= _value);
balanceOf[msg.sender] -= _value;
balanceOf[0x0] += _value;
Transfer(msg.sender, 0x0, _value);
}
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.