ETH Price: $2,675.29 (+0.80%)
Gas: 6 Gwei

Contract

0xdb58279c60C7641dABB015665db32372D031e55f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer62035782018-08-24 6:33:222180 days ago1535092402IN
0xdb58279c...2D031e55f
0 ETH0.000061222.875
Transfer58526372018-06-25 16:05:582239 days ago1529942758IN
0xdb58279c...2D031e55f
0.08 ETH0.000240685.1
Transfer58521212018-06-25 13:57:542239 days ago1529935074IN
0xdb58279c...2D031e55f
0.005 ETH0.000042592
Transfer56448412018-05-20 6:57:152276 days ago1526799435IN
0xdb58279c...2D031e55f
0 ETH0.000326915.35
Transfer55483812018-05-03 9:21:212293 days ago1525339281IN
0xdb58279c...2D031e55f
0.0001 ETH0.00086141
Transfer55378142018-05-01 12:42:422294 days ago1525178562IN
0xdb58279c...2D031e55f
1 ETH0.0008579420
Transfer55317762018-04-30 11:08:172296 days ago1525086497IN
0xdb58279c...2D031e55f
0.57 ETH0.000214485
Transfer55309202018-04-30 7:23:482296 days ago1525073028IN
0xdb58279c...2D031e55f
0.58 ETH0.000171584
Transfer55309072018-04-30 7:20:512296 days ago1525072851IN
0xdb58279c...2D031e55f
0.59 ETH0.000128693
Transfer55308762018-04-30 7:14:302296 days ago1525072470IN
0xdb58279c...2D031e55f
0.6 ETH0.000123
Transfer55249502018-04-29 6:33:112297 days ago1524983591IN
0xdb58279c...2D031e55f
0.15 ETH0.0001265
Transfer55239592018-04-29 2:32:322297 days ago1524969152IN
0xdb58279c...2D031e55f
0.05 ETH0.0017158840
Transfer55098342018-04-26 15:36:522299 days ago1524757012IN
0xdb58279c...2D031e55f
0.08 ETH0.0017158840
Transfer55090582018-04-26 12:24:592299 days ago1524745499IN
0xdb58279c...2D031e55f
0.04059417 ETH0.0017158840
Transfer55087832018-04-26 11:14:272300 days ago1524741267IN
0xdb58279c...2D031e55f
0.478 ETH0.0017158840
Transfer55087212018-04-26 10:58:442300 days ago1524740324IN
0xdb58279c...2D031e55f
0.484714 ETH0.0017158840
Transfer55080142018-04-26 8:05:182300 days ago1524729918IN
0xdb58279c...2D031e55f
0.07 ETH0.0017158840
Transfer55078182018-04-26 7:17:412300 days ago1524727061IN
0xdb58279c...2D031e55f
0.07 ETH0.0017158840
Transfer55075632018-04-26 6:14:472300 days ago1524723287IN
0xdb58279c...2D031e55f
0.07 ETH0.0017158840
Transfer55072282018-04-26 4:52:262300 days ago1524718346IN
0xdb58279c...2D031e55f
0.08 ETH0.0017158840
Transfer55064592018-04-26 1:52:122300 days ago1524707532IN
0xdb58279c...2D031e55f
1 ETH0.0039036291
Transfer55040222018-04-25 15:33:452300 days ago1524670425IN
0xdb58279c...2D031e55f
0.15 ETH0.0017587741
Transfer55039092018-04-25 15:06:502300 days ago1524668810IN
0xdb58279c...2D031e55f
0.1 ETH0.0017587741
Transfer55037482018-04-25 14:28:252300 days ago1524666505IN
0xdb58279c...2D031e55f
0.09 ETH0.0017158840
Transfer55037342018-04-25 14:23:202300 days ago1524666200IN
0xdb58279c...2D031e55f
1.09 ETH0.0017158840
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
58526372018-06-25 16:05:582239 days ago1529942758
0xdb58279c...2D031e55f
0.08 ETH
55378142018-05-01 12:42:422294 days ago1525178562
0xdb58279c...2D031e55f
1 ETH
55317762018-04-30 11:08:172296 days ago1525086497
0xdb58279c...2D031e55f
0.57 ETH
55309202018-04-30 7:23:482296 days ago1525073028
0xdb58279c...2D031e55f
0.58 ETH
55309072018-04-30 7:20:512296 days ago1525072851
0xdb58279c...2D031e55f
0.59 ETH
55308762018-04-30 7:14:302296 days ago1525072470
0xdb58279c...2D031e55f
0.6 ETH
55239592018-04-29 2:32:322297 days ago1524969152
0xdb58279c...2D031e55f
0.05 ETH
55098342018-04-26 15:36:522299 days ago1524757012
0xdb58279c...2D031e55f
0.08 ETH
55090582018-04-26 12:24:592299 days ago1524745499
0xdb58279c...2D031e55f
0.04059417 ETH
55087832018-04-26 11:14:272300 days ago1524741267
0xdb58279c...2D031e55f
0.478 ETH
55087212018-04-26 10:58:442300 days ago1524740324
0xdb58279c...2D031e55f
0.484714 ETH
55080142018-04-26 8:05:182300 days ago1524729918
0xdb58279c...2D031e55f
0.07 ETH
55078182018-04-26 7:17:412300 days ago1524727061
0xdb58279c...2D031e55f
0.07 ETH
55075632018-04-26 6:14:472300 days ago1524723287
0xdb58279c...2D031e55f
0.07 ETH
55072282018-04-26 4:52:262300 days ago1524718346
0xdb58279c...2D031e55f
0.08 ETH
55064592018-04-26 1:52:122300 days ago1524707532
0xdb58279c...2D031e55f
1 ETH
55040222018-04-25 15:33:452300 days ago1524670425
0xdb58279c...2D031e55f
0.15 ETH
55039092018-04-25 15:06:502300 days ago1524668810
0xdb58279c...2D031e55f
0.1 ETH
55037482018-04-25 14:28:252300 days ago1524666505
0xdb58279c...2D031e55f
0.09 ETH
55037342018-04-25 14:23:202300 days ago1524666200
0xdb58279c...2D031e55f
1.09 ETH
55037072018-04-25 14:17:192300 days ago1524665839
0xdb58279c...2D031e55f
0.03 ETH
55036602018-04-25 14:05:582300 days ago1524665158
0xdb58279c...2D031e55f
0.49 ETH
55035822018-04-25 13:48:032300 days ago1524664083
0xdb58279c...2D031e55f
0.09 ETH
55035482018-04-25 13:39:302300 days ago1524663570
0xdb58279c...2D031e55f
0.07 ETH
55035362018-04-25 13:37:252300 days ago1524663445
0xdb58279c...2D031e55f
0.07 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ICO

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-03-06
*/

