Blockwell

Bancor Network Token

ERC20

This contract is an ERC20 token.

Name Bancor Network Token
Symbol BNT
Decimals 18
Total Supply 69,148,529 BNT

About link description

Bancor (BNT) is a cryptocurrency launched in 2017and operates on the Ethereum platform. Bancor has a current supply of 235,075,994.05773157. The last known price of Bancor is 2.86722244 USD and is down -0.60 over the last 24 hours. It is currently trading on 208 active market(s) with $38,589,189.10 traded over the last 24 hours. More information can be found at https://bancor.network/.

Stats

Public Functions 16
Event Types 6
Code Size 13,813 bytes

Events (6) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Destruction Event

Parameters help
_amount
uint256 help

Issuance Event

Parameters help
_amount
uint256 help

NewSmartToken Event

Parameters help
_token
address help

OwnerUpdate Event

Parameters help
_prevOwner
address help
_newOwner
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

version Variable

string help

transfersEnabled Variable

bool help

standard Variable

string help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

totalSupply Variable

uint256 help

owner Variable

address help

newOwner Variable

address help

balanceOf Variable

mapping(address => uint256) help

allowance Variable

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

Functions Expand All Collapse All

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function owner() public constant returns (address owner) {
  owner;
}

Parameters help

Name Type
_newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferOwnership(address _newOwner) public ownerOnly {
  require(_newOwner != owner);
  newOwner = _newOwner;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() public {
  require(msg.sender == newOwner);
  OwnerUpdate(owner, newOwner);
  owner = newOwner;
  newOwner = 0x0;
}

Parameters help

Name Type
_token
IERC20Token help
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function withdrawTokens(
  IERC20Token _token,
  address _to,
  uint256 _amount
) public ownerOnly validAddress(_token) validAddress(_to) notThis(_to) {
  assert(_token.transfer(_to, _amount));
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function name() public constant returns (string name) {
  name;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function symbol() public constant returns (string symbol) {
  symbol;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function decimals() public constant returns (uint8 decimals) {
  decimals;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function totalSupply() public constant returns (uint256 totalSupply) {
  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) {
  _owner;
  balance;
}

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)
{
  _owner;
  _spender;
  remaining;
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transfer(address _to, uint256 _value)
  public
  transfersAllowed
  returns (bool success)
{
  assert(super.transfer(_to, _value));

  // transferring to the contract address destroys tokens
  if (_to == address(this)) {
    balanceOf[_to] -= _value;
    totalSupply -= _value;
    Destruction(_value);
  }

  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public transfersAllowed returns (bool success) {
  assert(super.transferFrom(_from, _to, _value));

  // transferring to the contract address destroys tokens
  if (_to == address(this)) {
    balanceOf[_to] -= _value;
    totalSupply -= _value;
    Destruction(_value);
  }

  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approve(address _spender, uint256 _value)
  public
  validAddress(_spender)
  returns (bool success)
{
  // if the allowance isn't 0, it can only be updated to 0 to prevent an allowance change immediately after withdrawal
  require(_value == 0 || allowance[msg.sender][_spender] == 0);

  allowance[msg.sender][_spender] = _value;
  Approval(msg.sender, _spender, _value);
  return true;
}

Parameters help

Name Type
_disable
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
function disableTransfers(bool _disable) public ownerOnly {
  transfersEnabled = !_disable;
}

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function issue(address _to, uint256 _amount)
  public
  ownerOnly
  validAddress(_to)
  notThis(_to)
{
  totalSupply = safeAdd(totalSupply, _amount);
  balanceOf[_to] = safeAdd(balanceOf[_to], _amount);

  Issuance(_amount);
  Transfer(this, _to, _amount);
}

Parameters help

Name Type
_from
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function destroy(address _from, uint256 _amount) public ownerOnly {
  balanceOf[_from] = safeSub(balanceOf[_from], _amount);
  totalSupply = safeSub(totalSupply, _amount);

  Transfer(_from, this, _amount);
  Destruction(_amount);
}

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.safeAdd keyboard_arrow_up

Parameters help

Name Type
_x
uint256 help
_y
uint256 help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function safeAdd(uint256 _x, uint256 _y) internal returns (uint256) {
  uint256 z = _x + _y;
  assert(z >= _x);
  return z;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
_x
uint256 help
_y
uint256 help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function safeSub(uint256 _x, uint256 _y) internal returns (uint256) {
  assert(_x >= _y);
  return _x - _y;
}

internal SafeMath.safeMul keyboard_arrow_up

Parameters help

Name Type
_x
uint256 help
_y
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeMul(uint256 _x, uint256 _y) internal returns (uint256) {
  uint256 z = _x * _y;
  assert(_x == 0 || z / _x == _y);
  return z;
}