Blockwell

VNTChain

ERC20

This contract is an ERC20 token.

Name VNTChain
Symbol VNT
Decimals 8
Total Supply 10,000,000,000 VNT

About link description

VNT Chain (VNT) is a cryptocurrency and operates on the Ethereum platform. VNT Chain has a current supply of 10,000,000,000 with 2,717,613,095.393633 in circulation. The last known price of VNT Chain is 0.00816746 USD and is down -0.14 over the last 24 hours. It is currently trading on 5 active market(s) with $28,856.32 traded over the last 24 hours. More information can be found at http://vntchain.io/?language=en.

Stats

Public Functions 9
Event Types 2
Code Size 5,075 bytes

Events (2) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

tokenName Constant

string help
VNTChain

tokenSymbol Constant

string help
VNT

decimalUnits Constant

uint8 help
8

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

restrictedAddresses Variable

mapping(address => bool) help
Internal Variable

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) public returns (bool success) {
  require(_value > 0);
  require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
  require(balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows
  require(!restrictedAddresses[msg.sender]);
  require(!restrictedAddresses[_to]);
  balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender
  balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value); // Add the same to the recipient
  Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value)
  public
  returns (bool success)
{
  allowance[msg.sender][_spender] = _value; // Set allowance
  Approval(msg.sender, _spender, _value); // Raise Approval event
  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 success) {
  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
  require(!restrictedAddresses[_from]);
  require(!restrictedAddresses[msg.sender]);
  require(!restrictedAddresses[_to]);
  balanceOf[_from] = SafeMath.safeSub(balanceOf[_from], _value); // Subtract from the sender
  balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value); // Add the same to the recipient
  allowance[_from][msg.sender] = SafeMath.safeSub(
    allowance[_from][msg.sender],
    _value
  );
  Transfer(_from, _to, _value);
  return true;
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_owner
address help

Properties

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

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)
  public
  constant
  returns (uint256 remaining)
{
  return allowance[_owner][_spender];
}

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

editRestrictedAddress keyboard_arrow_up

Parameters help

Name Type
_newRestrictedAddress
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function editRestrictedAddress(address _newRestrictedAddress) public onlyOwner {
  restrictedAddresses[_newRestrictedAddress] = !restrictedAddresses[
    _newRestrictedAddress
  ];
}

isRestrictedAddress keyboard_arrow_up

Parameters help

Name Type
_querryAddress
address help

Properties

Visibility help public
Mutability help constant
Source Code
function isRestrictedAddress(address _querryAddress)
  public
  constant
  returns (bool answer)
{
  return restrictedAddresses[_querryAddress];
}

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 SafeMath.safeMul keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
  uint256 c = a * b;
  assert(a == 0 || c / a == b);
  return c;
}

internal SafeMath.safeDiv keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
  assert(b > 0);
  uint256 c = a / b;
  assert(a == b * c + (a % b));
  return c;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help pure

Requirements help

Source Code
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
  assert(b <= a);
  return a - b;
}

internal SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) {
  uint256 c = a + b;
  assert(c >= a && c >= b);
  return c;
}