pragma solidity ^0.4.18;

// File: contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }


  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }


  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

// File: contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

// File: contracts/token/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

// File: contracts/token/BasicToken.sol

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

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

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256 balance) {
    return balances[_owner];
  }

}

// File: contracts/token/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: contracts/token/StandardToken.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    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;
  }

}

// File: contracts/MintableToken.sol

contract MintableToken is StandardToken, Ownable {

  event Mint(address indexed to, uint256 amount);

  event MintFinished();

  bool public mintingFinished = false;

  address public saleAgent;

  modifier notLocked() {
    require(msg.sender == owner || msg.sender == saleAgent || mintingFinished);
    _;
  }

  function setSaleAgent(address newSaleAgnet) public {
    require(msg.sender == saleAgent || msg.sender == owner);
    saleAgent = newSaleAgnet;
  }

  function mint(address _to, uint256 _amount) public returns (bool) {
    require((msg.sender == saleAgent || msg.sender == owner) && !mintingFinished);
    
    totalSupply = totalSupply.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    return true;
  }

  /**
   * @dev Function to stop minting new tokens.
   * @return True if the operation was successful.
   */
  function finishMinting() public returns (bool) {
    require((msg.sender == saleAgent || msg.sender == owner) && !mintingFinished);
    mintingFinished = true;
    MintFinished();
    return true;
  }

  function transfer(address _to, uint256 _value) public notLocked returns (bool) {
    return super.transfer(_to, _value);
  }

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

}

// File: contracts/FreezeTokensWallet.sol

contract FreezeTokensWallet is Ownable {

  using SafeMath for uint256;

  MintableToken public token;

  bool public started;

  uint public startLockPeriod = 180 days;

  uint public period = 360 days;

  uint public duration = 90 days;

  uint public startUnlock;

  uint public retrievedTokens;

  uint public startBalance;

  modifier notStarted() {
    require(!started);
    _;
  }

  function setPeriod(uint newPeriod) public onlyOwner notStarted {
    period = newPeriod * 1 days;
  }

  function setDuration(uint newDuration) public onlyOwner notStarted {
    duration = newDuration * 1 days;
  }

  function setStartLockPeriod(uint newStartLockPeriod) public onlyOwner notStarted {
    startLockPeriod = newStartLockPeriod * 1 days;
  }

  function setToken(address newToken) public onlyOwner notStarted {
    token = MintableToken(newToken);
  }

  function start() public onlyOwner notStarted {
    startUnlock = now + startLockPeriod;
    retrievedTokens = 0;
    startBalance = token.balanceOf(this);
    started = true;
  }

  function retrieveTokens(address to) public onlyOwner {
    require(started && now >= startUnlock);
    if (now >= startUnlock + period) {
      token.transfer(to, token.balanceOf(this));
    } else {
      uint parts = period.div(duration);
      uint tokensByPart = startBalance.div(parts);
      uint timeSinceStart = now.sub(startUnlock);
      uint pastParts = timeSinceStart.div(duration);
      uint tokensToRetrieveSinceStart = pastParts.mul(tokensByPart);
      uint tokensToRetrieve = tokensToRetrieveSinceStart.sub(retrievedTokens);
      if(tokensToRetrieve > 0) {
        retrievedTokens = retrievedTokens.add(tokensToRetrieve);
        token.transfer(to, tokensToRetrieve);
      }
    }
  }
}

// File: contracts/InvestedProvider.sol

contract InvestedProvider is Ownable {

  uint public invested;

}

// File: contracts/PercentRateProvider.sol

contract PercentRateProvider is Ownable {

  uint public percentRate = 100;

  function setPercentRate(uint newPercentRate) public onlyOwner {
    percentRate = newPercentRate;
  }

}

// File: contracts/RetrieveTokensFeature.sol

contract RetrieveTokensFeature is Ownable {

  function retrieveTokens(address to, address anotherToken) public onlyOwner {
    ERC20 alienToken = ERC20(anotherToken);
    alienToken.transfer(to, alienToken.balanceOf(this));
  }

}

// File: contracts/WalletProvider.sol

contract WalletProvider is Ownable {

  address public wallet;

  function setWallet(address newWallet) public onlyOwner {
    wallet = newWallet;
  }

}

// File: contracts/CommonSale.sol

