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
State Variables (8) keyboard_arrow_up
Functions
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
transfer keyboard_arrow_up
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
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value) public returns (bool) {
require(_value > 0);
allowance[msg.sender][_spender] = _value;
return true;
}
transferFrom keyboard_arrow_up
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
Modifiers help
onlyOwner checks for the following:
Requirements help
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
Requirements help
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
Requirements help
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
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.