Blockwell

BitMartToken

ERC20

This contract is an ERC20 token.

Name BitMartToken
Symbol BMC
Decimals 18
Total Supply 904,331,318 BMC

About link

BitMart Token (BMX) is a cryptocurrency and operates on the Ethereum platform. BitMart Token has a current supply of 648,054,071.5053253 with 173,717,944.18118548 in circulation. The last known price of BitMart Token is 0.18621102 USD and is down -1.95 over the last 24 hours. It is currently trading on 3 active market(s) with $7,732,637.80 traded over the last 24 hours. More information can be found at https://www.bitmart.com/.

Stats

Public Functions 9
Event Types 5
Code Size 6,409 bytes

Library Use

Uses SafeMath for uint256.

Events (5) keyboard_arrow_up

Burn Event

Parameters help
from
address help
value
uint256 help

Freeze Event

Parameters help
from
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

Unfreeze Event

Parameters help
from
address help
value
uint256 help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

totalSupply Variable

uint256 help

owner Variable

address help

balanceOf Variable

mapping(address => uint256) help

freezeOf Variable

mapping(address => uint256) help

allowance Variable

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

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));
  OwnershipTransferred(owner, newOwner);
  owner = newOwner;
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address _to, uint256 _value) public {
  require(_to != 0x0);
  require(_value > 0);
  require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
  require(balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows

  balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); // Subtract from the sender
  balanceOf[_to] = balanceOf[_to].add(_value); // Add the same to the recipient
  Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function approve(address _spender, uint256 _value) public returns (bool) {
  require(_value > 0);
  allowance[msg.sender][_spender] = _value;
  return true;
}

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 returns (bool) {
  require(_to != 0x0);
  require(_value > 0);
  require(balanceOf[_from] >= _value); // Check if the sender has enough
  require(balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows
  require(_value <= allowance[_from][msg.sender]); // Check allowance

  balanceOf[_from] = balanceOf[_from].sub(_value); // Subtract from the sender
  balanceOf[_to] = balanceOf[_to].add(_value); // Add the same to the recipient
  allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
  Transfer(_from, _to, _value);
  return true;
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) public onlyOwner returns (bool) {
  require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
  require(_value > 0);

  balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); // Subtract from the sender
  totalSupply = totalSupply.sub(_value); // Updates totalSupply
  Burn(msg.sender, _value);
  return true;
}

freeze keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function freeze(uint256 _value) public returns (bool) {
  require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
  require(_value > 0);

  balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); // Subtract from the sender
  freezeOf[msg.sender] = freezeOf[msg.sender].add(_value); // Updates totalSupply
  Freeze(msg.sender, _value);
  return true;
}

unfreeze keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function unfreeze(uint256 _value) public returns (bool) {
  require(freezeOf[msg.sender] >= _value); // Check if the sender has enough
  require(_value > 0);

  freezeOf[msg.sender] = freezeOf[msg.sender].sub(_value); // Subtract from the sender
  balanceOf[msg.sender] = balanceOf[msg.sender].add(_value);
  Unfreeze(msg.sender, _value);
  return true;
}

withdrawEther keyboard_arrow_up

Parameters help

Name Type
amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function withdrawEther(uint256 amount) public onlyOwner {
  owner.transfer(amount);
}

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function() public payable {}

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.