contract CommonSale is InvestedProvider, WalletProvider, PercentRateProvider, RetrieveTokensFeature {

  using SafeMath for uint;

  address public directMintAgent;

  uint public price;

  uint public start;

  uint public minInvestedLimit;

  MintableToken public token;

  uint public hardcap;

  modifier isUnderHardcap() {
    require(invested < hardcap);
    _;
  }

  function setHardcap(uint newHardcap) public onlyOwner {
    hardcap = newHardcap;
  }

  modifier onlyDirectMintAgentOrOwner() {
    require(directMintAgent == msg.sender || owner == msg.sender);
    _;
  }

  modifier minInvestLimited(uint value) {
    require(value >= minInvestedLimit);
    _;
  }

  function setStart(uint newStart) public onlyOwner {
    start = newStart;
  }

  function setMinInvestedLimit(uint newMinInvestedLimit) public onlyOwner {
    minInvestedLimit = newMinInvestedLimit;
  }

  function setDirectMintAgent(address newDirectMintAgent) public onlyOwner {
    directMintAgent = newDirectMintAgent;
  }

  function setPrice(uint newPrice) public onlyOwner {
    price = newPrice;
  }

  function setToken(address newToken) public onlyOwner {
    token = MintableToken(newToken);
  }

  function calculateTokens(uint _invested) internal returns(uint);

  function mintTokensExternal(address to, uint tokens) public onlyDirectMintAgentOrOwner {
    mintTokens(to, tokens);
  }

  function mintTokens(address to, uint tokens) internal {
    token.mint(this, tokens);
    token.transfer(to, tokens);
  }

  function endSaleDate() public view returns(uint);

  function mintTokensByETHExternal(address to, uint _invested) public onlyDirectMintAgentOrOwner returns(uint) {
    return mintTokensByETH(to, _invested);
  }

  function mintTokensByETH(address to, uint _invested) internal isUnderHardcap returns(uint) {
    invested = invested.add(_invested);
    uint tokens = calculateTokens(_invested);
    mintTokens(to, tokens);
    return tokens;
  }

  function fallback() internal minInvestLimited(msg.value) returns(uint) {
    require(now >= start && now < endSaleDate());
    wallet.transfer(msg.value);
    return mintTokensByETH(msg.sender, msg.value);
  }

  function () public payable {
    fallback();
  }

}

// File: contracts/StagedCrowdsale.sol

contract StagedCrowdsale is Ownable {

  using SafeMath for uint;

  struct Milestone {
    uint period;
    uint bonus;
  }

  uint public totalPeriod;

  Milestone[] public milestones;

  function milestonesCount() public view returns(uint) {
    return milestones.length;
  }

  function addMilestone(uint period, uint bonus) public onlyOwner {
    require(period > 0);
    milestones.push(Milestone(period, bonus));
    totalPeriod = totalPeriod.add(period);
  }

  function removeMilestone(uint8 number) public onlyOwner {
    require(number < milestones.length);
    Milestone storage milestone = milestones[number];
    totalPeriod = totalPeriod.sub(milestone.period);

    delete milestones[number];

    for (uint i = number; i < milestones.length - 1; i++) {
      milestones[i] = milestones[i+1];
    }

    milestones.length--;
  }

  function changeMilestone(uint8 number, uint period, uint bonus) public onlyOwner {
    require(number < milestones.length);
    Milestone storage milestone = milestones[number];

    totalPeriod = totalPeriod.sub(milestone.period);

    milestone.period = period;
    milestone.bonus = bonus;

    totalPeriod = totalPeriod.add(period);
  }

  function insertMilestone(uint8 numberAfter, uint period, uint bonus) public onlyOwner {
    require(numberAfter < milestones.length);

    totalPeriod = totalPeriod.add(period);

    milestones.length++;

    for (uint i = milestones.length - 2; i > numberAfter; i--) {
      milestones[i + 1] = milestones[i];
    }

    milestones[numberAfter + 1] = Milestone(period, bonus);
  }

  function clearMilestones() public onlyOwner {
    require(milestones.length > 0);
    for (uint i = 0; i < milestones.length; i++) {
      delete milestones[i];
    }
    milestones.length -= milestones.length;
    totalPeriod = 0;
  }

  function lastSaleDate(uint start) public view returns(uint) {
    return start + totalPeriod * 1 days;
  }

  function currentMilestone(uint start) public view returns(uint) {
    uint previousDate = start;
    for(uint i=0; i < milestones.length; i++) {
      if(now >= previousDate && now < previousDate + milestones[i].period * 1 days) {
        return i;
      }
      previousDate = previousDate.add(milestones[i].period * 1 days);
    }
    revert();
  }

}

// File: contracts/ICO.sol

contract ICO is StagedCrowdsale, CommonSale {

  FreezeTokensWallet public teamTokensWallet;

  address public bountyTokensWallet;

  address public reservedTokensWallet;

  uint public teamTokensPercent;

  uint public bountyTokensPercent;

  uint public reservedTokensPercent;

  function setTeamTokensPercent(uint newTeamTokensPercent) public onlyOwner {
    teamTokensPercent = newTeamTokensPercent;
  }

  function setBountyTokensPercent(uint newBountyTokensPercent) public onlyOwner {
    bountyTokensPercent = newBountyTokensPercent;
  }

  function setReservedTokensPercent(uint newReservedTokensPercent) public onlyOwner {
    reservedTokensPercent = newReservedTokensPercent;
  }

  function setTeamTokensWallet(address newTeamTokensWallet) public onlyOwner {
    teamTokensWallet = FreezeTokensWallet(newTeamTokensWallet);
  }

  function setBountyTokensWallet(address newBountyTokensWallet) public onlyOwner {
    bountyTokensWallet = newBountyTokensWallet;
  }

  function setReservedTokensWallet(address newReservedTokensWallet) public onlyOwner {
    reservedTokensWallet = newReservedTokensWallet;
  }

  function calculateTokens(uint _invested) internal returns(uint) {
    uint milestoneIndex = currentMilestone(start);
    Milestone storage milestone = milestones[milestoneIndex];

    uint tokens = _invested.mul(price).div(1 ether);
    if(milestone.bonus > 0) {
      tokens = tokens.add(tokens.mul(milestone.bonus).div(percentRate));
    }
    return tokens;
  }

  function finish() public onlyOwner {
    uint summaryTokensPercent = bountyTokensPercent.add(teamTokensPercent).add(reservedTokensPercent);
    uint mintedTokens = token.totalSupply();
    uint allTokens = mintedTokens.mul(percentRate).div(percentRate.sub(summaryTokensPercent));
    uint foundersTokens = allTokens.mul(teamTokensPercent).div(percentRate);
    uint bountyTokens = allTokens.mul(bountyTokensPercent).div(percentRate);
    uint reservedTokens = allTokens.mul(reservedTokensPercent).div(percentRate);
    mintTokens(teamTokensWallet, foundersTokens);
    mintTokens(bountyTokensWallet, bountyTokens);
    mintTokens(reservedTokensWallet, reservedTokens);
    token.finishMinting();
    teamTokensWallet.start();
    teamTokensWallet.transferOwnership(owner);
  }

  function endSaleDate() public view returns(uint) {
    return lastSaleDate(start);
  }

}

