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
State Variables (10) 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;
}
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
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;
}
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
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;
}
approve keyboard_arrow_up
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
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
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
unlockTimeOf keyboard_arrow_up
transferAndLock keyboard_arrow_up
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.
Requirements help
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
Requirements help
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
mintBIX keyboard_arrow_up
Parameters help
Modifiers help
onlyOwner checks for the following:
canMint checks for the following:
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
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.