Blockwell

XMAX

ERC20

This contract is an ERC20 token.

Name XMAX
Symbol XMX
Decimals 8
Total Supply 30,000,000,000 XMX

About link

XMAX is a bitcoin mining project that started in late 2017 and has a foundation in Singapore. They operate Bitcoin miners as a project and for industry partners. XMAX provides purchasing, logistics support, hosting, and mobile miner management applications to community members and the team manage many of their miners in Asia. The project seeks to make Bitcoin mining accessible to a global audience through developing mining partnerships, educating miners, and providing bitcoin mining solutions direct to consumers.

Stats

Public Functions 13
Event Types 6
Code Size 7,753 bytes

Approval Event

Parameters help
owner
address help
agent
address help
value
uint256 help

Freezed Event

Parameters help
freezedAddr
address help

Mint Event

Parameters help
to
address help
value
uint256 help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

UnFreezed Event

Parameters help
unfreezedAddr
address help

Functions Expand All Collapse All

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

balanceOf keyboard_arrow_up

Parameters help

Name Type
addr
address help

Properties

Visibility help public
Mutability help view
Source Code
  function balanceOf(address addr) public view returns (uint256 balance) {
    return _balances[addr];
  }

transfer keyboard_arrow_up

Parameters help

Name Type
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address to, uint256 value) public whenNotFreezed returns (bool) {
      return super.transfer(to, value);
    }

allowance keyboard_arrow_up

Parameters help

Name Type
owner
address help
agent
address help

Properties

Visibility help public
Mutability help view
Source Code
  function allowance(address owner, address agent) public view returns (uint256) {
    return _allowances[owner][agent];
  }

transferFrom keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function transferFrom(address from, address to, uint256 value) public whenNotFreezed returns (bool) {
      return super.transferFrom(from, to, value);
    }

approve keyboard_arrow_up

Parameters help

Name Type
agent
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approve(address agent, uint256 value) public whenNotFreezed returns (bool) {
      return super.approve(agent, value);
    }

increaseApproval keyboard_arrow_up

Parameters help

Name Type
agent
address help
value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function increaseApproval(address agent, uint value) public whenNotFreezed returns (bool success) {
      return super.increaseApproval(agent, value);
    }

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
agent
address help
value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function decreaseApproval(address agent, uint value) public whenNotFreezed returns (bool success) {
      return super.decreaseApproval(agent, value);
    }

mint keyboard_arrow_up

Parameters help

Name Type
addr
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function mint(address addr, uint256 value) onlyOwner public returns (bool) {
      _totalSupply = _totalSupply.add(value);
      _balances[addr] = _balances[addr].add(value);

      emit Mint(addr, value);
      emit Transfer(address(0), addr, value);

      return true;
    }

freeze keyboard_arrow_up

Parameters help

Name Type
addr
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function freeze(address addr) onlyOwner whenNotFreezed public returns (bool) {
      require(true != _freezeList[addr]);

      _freezeList[addr] = true;

      emit Freezed(addr);
      return true;
    }

unfreeze keyboard_arrow_up

Parameters help

Name Type
addr
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function unfreeze(address addr) onlyOwner whenFreezed public returns (bool) {
      require(true == _freezeList[addr]);

      _freezeList[addr] = false;

      emit UnFreezed(addr);
      return true;
    }

isFreezing keyboard_arrow_up

Parameters help

Name Type
addr
address help

Properties

Visibility help public
Mutability help view
Source Code
    function isFreezing(address addr) public view returns (bool) {
        if (true == _freezeList[addr]) {
            return true;
        } else {
            return false;
        }
    }