// File: contracts/NextSaleAgentFeature.sol

contract NextSaleAgentFeature is Ownable {

  address public nextSaleAgent;

  function setNextSaleAgent(address newNextSaleAgent) public onlyOwner {
    nextSaleAgent = newNextSaleAgent;
  }

}

// File: contracts/WhiteListFeature.sol

contract WhiteListFeature is CommonSale {

  mapping(address => bool)  public whiteList;

  function addToWhiteList(address _address) public onlyDirectMintAgentOrOwner {
    whiteList[_address] = true;
  }

  function deleteFromWhiteList(address _address) public onlyDirectMintAgentOrOwner {
    whiteList[_address] = false;
  }

}

// File: contracts/PreICO.sol

contract PreICO is NextSaleAgentFeature, WhiteListFeature {

  uint public period;

  function calculateTokens(uint _invested) internal returns(uint) {
    return _invested.mul(price).div(1 ether);
  }

  function setPeriod(uint newPeriod) public onlyOwner {
    period = newPeriod;
  }

  function finish() public onlyOwner {
    token.setSaleAgent(nextSaleAgent);
  }

  function endSaleDate() public view returns(uint) {
    return start.add(period * 1 days);
  }
  
  function fallback() internal minInvestLimited(msg.value) returns(uint) {
    require(now >= start && now < endSaleDate());
    require(whiteList[msg.sender]);
    wallet.transfer(msg.value);
    return mintTokensByETH(msg.sender, msg.value);
  }
  
}

// File: contracts/ReceivingContractCallback.sol

contract ReceivingContractCallback {

  function tokenFallback(address _from, uint _value) public;

}

// File: contracts/UBCoinToken.sol

contract UBCoinToken is MintableToken {

  string public constant name = "UBCoin";

  string public constant symbol = "UBC";

  uint32 public constant decimals = 18;

  mapping(address => bool)  public registeredCallbacks;

  function transfer(address _to, uint256 _value) public returns (bool) {
    return processCallback(super.transfer(_to, _value), msg.sender, _to, _value);
  }

  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    return processCallback(super.transferFrom(_from, _to, _value), _from, _to, _value);
  }

  function registerCallback(address callback) public onlyOwner {
    registeredCallbacks[callback] = true;
  }

  function deregisterCallback(address callback) public onlyOwner {
    registeredCallbacks[callback] = false;
  }

  function processCallback(bool result, address from, address to, uint value) internal returns(bool) {
    if (result && registeredCallbacks[to]) {
      ReceivingContractCallback targetCallback = ReceivingContractCallback(to);
      targetCallback.tokenFallback(from, value);
    }
    return result;
  }

}

// File: contracts/Configurator.sol

