Blockwell

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

Approval Event

Parameters help
from
address help
to
address help
value
uint256 help

Burn Event

Parameters help
from
address help
amount
uint256 help
currentSupply
uint256 help
data
bytes help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help
data
bytes help

_name Constant

string help
MobileGo Token

_symbol Constant

string help
MGO

_decimals Constant

uint8 help
8

_initialSupply Constant

uint256 help
10000000000000000

owner Variable

address help

_currentSupply Variable

uint256 help

balances Variable

mapping(address => uint256) help

allowed Variable

mapping(address => mapping(address => uint256)) help
Internal Variable

Functions Expand All Collapse All

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function totalSupply() constant returns (uint256 totalSupply) {
  return _initialSupply;
}

Parameters help

Name Type
_address
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _address) constant returns (uint256 balance) {
  return balances[_address];
}

Parameters help

Name Type
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
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;
  }
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
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;
  }
}

Parameters help

Name Type
_spender
address help
_allowance
uint256 help

Properties

Visibility help public
Mutability help transaction
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;
  }
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
function allowance(address _owner, address _spender)
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function name() constant returns (string name) {
  return _name;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function symbol() constant returns (string symbol) {
  return _symbol;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function decimals() constant returns (uint8 decimals) {
  return _decimals;
}

Parameters help

Name Type
_to
address help
_value
uint help
_data
bytes help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

Name Type
_value
uint256 help
_data
bytes help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function currentSupply() constant returns (uint256 currentSupply) {
  return _currentSupply;
}

amountBurned keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function amountBurned() constant returns (uint256 amountBurned) {
  return _initialSupply - _currentSupply;
}

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function() {
  throw;
}

Internal Functions Expand All Collapse All

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

Parameters help

Name Type
_to
address help
_value
uint help
_data
bytes help

Properties

Visibility help internal
Mutability help transaction
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

Parameters help

Name Type
_to
address help
_value
uint help
_data
bytes help

Properties

Visibility help internal
Mutability help transaction
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

Parameters help

Name Type
_address
address help

Properties

Visibility help internal
Mutability help transaction
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;
  }
}