Blockwell

Trace Token

ERC20

This contract is an ERC20 token.

Name Trace Token
Symbol TRAC
Decimals 18
Total Supply 500,000,000 TRAC

About link description

OriginTrail (TRAC) is a cryptocurrency and operates on the Ethereum platform. OriginTrail has a current supply of 500,000,000 with 357,950,421.93654466 in circulation. The last known price of OriginTrail is 0.23775172 USD and is down -2.69 over the last 24 hours. It is currently trading on 11 active market(s) with $1,041,335.45 traded over the last 24 hours. More information can be found at https://origintrail.io/.

Stats

Public Functions 15
Event Types 6
Code Size 13,785 bytes

Events (6) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Mint Event

Parameters help
to
address help
amount
uint256 help

MintFinished Event

Parameters help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

TransferAllowed Event

Parameters help
transferIsAllowed
bool help

name Constant

string help
Trace Token

symbol Constant

string help
TRAC

decimals Constant

uint8 help
18

bountyReward Constant

uint256 help
1e25

preicoAndAdvisors Constant

uint256 help
4e25

liquidityPool Constant

uint256 help
25e24

futureDevelopment Constant

uint256 help
1e26

teamAndFounders Constant

uint256 help
75e24

CORRECTION Constant

uint256 help
9605598917469000000000

startTime Variable

uint256 help

wallet Variable

address help

teamAndFoundersWallet Variable

address help

advisorsAndPreICO Variable

address help

TOTAL_NUM_TOKENS Variable

uint256 help

mintingFinished Variable

bool help

totalSupply Variable

uint256 help

owner Variable

address help

founderAmounts Variable

uint256[] help
Internal Variable

preicoAndAdvisorsAmounts Variable

uint256[] 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

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

Modifiers help

Source Code
function transfer(address to, uint256 value) public canTransfer returns (bool) {
  return super.transfer(to, value);
}

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

Modifiers help

Source Code
function transferFrom(
  address from,
  address to,
  uint256 value
) public canTransfer returns (bool) {
  return super.transferFrom(from, to, value);
}

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) {
  // mitigating the race condition
  assert(allowed[msg.sender][_spender] == 0 || _value == 0);

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

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)
  public
  returns (bool success)
{
  allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(
    _addedValue
  );
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

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)
  public
  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;
}

Parameters help

Name Type
contributor
address help
amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function mint(address contributor, uint256 amount)
  public
  onlyOwner
  returns (bool)
{
  return super.mint(contributor, amount);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function finishMinting() public onlyOwner returns (bool) {
  mintingFinished = true;
  MintFinished();
  return true;
}

Parameters help

Name Type
contributors
address[] help
amounts
uint256[] help

Properties

Visibility help public
Mutability help transaction
Source Code
function mintMany(address[] contributors, uint256[] amounts)
  public
  onlyOwner
  returns (bool)
{
  address contributor;
  uint256 amount;
  require(contributors.length == amounts.length);

  for (uint256 i = 0; i < contributors.length; i++) {
    contributor = contributors[i];
    amount = amounts[i];
    require(mint(contributor, amount));
  }
  return true;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function endMinting() public onlyOwner returns (bool) {
  require(!mintingFinished);
  TransferAllowed(true);
  return super.finishMinting();
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function withdrawTokenToFounders() public {
  if (now > startTime + 720 days && founderAmounts[7] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[7]);
    founderAmounts[7] = 0;
  }

  if (now > startTime + 630 days && founderAmounts[6] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[6]);
    founderAmounts[6] = 0;
  }
  if (now > startTime + 540 days && founderAmounts[5] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[5]);
    founderAmounts[5] = 0;
  }
  if (now > startTime + 450 days && founderAmounts[4] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[4]);
    founderAmounts[4] = 0;
  }
  if (now > startTime + 360 days && founderAmounts[3] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[3]);
    founderAmounts[3] = 0;
  }
  if (now > startTime + 270 days && founderAmounts[2] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[2]);
    founderAmounts[2] = 0;
  }
  if (now > startTime + 180 days && founderAmounts[1] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[1]);
    founderAmounts[1] = 0;
  }
  if (now > startTime + 90 days && founderAmounts[0] > 0) {
    this.transfer(teamAndFoundersWallet, founderAmounts[0]);
    founderAmounts[0] = 0;
  }
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function withdrawTokensToAdvisors() public {
  if (now > startTime + 180 days && preicoAndAdvisorsAmounts[1] > 0) {
    this.transfer(advisorsAndPreICO, preicoAndAdvisorsAmounts[1]);
    preicoAndAdvisorsAmounts[1] = 0;
  }

  if (now > startTime + 90 days && preicoAndAdvisorsAmounts[0] > 0) {
    this.transfer(advisorsAndPreICO, preicoAndAdvisorsAmounts[0]);
    preicoAndAdvisorsAmounts[0] = 0;
  }
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function allocateRestOfTokens() public onlyOwner {
  require(totalSupply > TOTAL_NUM_TOKENS.div(2));
  require(totalSupply < TOTAL_NUM_TOKENS);
  require(!mintingFinished);
  mint(wallet, bountyReward);
  mint(advisorsAndPreICO, preicoAndAdvisors.div(5));
  mint(wallet, liquidityPool);
  mint(wallet, futureDevelopment);
  mint(this, teamAndFounders.sub(CORRECTION));
  mint(this, preicoAndAdvisors.mul(4).div(5));
}

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.