contract Configurator is Ownable {

  MintableToken public token;

  PreICO public preICO;

  ICO public ico;

  FreezeTokensWallet public teamTokensWallet;

  function deploy() public onlyOwner {

    token = new UBCoinToken();

    preICO = new PreICO();

    preICO.setWallet(0x00EE9d057f66754C7D92550F77Aeb0A87AE34B01);
    preICO.setStart(1520640000); // 10 Mar 2018 00:00:00 GMT
    preICO.setPeriod(22);
    preICO.setPrice(33334000000000000000000);
    preICO.setMinInvestedLimit(100000000000000000);
    preICO.setToken(token);
    preICO.setHardcap(8500000000000000000000);
    token.setSaleAgent(preICO);

    ico = new ICO();

    ico.addMilestone(20, 40);
    ico.addMilestone(20, 20);
    ico.addMilestone(20, 0);
    ico.setMinInvestedLimit(100000000000000000);
    ico.setToken(token);
    ico.setPrice(14286000000000000000000);
    ico.setWallet(0x5FB78D8B8f1161731BC80eF93CBcfccc5783356F);
    ico.setBountyTokensWallet(0xdAA156b6eA6b9737eA20c68Db4040B1182E487B6);
    ico.setReservedTokensWallet(0xE1D1898660469797B22D348Ff67d54643d848295);
    ico.setStart(1522627200); // 02 Apr 2018 00:00:00 GMT
    ico.setHardcap(96000000000000000000000);
    ico.setTeamTokensPercent(12);
    ico.setBountyTokensPercent(4);
    ico.setReservedTokensPercent(34);

    teamTokensWallet = new FreezeTokensWallet();
    teamTokensWallet.setStartLockPeriod(180);
    teamTokensWallet.setPeriod(360);
    teamTokensWallet.setDuration(90);
    teamTokensWallet.setToken(token);
    teamTokensWallet.transferOwnership(ico);

    ico.setTeamTokensWallet(teamTokensWallet);

    preICO.setNextSaleAgent(ico);

    address manager = 0xF1f94bAD54C8827C3B53754ad7dAa0FF5DCD527d;

    token.transferOwnership(manager);
    preICO.transferOwnership(manager);
    ico.transferOwnership(manager);
  }

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"newToken","type":"address"}],"name":"setToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newTeamTokensPercent","type":"uint256"}],"name":"setTeamTokensPercent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"reservedTokensWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reservedTokensPercent","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newPercentRate","type":"uint256"}],"name":"setPercentRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"clearMilestones","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"period","type":"uint256"},{"name":"bonus","type":"uint256"}],"name":"addMilestone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newReservedTokensWallet","type":"address"}],"name":"setReservedTokensWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newBountyTokensPercent","type":"uint256"}],"name":"setBountyTokensPercent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"anotherToken","type":"address"}],"name":"retrieveTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"start","type":"uint256"}],"name":"currentMilestone","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"directMintAgent","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"teamTokensWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newDirectMintAgent","type":"address"}],"name":"setDirectMintAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"percentRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"teamTokensPercent","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bountyTokensWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bountyTokensPercent","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"mintTokensExternal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newTeamTokensWallet","type":"address"}],"name":"setTeamTokensWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"numberAfter","type":"uint8"},{"name":"period","type":"uint256"},{"name":"bonus","type":"uint256"}],"name":"insertMilestone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newMinInvestedLimit","type":"uint256"}],"name":"setMinInvestedLimit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"number","type":"uint8"}],"name":"removeMilestone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"milestonesCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hardcap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"number","type":"uint8"},{"name":"period","type":"uint256"},{"name":"bonus","type":"uint256"}],"name":"changeMilestone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newReservedTokensPercent","type":"uint256"}],"name":"setReservedTokensPercent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"_invested","type":"uint256"}],"name":"mintTokensByETHExternal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"invested","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finish","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minInvestedLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"endSaleDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newWallet","type":"address"}],"name":"setWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newHardcap","type":"uint256"}],"name":"setHardcap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"milestones","outputs":[{"name":"period","type":"uint256"},{"name":"bonus","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newStart","type":"uint256"}],"name":"setStart","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newBountyTokensWallet","type":"address"}],"name":"setBountyTokensWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"start","type":"uint256"}],"name":"lastSaleDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6060604052606460055560008054600160a060020a033316600160a060020a0319909116179055611662806100356000396000f3006060604052600436106102165763ffffffff60e060020a600035041663144fa6d7811461022157806320ad8a81146102425780632c13823614610258578063388fb0af14610287578063480b890d146102ac5780634c94ac6a146102c2578063521eb273146102d55780635601477b146102e8578063575300171461030157806359169d06146103205780636341ca0b146103365780636793c8e11461035b5780636abc3fe4146103715780636c9d99da14610384578063769ffb7d146103975780638090114f146103b65780638da5cb5b146103c957806391b7f5ed146103dc57806393167204146103f257806399cd211d146104055780639a3fdfd0146104185780639bf6eb601461042b5780639c05093b1461044d5780639dc905bb1461046c578063a035b1fe1461048b578063a34d92701461049e578063aa525c55146104b4578063ab36e4a6146104cd578063b071cbe6146104e0578063bd17647f146104f3578063be9a655514610512578063c66c67e914610525578063ca1e5bb71461053b578063cafb22021461055d578063ce14a46e14610570578063d56b288914610583578063d64196f814610596578063d7d88043146105a9578063deaa59df146105bc578063e28fa27d146105db578063e89e4ed6146105f1578063f2fde38b1461061f578063f6a03ebf1461063e578063fa8b72ff14610654578063fc0c546a14610673578063fd83da0914610686575b61021e61069c565b50005b341561022c57600080fd5b610240600160a060020a0360043516610718565b005b341561024d57600080fd5b610240600435610755565b341561026357600080fd5b61026b610775565b604051600160a060020a03909116815260200160405180910390f35b341561029257600080fd5b61029a610784565b60405190815260200160405180910390f35b34156102b757600080fd5b61024060043561078a565b34156102cd57600080fd5b6102406107aa565b34156102e057600080fd5b61026b610829565b34156102f357600080fd5b610240600435602435610838565b341561030c57600080fd5b610240600160a060020a03600435166108c3565b341561032b57600080fd5b610240600435610900565b341561034157600080fd5b610240600160a060020a0360043581169060243516610920565b341561036657600080fd5b61029a600435610a23565b341561037c57600080fd5b61026b610abf565b341561038f57600080fd5b61026b610ace565b34156103a257600080fd5b610240600160a060020a0360043516610add565b34156103c157600080fd5b61029a610b1a565b34156103d457600080fd5b61026b610b20565b34156103e757600080fd5b610240600435610b2f565b34156103fd57600080fd5b61029a610b4f565b341561041057600080fd5b61026b610b55565b341561042357600080fd5b61029a610b64565b341561043657600080fd5b610240600160a060020a0360043516602435610b6a565b341561045857600080fd5b610240600160a060020a0360043516610bae565b341561047757600080fd5b61024060ff60043516602435604435610beb565b341561049657600080fd5b61029a610cfa565b34156104a957600080fd5b610240600435610d00565b34156104bf57600080fd5b61024060ff60043516610d20565b34156104d857600080fd5b61029a610e33565b34156104eb57600080fd5b61029a610e3a565b34156104fe57600080fd5b61024060ff60043516602435604435610e40565b341561051d57600080fd5b61029a610ecf565b341561053057600080fd5b610240600435610ed5565b341561054657600080fd5b61029a600160a060020a0360043516602435610ef5565b341561056857600080fd5b61029a610f3f565b341561057b57600080fd5b61029a610f45565b341561058e57600080fd5b610240610f4b565b34156105a157600080fd5b61029a6111fe565b34156105b457600080fd5b61029a611204565b34156105c757600080fd5b610240600160a060020a0360043516611216565b34156105e657600080fd5b610240600435611253565b34156105fc57600080fd5b610607600435611273565b60405191825260208201526040908101905180910390f35b341561062a57600080fd5b610240600160a060020a036004351661129f565b341561064957600080fd5b61024060043561132d565b341561065f57600080fd5b610240600160a060020a036004351661134d565b341561067e57600080fd5b61026b61138a565b341561069157600080fd5b61029a600435611399565b60003460095481101515156106b057600080fd5b60085442101580156106c857506106c5611204565b42105b15156106d357600080fd5b600454600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561070757600080fd5b61071133346113a5565b91505b5090565b60005433600160a060020a0390811691161461073357600080fd5b600a8054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461077057600080fd5b600f55565b600e54600160a060020a031681565b60115481565b60005433600160a060020a039081169116146107a557600080fd5b600555565b6000805433600160a060020a039081169116146107c657600080fd5b600254600090116107d657600080fd5b5060005b6002548110156108135760028054829081106107f257fe5b600091825260208220600290910201818155600190810191909155016107da565b60006108206002826115e5565b50506000600155565b600454600160a060020a031681565b60005433600160a060020a0390811691161461085357600080fd5b6000821161086057600080fd5b600280546001810161087283826115e5565b916000526020600020906002020160006040805190810160405285815260208101859052919050815181556020820151600191820155546108bc925090508363ffffffff6113f016565b6001555050565b60005433600160a060020a039081169116146108de57600080fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461091b57600080fd5b601055565b6000805433600160a060020a0390811691161461093c57600080fd5b5080600160a060020a03811663a9059cbb84826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561099c57600080fd5b6102c65a03f115156109ad57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a0357600080fd5b6102c65a03f11515610a1457600080fd5b50505060405180515050505050565b600081815b600254811015610ab357814210158015610a6757506002805482908110610a4b57fe5b9060005260206000209060020201600001546201518002820142105b15610a7457809250610ab8565b610aa9600282815481101515610a8657fe5b60009182526020909120600290910201548390620151800263ffffffff6113f016565b9150600101610a28565b600080fd5b5050919050565b600654600160a060020a031681565b600c54600160a060020a031681565b60005433600160a060020a03908116911614610af857600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60055481565b600054600160a060020a031681565b60005433600160a060020a03908116911614610b4a57600080fd5b600755565b600f5481565b600d54600160a060020a031681565b60105481565b60065433600160a060020a0390811691161480610b95575060005433600160a060020a039081169116145b1515610ba057600080fd5b610baa82826113ff565b5050565b60005433600160a060020a03908116911614610bc957600080fd5b600c8054600160a060020a031916600160a060020a0392909216919091179055565b6000805433600160a060020a03908116911614610c0757600080fd5b60025460ff851610610c1857600080fd5b600154610c2b908463ffffffff6113f016565b60019081556002805491610c41919083016115e5565b5050600254600119015b8360ff16811115610cab576002805482908110610c6457fe5b9060005260206000209060020201600282600101815481101515610c8457fe5b60009182526020909120825460029092020190815560019182015491015560001901610c4b565b60408051908101604052838152602081018390526002805460ff6001880116908110610cd357fe5b90600052602060002090600202016000820151815560208201516001909101555050505050565b60075481565b60005433600160a060020a03908116911614610d1b57600080fd5b600955565b60008054819033600160a060020a03908116911614610d3e57600080fd5b60025460ff841610610d4f57600080fd5b6002805460ff8516908110610d6057fe5b90600052602060002090600202019150610d8982600001546001546114f790919063ffffffff16565b6001556002805460ff8516908110610d9d57fe5b600091825260208220600290910201818155600101555060ff82165b60025460001901811015610e1a576002805460018301908110610dd857fe5b9060005260206000209060020201600282815481101515610df557fe5b6000918252602090912082546002909202019081556001918201549082015501610db9565b6002805490610e2d9060001983016115e5565b50505050565b6002545b90565b600b5481565b6000805433600160a060020a03908116911614610e5c57600080fd5b60025460ff851610610e6d57600080fd5b6002805460ff8616908110610e7e57fe5b90600052602060002090600202019050610ea781600001546001546114f790919063ffffffff16565b600190815583825581810183905554610ec6908463ffffffff6113f016565b60015550505050565b60085481565b60005433600160a060020a03908116911614610ef057600080fd5b601155565b60065460009033600160a060020a0390811691161480610f23575060005433600160a060020a039081169116145b1515610f2e57600080fd5b610f3883836113a5565b9392505050565b60035481565b60015481565b600080548190819081908190819033600160a060020a03908116911614610f7157600080fd5b610f9a601154610f8e600f546010546113f090919063ffffffff16565b9063ffffffff6113f016565b600a54909650600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610fe557600080fd5b6102c65a03f11515610ff657600080fd5b50505060405180516005549096506110399150611019908863ffffffff6114f716565b60055461102d90889063ffffffff61150916565b9063ffffffff61153416565b935061105660055461102d600f548761150990919063ffffffff16565b925061107360055461102d6010548761150990919063ffffffff16565b915061109060055461102d6011548761150990919063ffffffff16565b600c549091506110a990600160a060020a0316846113ff565b600d546110bf90600160a060020a0316836113ff565b600e546110d590600160a060020a0316826113ff565b600a54600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561111d57600080fd5b6102c65a03f1151561112e57600080fd5b50505060405180515050600c54600160a060020a031663be9a65556040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561117757600080fd5b6102c65a03f1151561118857600080fd5b5050600c54600054600160a060020a03918216925063f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156111e257600080fd5b6102c65a03f115156111f357600080fd5b505050505050505050565b60095481565b6000611211600854611399565b905090565b60005433600160a060020a0390811691161461123157600080fd5b60048054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461126e57600080fd5b600b55565b600280548290811061128157fe5b60009182526020909120600290910201805460019091015490915082565b60005433600160a060020a039081169116146112ba57600080fd5b600160a060020a03811615156112cf57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461134857600080fd5b600855565b60005433600160a060020a0390811691161461136857600080fd5b600d8054600160a060020a031916600160a060020a0392909216919091179055565b600a54600160a060020a031681565b60015462015180020190565b600080600b546003541015156113ba57600080fd5b6003546113cd908463ffffffff6113f016565b6003556113d98361154b565b90506113e584826113ff565b8091505b5092915050565b6000828201838110156113e557fe5b600a54600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561145e57600080fd5b6102c65a03f1151561146f57600080fd5b50505060405180515050600a54600160a060020a031663a9059cbb838360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156114d857600080fd5b6102c65a03f115156114e957600080fd5b505050604051805150505050565b60008282111561150357fe5b50900390565b60008083151561151c57600091506113e9565b5082820282848281151561152c57fe5b04146113e557fe5b600080828481151561154257fe5b04949350505050565b60008060008061155c600854610a23565b925060028381548110151561156d57fe5b9060005260206000209060020201915061159e670de0b6b3a764000061102d6007548861150990919063ffffffff16565b90506000826001015411156115dd576115da6115cd60055461102d85600101548561150990919063ffffffff16565b829063ffffffff6113f016565b90505b949350505050565b815481835581811511611611576002028160020283600052602060002091820191016116119190611616565b505050565b610e3791905b80821115610714576000808255600182015560020161161c5600a165627a7a72305820955c1d1a7dd222d41e230ae76e63c74cfefa8613a6fbac97b5d227006cb669170029

