MobileGo Token
ERC20
This contract is an ERC20 token.
Name
MobileGo Token
Symbol
MGO
Decimals
8
Total Supply
100,000,000 MGO
About link description
MobileGo (MGO) is a cryptocurrency and operates on the Ethereum platform. MobileGo has a current supply of 99,996,877. The last known price of MobileGo is 0.02088855 USD and is down -6.90 over the last 24 hours. It is currently trading on 2 active market(s) with $1,116,966.28 traded over the last 24 hours. More information can be found at https://mobilego.io/.
Stats
Public Functions
14
Event Types
4
Code Size
7,466 bytes
Events (4) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
if (
balances[msg.sender] >= _value &&
_value > 0 &&
balances[_to] + _value > balances[_to]
) {
bytes memory empty;
if (isContract(_to)) {
return transferToContract(_to, _value, empty);
} else {
return transferToAddress(_to, _value, empty);
}
} else {
return false;
}
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) returns (bool success) {
if (
balances[_from] >= _value &&
allowed[_from][msg.sender] >= _value &&
_value > 0 &&
balances[_to] + _value > balances[_to]
) {
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
balances[_to] += _value;
Transfer(_from, _to, _value);
return true;
} else {
return false;
}
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _allowance) returns (bool success) {
if (_allowance <= _currentSupply) {
allowed[msg.sender][_spender] = _allowance;
Approval(msg.sender, _spender, _allowance);
return true;
} else {
return false;
}
}
allowance keyboard_arrow_up
name keyboard_arrow_up
symbol keyboard_arrow_up
decimals keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(
address _to,
uint256 _value,
bytes _data
) returns (bool success) {
if (
balances[msg.sender] >= _value &&
_value > 0 &&
balances[_to] + _value > balances[_to]
) {
if (isContract(_to)) {
return transferToContract(_to, _value, _data);
} else {
return transferToAddress(_to, _value, _data);
}
} else {
return false;
}
}
burn keyboard_arrow_up
Source Code
function burn(uint256 _value, bytes _data) returns (bool success) {
if (balances[msg.sender] >= _value && _value > 0) {
balances[msg.sender] -= _value;
_currentSupply -= _value;
Burn(msg.sender, _value, _currentSupply, _data);
return true;
} else {
return false;
}
}
currentSupply keyboard_arrow_up
amountBurned keyboard_arrow_up
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 MobileGoToken.transferToAddress keyboard_arrow_up
Source Code
function transferToAddress(
address _to,
uint256 _value,
bytes _data
) internal returns (bool success) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
Transfer(msg.sender, _to, _value, _data);
return true;
}
internal MobileGoToken.transferToContract keyboard_arrow_up
Source Code
function transferToContract(
address _to,
uint256 _value,
bytes _data
) internal returns (bool success) {
balances[msg.sender] -= _value;
balances[_to] += _value;
ContractReceiver receiver = ContractReceiver(_to);
receiver.tokenFallback(msg.sender, _value, _data);
Transfer(msg.sender, _to, _value);
Transfer(msg.sender, _to, _value, _data);
return true;
}
internal MobileGoToken.isContract keyboard_arrow_up
Source Code
function isContract(address _address) internal returns (bool is_contract) {
uint256 length;
if (_address == 0) return false;
assembly {
length := extcodesize(_address)
}
if (length > 0) {
return true;
} else {
return false;
}
}