Molecular Future
ERC20
This contract is an ERC20 token.
Name
Molecular Future
Symbol
MOF
Decimals
16
Total Supply
100,000,000 MOF
About
link
description
Molecular Future (MOF) is a cryptocurrency and operates on the Ethereum platform. Molecular Future has a current supply of 100,000,000 with 85,481,224.8 in circulation. The last known price of Molecular Future is 0.72031109 USD and is down -0.46 over the last 24 hours. It is currently trading on 8 active market(s) with $10,078,075.42 traded over the last 24 hours. More information can be found at http://www.molecular.cc/.
Stats
Public Functions
10
Event Types
2
Code Size
3,527 bytes
Constants (1) keyboard_arrow_up
State Variables (7) keyboard_arrow_up
Functions
setOwner keyboard_arrow_up
name keyboard_arrow_up
symbol keyboard_arrow_up
decimals keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint256 _value)
public
validAddress(_to)
returns (bool success)
{
if (balanceOf[msg.sender] >= _value && _value > 0) {
balanceOf[msg.sender] = sub(balanceOf[msg.sender], _value);
balanceOf[_to] = add(balanceOf[_to], _value);
Transfer(msg.sender, _to, _value);
return true;
} else {
return false;
}
}
transferFrom keyboard_arrow_up
Modifiers help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public validAddress(_from) validAddress(_to) returns (bool success) {
if (balanceOf[_from] >= _value && _value > 0) {
allowance[_from][msg.sender] = sub(allowance[_from][msg.sender], _value);
balanceOf[_from] = sub(balanceOf[_from], _value);
balanceOf[_to] = add(balanceOf[_to], _value);
Transfer(_from, _to, _value);
return true;
} else {
return false;
}
}
approve keyboard_arrow_up
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)
public
validAddress(_spender)
returns (bool success)
{
require(_value == 0 || allowance[msg.sender][_spender] == 0);
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
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.add keyboard_arrow_up
Source Code
function add(uint256 _a, uint256 _b) internal pure returns (uint256) {
uint256 c = _a + _b;
assert(c >= _a);
return c;
}
internal SafeMath.sub keyboard_arrow_up
internal SafeMath.mul keyboard_arrow_up
Requirements help
Source Code
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
uint256 c = _a * _b;
assert(_a == 0 || c / _a == _b);
return c;
}