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 token and operates on the Ethereum platform. OriginTrail has a current supply of 500,000,000 with 319,191,362.415 in circulation. The last known price of OriginTrail is $0.221807 USD and is up 24.60% over the last 24 hours. It is currently trading on 11 active market(s) with $799,445.381 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

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

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) onlyOwner public {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

balanceOf keyboard_arrow_up

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];
  }

transfer keyboard_arrow_up

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) canTransfer public returns (bool) {
    return super.transfer(to, value);
  }

allowance keyboard_arrow_up

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];
  }

transferFrom keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Requirements help

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

approve keyboard_arrow_up

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

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, uint _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;
  }

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, uint _subtractedValue) public returns (bool success) {
    uint 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;
    }

mint keyboard_arrow_up

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) onlyOwner public returns (bool) {
    return super.mint(contributor, amount);
  }

finishMinting keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

mintMany keyboard_arrow_up

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) onlyOwner public returns (bool) {
     address contributor;
     uint256 amount;
     require(contributors.length == amounts.length);

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

endMinting keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

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

withdrawTokenToFounders keyboard_arrow_up

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

withdrawTokensToAdvisors keyboard_arrow_up

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

allocateRestOfTokens keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
  function allocateRestOfTokens() onlyOwner public{
    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));
  }