Blockwell

Kucoin Shares

About

Stats

Public Functions 2
Event Types 2
Code Size 2,857 bytes

Events (2) keyboard_arrow_up

Burn Event

Parameters help
from
address help
value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

totalSupply Variable

uint256 help

balanceOf Variable

mapping(address => uint256) help

allowance Variable

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

Functions Expand All Collapse All

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) {
  _transfer(msg.sender, _to, _value);
}

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) returns (bool success) {
  require(balanceOf[msg.sender] > _value); // Check if the sender has enough
  balanceOf[msg.sender] -= _value; // Subtract from the sender
  totalSupply -= _value; // Updates totalSupply
  Burn(msg.sender, _value);
  return true;
}

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 MyToken._transfer keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function _transfer(
  address _from,
  address _to,
  uint256 _value
) internal {
  require(_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead
  require(balanceOf[_from] > _value); // Check if the sender has enough
  require(balanceOf[_to] + _value > balanceOf[_to]); // Check for overflows
  balanceOf[_from] -= _value; // Subtract from the sender
  balanceOf[_to] += _value; // Add the same to the recipient
  Transfer(_from, _to, _value);
}