Deployed Bytecode

0x6060604052600436106102165763ffffffff60e060020a600035041663144fa6d7811461022157806320ad8a81146102425780632c13823614610258578063388fb0af14610287578063480b890d146102ac5780634c94ac6a146102c2578063521eb273146102d55780635601477b146102e8578063575300171461030157806359169d06146103205780636341ca0b146103365780636793c8e11461035b5780636abc3fe4146103715780636c9d99da14610384578063769ffb7d146103975780638090114f146103b65780638da5cb5b146103c957806391b7f5ed146103dc57806393167204146103f257806399cd211d146104055780639a3fdfd0146104185780639bf6eb601461042b5780639c05093b1461044d5780639dc905bb1461046c578063a035b1fe1461048b578063a34d92701461049e578063aa525c55146104b4578063ab36e4a6146104cd578063b071cbe6146104e0578063bd17647f146104f3578063be9a655514610512578063c66c67e914610525578063ca1e5bb71461053b578063cafb22021461055d578063ce14a46e14610570578063d56b288914610583578063d64196f814610596578063d7d88043146105a9578063deaa59df146105bc578063e28fa27d146105db578063e89e4ed6146105f1578063f2fde38b1461061f578063f6a03ebf1461063e578063fa8b72ff14610654578063fc0c546a14610673578063fd83da0914610686575b61021e61069c565b50005b341561022c57600080fd5b610240600160a060020a0360043516610718565b005b341561024d57600080fd5b610240600435610755565b341561026357600080fd5b61026b610775565b604051600160a060020a03909116815260200160405180910390f35b341561029257600080fd5b61029a610784565b60405190815260200160405180910390f35b34156102b757600080fd5b61024060043561078a565b34156102cd57600080fd5b6102406107aa565b34156102e057600080fd5b61026b610829565b34156102f357600080fd5b610240600435602435610838565b341561030c57600080fd5b610240600160a060020a03600435166108c3565b341561032b57600080fd5b610240600435610900565b341561034157600080fd5b610240600160a060020a0360043581169060243516610920565b341561036657600080fd5b61029a600435610a23565b341561037c57600080fd5b61026b610abf565b341561038f57600080fd5b61026b610ace565b34156103a257600080fd5b610240600160a060020a0360043516610add565b34156103c157600080fd5b61029a610b1a565b34156103d457600080fd5b61026b610b20565b34156103e757600080fd5b610240600435610b2f565b34156103fd57600080fd5b61029a610b4f565b341561041057600080fd5b61026b610b55565b341561042357600080fd5b61029a610b64565b341561043657600080fd5b610240600160a060020a0360043516602435610b6a565b341561045857600080fd5b610240600160a060020a0360043516610bae565b341561047757600080fd5b61024060ff60043516602435604435610beb565b341561049657600080fd5b61029a610cfa565b34156104a957600080fd5b610240600435610d00565b34156104bf57600080fd5b61024060ff60043516610d20565b34156104d857600080fd5b61029a610e33565b34156104eb57600080fd5b61029a610e3a565b34156104fe57600080fd5b61024060ff60043516602435604435610e40565b341561051d57600080fd5b61029a610ecf565b341561053057600080fd5b610240600435610ed5565b341561054657600080fd5b61029a600160a060020a0360043516602435610ef5565b341561056857600080fd5b61029a610f3f565b341561057b57600080fd5b61029a610f45565b341561058e57600080fd5b610240610f4b565b34156105a157600080fd5b61029a6111fe565b34156105b457600080fd5b61029a611204565b34156105c757600080fd5b610240600160a060020a0360043516611216565b34156105e657600080fd5b610240600435611253565b34156105fc57600080fd5b610607600435611273565b60405191825260208201526040908101905180910390f35b341561062a57600080fd5b610240600160a060020a036004351661129f565b341561064957600080fd5b61024060043561132d565b341561065f57600080fd5b610240600160a060020a036004351661134d565b341561067e57600080fd5b61026b61138a565b341561069157600080fd5b61029a600435611399565b60003460095481101515156106b057600080fd5b60085442101580156106c857506106c5611204565b42105b15156106d357600080fd5b600454600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561070757600080fd5b61071133346113a5565b91505b5090565b60005433600160a060020a0390811691161461073357600080fd5b600a8054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461077057600080fd5b600f55565b600e54600160a060020a031681565b60115481565b60005433600160a060020a039081169116146107a557600080fd5b600555565b6000805433600160a060020a039081169116146107c657600080fd5b600254600090116107d657600080fd5b5060005b6002548110156108135760028054829081106107f257fe5b600091825260208220600290910201818155600190810191909155016107da565b60006108206002826115e5565b50506000600155565b600454600160a060020a031681565b60005433600160a060020a0390811691161461085357600080fd5b6000821161086057600080fd5b600280546001810161087283826115e5565b916000526020600020906002020160006040805190810160405285815260208101859052919050815181556020820151600191820155546108bc925090508363ffffffff6113f016565b6001555050565b60005433600160a060020a039081169116146108de57600080fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461091b57600080fd5b601055565b6000805433600160a060020a0390811691161461093c57600080fd5b5080600160a060020a03811663a9059cbb84826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561099c57600080fd5b6102c65a03f115156109ad57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a0357600080fd5b6102c65a03f11515610a1457600080fd5b50505060405180515050505050565b600081815b600254811015610ab357814210158015610a6757506002805482908110610a4b57fe5b9060005260206000209060020201600001546201518002820142105b15610a7457809250610ab8565b610aa9600282815481101515610a8657fe5b60009182526020909120600290910201548390620151800263ffffffff6113f016565b9150600101610a28565b600080fd5b5050919050565b600654600160a060020a031681565b600c54600160a060020a031681565b60005433600160a060020a03908116911614610af857600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60055481565b600054600160a060020a031681565b60005433600160a060020a03908116911614610b4a57600080fd5b600755565b600f5481565b600d54600160a060020a031681565b60105481565b60065433600160a060020a0390811691161480610b95575060005433600160a060020a039081169116145b1515610ba057600080fd5b610baa82826113ff565b5050565b60005433600160a060020a03908116911614610bc957600080fd5b600c8054600160a060020a031916600160a060020a0392909216919091179055565b6000805433600160a060020a03908116911614610c0757600080fd5b60025460ff851610610c1857600080fd5b600154610c2b908463ffffffff6113f016565b60019081556002805491610c41919083016115e5565b5050600254600119015b8360ff16811115610cab576002805482908110610c6457fe5b9060005260206000209060020201600282600101815481101515610c8457fe5b60009182526020909120825460029092020190815560019182015491015560001901610c4b565b60408051908101604052838152602081018390526002805460ff6001880116908110610cd357fe5b90600052602060002090600202016000820151815560208201516001909101555050505050565b60075481565b60005433600160a060020a03908116911614610d1b57600080fd5b600955565b60008054819033600160a060020a03908116911614610d3e57600080fd5b60025460ff841610610d4f57600080fd5b6002805460ff8516908110610d6057fe5b90600052602060002090600202019150610d8982600001546001546114f790919063ffffffff16565b6001556002805460ff8516908110610d9d57fe5b600091825260208220600290910201818155600101555060ff82165b60025460001901811015610e1a576002805460018301908110610dd857fe5b9060005260206000209060020201600282815481101515610df557fe5b6000918252602090912082546002909202019081556001918201549082015501610db9565b6002805490610e2d9060001983016115e5565b50505050565b6002545b90565b600b5481565b6000805433600160a060020a03908116911614610e5c57600080fd5b60025460ff851610610e6d57600080fd5b6002805460ff8616908110610e7e57fe5b90600052602060002090600202019050610ea781600001546001546114f790919063ffffffff16565b600190815583825581810183905554610ec6908463ffffffff6113f016565b60015550505050565b60085481565b60005433600160a060020a03908116911614610ef057600080fd5b601155565b60065460009033600160a060020a0390811691161480610f23575060005433600160a060020a039081169116145b1515610f2e57600080fd5b610f3883836113a5565b9392505050565b60035481565b60015481565b600080548190819081908190819033600160a060020a03908116911614610f7157600080fd5b610f9a601154610f8e600f546010546113f090919063ffffffff16565b9063ffffffff6113f016565b600a54909650600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610fe557600080fd5b6102c65a03f11515610ff657600080fd5b50505060405180516005549096506110399150611019908863ffffffff6114f716565b60055461102d90889063ffffffff61150916565b9063ffffffff61153416565b935061105660055461102d600f548761150990919063ffffffff16565b925061107360055461102d6010548761150990919063ffffffff16565b915061109060055461102d6011548761150990919063ffffffff16565b600c549091506110a990600160a060020a0316846113ff565b600d546110bf90600160a060020a0316836113ff565b600e546110d590600160a060020a0316826113ff565b600a54600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561111d57600080fd5b6102c65a03f1151561112e57600080fd5b50505060405180515050600c54600160a060020a031663be9a65556040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561117757600080fd5b6102c65a03f1151561118857600080fd5b5050600c54600054600160a060020a03918216925063f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156111e257600080fd5b6102c65a03f115156111f357600080fd5b505050505050505050565b60095481565b6000611211600854611399565b905090565b60005433600160a060020a0390811691161461123157600080fd5b60048054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461126e57600080fd5b600b55565b600280548290811061128157fe5b60009182526020909120600290910201805460019091015490915082565b60005433600160a060020a039081169116146112ba57600080fd5b600160a060020a03811615156112cf57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461134857600080fd5b600855565b60005433600160a060020a0390811691161461136857600080fd5b600d8054600160a060020a031916600160a060020a0392909216919091179055565b600a54600160a060020a031681565b60015462015180020190565b600080600b546003541015156113ba57600080fd5b6003546113cd908463ffffffff6113f016565b6003556113d98361154b565b90506113e584826113ff565b8091505b5092915050565b6000828201838110156113e557fe5b600a54600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561145e57600080fd5b6102c65a03f1151561146f57600080fd5b50505060405180515050600a54600160a060020a031663a9059cbb838360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156114d857600080fd5b6102c65a03f115156114e957600080fd5b505050604051805150505050565b60008282111561150357fe5b50900390565b60008083151561151c57600091506113e9565b5082820282848281151561152c57fe5b04146113e557fe5b600080828481151561154257fe5b04949350505050565b60008060008061155c600854610a23565b925060028381548110151561156d57fe5b9060005260206000209060020201915061159e670de0b6b3a764000061102d6007548861150990919063ffffffff16565b90506000826001015411156115dd576115da6115cd60055461102d85600101548561150990919063ffffffff16565b829063ffffffff6113f016565b90505b949350505050565b815481835581811511611611576002028160020283600052602060002091820191016116119190611616565b505050565b610e3791905b80821115610714576000808255600182015560020161161c5600a165627a7a72305820955c1d1a7dd222d41e230ae76e63c74cfefa8613a6fbac97b5d227006cb669170029

Swarm Source

bzzr://955c1d1a7dd222d41e230ae76e63c74cfefa8613a6fbac97b5d227006cb66917

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.