Blockwell

BIX Token

ERC20

This contract is an ERC20 token.

Name BIX Token
Symbol BIX
Decimals 18
Total Supply 244,476,787 BIX

About link description

Bibox Token (BIX) is a cryptocurrency and operates on the Ethereum platform. Bibox Token has a current supply of 235,972,808.27 with 85,430,525.27 in circulation. The last known price of Bibox Token is 0.05761766 USD and is up 1.42 over the last 24 hours. It is currently trading on 17 active market(s) with $1,314,549.14 traded over the last 24 hours. More information can be found at https://www.bibox.com/.

Stats

Public Functions 15
Event Types 6
Code Size 11,498 bytes

Events (6) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Burn Event

Parameters help
burner
address help
value
uint256 help

Lock Event

Parameters help
locker
address help
value
uint256 help
releaseTime
uint help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

UnLock Event

Parameters help
unlocker
address help
value
uint256 help

INITIAL_SUPPLY Constant

uint256 help
500 * UNKNOWN VALUE * UNKNOWN VALUE

DEVELOPER_RESERVED Constant

uint256 help
175 * UNKNOWN VALUE * UNKNOWN VALUE

version Variable

string help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

totalSupply Variable

uint256 help

owner Variable

address help

lockedBalance Variable

mapping(address => uint256) help
Internal Variable

timeRelease Variable

mapping(address => uint) help
Internal Variable

allowed Variable

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

balances Variable

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
_owner
address help

Properties

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

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) {
  require(_to != address(0));

  // SafeMath.sub will throw if there is not enough balance.
  balances[msg.sender] = balances[msg.sender].sub(_value);
  balances[_to] = balances[_to].add(_value);
  Transfer(msg.sender, _to, _value);
  return true;
}

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 allowed[_owner][_spender];
}

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 != address(0));

  uint256 _allowance = allowed[_from][msg.sender];

  // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
  // require (_value <= _allowance);

  balances[_from] = balances[_from].sub(_value);
  balances[_to] = balances[_to].add(_value);
  allowed[_from][msg.sender] = _allowance.sub(_value);
  Transfer(_from, _to, _value);
  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) {
  allowed[msg.sender][_spender] = _value;
  Approval(msg.sender, _spender, _value);
  return true;
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  returns (bool success)
{
  allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(
    _addedValue
  );
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  returns (bool success)
{
  uint256 oldValue = allowed[msg.sender][_spender];
  if (_subtractedValue > oldValue) {
    allowed[msg.sender][_spender] = 0;
  } else {
    allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
  }
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

lockedOf keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

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

unlockTimeOf keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

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

transferAndLock keyboard_arrow_up

Parameters help

Name Type
_to
address help
_value
uint256 help
_releaseTime
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferAndLock(
  address _to,
  uint256 _value,
  uint256 _releaseTime
) public returns (bool success) {
  require(_to != 0x0);
  require(_value <= balances[msg.sender]);
  require(_value > 0);
  require(_releaseTime > now && _releaseTime <= now + 60 * 60 * 24 * 365 * 5);

  // SafeMath.sub will throw if there is not enough balance.
  balances[msg.sender] = balances[msg.sender].sub(_value);

  //if preLock can release
  uint256 preRelease = timeRelease[_to];
  if (preRelease <= now && preRelease != 0x0) {
    balances[_to] = balances[_to].add(lockedBalance[_to]);
    lockedBalance[_to] = 0;
  }

  lockedBalance[_to] = lockedBalance[_to].add(_value);
  timeRelease[_to] = _releaseTime >= timeRelease[_to]
    ? _releaseTime
    : timeRelease[_to];
  Transfer(msg.sender, _to, _value);
  Lock(_to, _value, _releaseTime);
  return true;
}

unlock keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function unlock() public constant returns (bool success) {
  uint256 amount = lockedBalance[msg.sender];
  require(amount > 0);
  require(now >= timeRelease[msg.sender]);

  balances[msg.sender] = balances[msg.sender].add(amount);
  lockedBalance[msg.sender] = 0;
  timeRelease[msg.sender] = 0;

  Transfer(0x0, msg.sender, amount);
  UnLock(msg.sender, amount);

  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 returns (bool success) {
  require(_value > 0);
  require(_value <= balances[msg.sender]);

  address burner = msg.sender;
  balances[burner] = balances[burner].sub(_value);
  totalSupply = totalSupply.sub(_value);
  Burn(burner, _value);
  return true;
}

isSoleout keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function isSoleout() public constant returns (bool) {
  return (totalSupply >= INITIAL_SUPPLY);
}

mintBIX keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint256 help
_lockAmount
uint256 help
_releaseTime
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function mintBIX(
  address _to,
  uint256 _amount,
  uint256 _lockAmount,
  uint256 _releaseTime
) public onlyOwner canMint returns (bool) {
  totalSupply = totalSupply.add(_amount);
  balances[_to] = balances[_to].add(_amount);

  if (_lockAmount > 0) {
    totalSupply = totalSupply.add(_lockAmount);
    lockedBalance[_to] = lockedBalance[_to].add(_lockAmount);
    timeRelease[_to] = _releaseTime >= timeRelease[_to]
      ? _releaseTime
      : timeRelease[_to];
    Lock(_to, _lockAmount, _releaseTime);
  }

  Transfer(0x0, _to, _amount);
  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.