ETH Price: $2,110.54 (+3.05%)

Contract

0xFcEdcE553f6032462740f4e116A81fFe7f92D2B9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Pause54625722018-04-18 12:26:392885 days ago1524054399IN
0xFcEdcE55...e7f92D2B9
0 ETH0.0004302415
Transfer Ownersh...54625572018-04-18 12:23:242885 days ago1524054204IN
0xFcEdcE55...e7f92D2B9
0 ETH0.0006606121
Transfer54604892018-04-18 3:35:472886 days ago1524022547IN
0xFcEdcE55...e7f92D2B9
0.23 ETH0.0063394260
Transfer54601892018-04-18 2:22:462886 days ago1524018166IN
0xFcEdcE55...e7f92D2B9
0.33 ETH0.0058020464
Transfer54601732018-04-18 2:17:542886 days ago1524017874IN
0xFcEdcE55...e7f92D2B9
1.5 ETH0.0067620464
Transfer54536552018-04-16 23:39:042887 days ago1523921944IN
0xFcEdcE55...e7f92D2B9
0.111 ETH0.0063394260
Transfer54426932018-04-15 3:08:202889 days ago1523761700IN
0xFcEdcE55...e7f92D2B9
0.1 ETH0.0063394260
Transfer54405692018-04-14 18:32:552889 days ago1523730775IN
0xFcEdcE55...e7f92D2B9
1 ETH0.0063394260
Transfer54354672018-04-13 22:02:502890 days ago1523656970IN
0xFcEdcE55...e7f92D2B9
0.186 ETH0.0043319341
Transfer54326882018-04-13 10:38:402890 days ago1523615920IN
0xFcEdcE55...e7f92D2B9
2.1 ETH0.0054394260
Transfer54316572018-04-13 6:25:352891 days ago1523600735IN
0xFcEdcE55...e7f92D2B9
0.9 ETH0.0063394260
Transfer54265132018-04-12 9:30:342891 days ago1523525434IN
0xFcEdcE55...e7f92D2B9
1.3 ETH0.0054394260
Transfer54215282018-04-11 13:26:172892 days ago1523453177IN
0xFcEdcE55...e7f92D2B9
0.1 ETH0.0063394260
Transfer54211592018-04-11 11:54:332892 days ago1523447673IN
0xFcEdcE55...e7f92D2B9
1 ETH0.0042262840
Transfer54189952018-04-11 3:09:482893 days ago1523416188IN
0xFcEdcE55...e7f92D2B9
0.16 ETH0.000105651
Transfer54184642018-04-11 1:06:132893 days ago1523408773IN
0xFcEdcE55...e7f92D2B9
0.1 ETH0.000316973
Transfer54184592018-04-11 1:04:282893 days ago1523408668IN
0xFcEdcE55...e7f92D2B9
0.1 ETH0.0006330
Transfer54160012018-04-10 15:20:192893 days ago1523373619IN
0xFcEdcE55...e7f92D2B9
0.5 ETH0.0063394260
Transfer54135152018-04-10 5:29:482894 days ago1523338188IN
0xFcEdcE55...e7f92D2B9
0.49 ETH0.0054394260
Transfer54106082018-04-09 18:01:202894 days ago1523296880IN
0xFcEdcE55...e7f92D2B9
0.1 ETH0.0063394260
Transfer54100502018-04-09 15:56:272894 days ago1523289387IN
0xFcEdcE55...e7f92D2B9
0.996 ETH0.0025357624
Transfer54100312018-04-09 15:51:022894 days ago1523289062IN
0xFcEdcE55...e7f92D2B9
0.999 ETH0.000896539
Transfer54100072018-04-09 15:45:222894 days ago1523288722IN
0xFcEdcE55...e7f92D2B9
0.9999 ETH0.0001055
Transfer54073272018-04-09 4:57:102895 days ago1523249830IN
0xFcEdcE55...e7f92D2B9
0.68 ETH0.0054394260
Transfer54059982018-04-08 23:30:052895 days ago1523230205IN
0xFcEdcE55...e7f92D2B9
0.059 ETH0.001079750
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer54604892018-04-18 3:35:472886 days ago1524022547
0xFcEdcE55...e7f92D2B9
0.115 ETH
Transfer54604892018-04-18 3:35:472886 days ago1524022547
0xFcEdcE55...e7f92D2B9
0.115 ETH
Transfer54601892018-04-18 2:22:462886 days ago1524018166
0xFcEdcE55...e7f92D2B9
0.165 ETH
Transfer54601892018-04-18 2:22:462886 days ago1524018166
0xFcEdcE55...e7f92D2B9
0.165 ETH
Transfer54601732018-04-18 2:17:542886 days ago1524017874
0xFcEdcE55...e7f92D2B9
0.75 ETH
Transfer54601732018-04-18 2:17:542886 days ago1524017874
0xFcEdcE55...e7f92D2B9
0.75 ETH
Transfer54536552018-04-16 23:39:042887 days ago1523921944
0xFcEdcE55...e7f92D2B9
0.0555 ETH
Transfer54536552018-04-16 23:39:042887 days ago1523921944
0xFcEdcE55...e7f92D2B9
0.0555 ETH
Transfer54426932018-04-15 3:08:202889 days ago1523761700
0xFcEdcE55...e7f92D2B9
0.05 ETH
Transfer54426932018-04-15 3:08:202889 days ago1523761700
0xFcEdcE55...e7f92D2B9
0.05 ETH
Transfer54405692018-04-14 18:32:552889 days ago1523730775
0xFcEdcE55...e7f92D2B9
0.5 ETH
Transfer54405692018-04-14 18:32:552889 days ago1523730775
0xFcEdcE55...e7f92D2B9
0.5 ETH
Transfer54354672018-04-13 22:02:502890 days ago1523656970
0xFcEdcE55...e7f92D2B9
0.093 ETH
Transfer54354672018-04-13 22:02:502890 days ago1523656970
0xFcEdcE55...e7f92D2B9
0.093 ETH
Transfer54326882018-04-13 10:38:402890 days ago1523615920
0xFcEdcE55...e7f92D2B9
1.05 ETH
Transfer54326882018-04-13 10:38:402890 days ago1523615920
0xFcEdcE55...e7f92D2B9
1.05 ETH
Transfer54316572018-04-13 6:25:352891 days ago1523600735
0xFcEdcE55...e7f92D2B9
0.45 ETH
Transfer54316572018-04-13 6:25:352891 days ago1523600735
0xFcEdcE55...e7f92D2B9
0.45 ETH
Transfer54265132018-04-12 9:30:342891 days ago1523525434
0xFcEdcE55...e7f92D2B9
0.65 ETH
Transfer54265132018-04-12 9:30:342891 days ago1523525434
0xFcEdcE55...e7f92D2B9
0.65 ETH
Transfer54215282018-04-11 13:26:172892 days ago1523453177
0xFcEdcE55...e7f92D2B9
0.05 ETH
Transfer54215282018-04-11 13:26:172892 days ago1523453177
0xFcEdcE55...e7f92D2B9
0.05 ETH
Transfer54211592018-04-11 11:54:332892 days ago1523447673
0xFcEdcE55...e7f92D2B9
0.5 ETH
Transfer54211592018-04-11 11:54:332892 days ago1523447673
0xFcEdcE55...e7f92D2B9
0.5 ETH
Transfer54189952018-04-11 3:09:482893 days ago1523416188
0xFcEdcE55...e7f92D2B9
0.08 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ITO

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-03-17
*/

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/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    Unpause();
  }
}

// File: contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  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;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  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;
  }

  /**
  * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

// File: contracts/StagedCrowdsale.sol

contract StagedCrowdsale is Pausable {

  using SafeMath for uint;

  struct Stage {
    uint hardcap;
    uint price;
    uint invested;
    uint closed;
  }

  uint public start;

  uint public period;

  uint public totalHardcap;

  uint public totalInvested;

  Stage[] public stages;

  function stagesCount() public constant returns(uint) {
    return stages.length;
  }

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

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

  function addStage(uint hardcap, uint price) public onlyOwner {
    require(hardcap > 0 && price > 0);
    Stage memory stage = Stage(hardcap.mul(1 ether), price, 0, 0);
    stages.push(stage);
    totalHardcap = totalHardcap.add(stage.hardcap);
  }

  function removeStage(uint8 number) public onlyOwner {
    require(number >= 0 && number < stages.length);
    Stage storage stage = stages[number];
    totalHardcap = totalHardcap.sub(stage.hardcap);
    delete stages[number];
    for (uint i = number; i < stages.length - 1; i++) {
      stages[i] = stages[i+1];
    }
    stages.length--;
  }

  function changeStage(uint8 number, uint hardcap, uint price) public onlyOwner {
    require(number >= 0 && number < stages.length);
    Stage storage stage = stages[number];
    totalHardcap = totalHardcap.sub(stage.hardcap);
    stage.hardcap = hardcap.mul(1 ether);
    stage.price = price;
    totalHardcap = totalHardcap.add(stage.hardcap);
  }

  function insertStage(uint8 numberAfter, uint hardcap, uint price) public onlyOwner {
    require(numberAfter < stages.length);
    Stage memory stage = Stage(hardcap.mul(1 ether), price, 0, 0);
    totalHardcap = totalHardcap.add(stage.hardcap);
    stages.length++;
    for (uint i = stages.length - 2; i > numberAfter; i--) {
      stages[i + 1] = stages[i];
    }
    stages[numberAfter + 1] = stage;
  }

  function clearStages() public onlyOwner {
    for (uint i = 0; i < stages.length; i++) {
      delete stages[i];
    }
    stages.length -= stages.length;
    totalHardcap = 0;
  }

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

  modifier saleIsOn() {
    require(stages.length > 0 && now >= start && now < lastSaleDate());
    _;
  }

  modifier isUnderHardcap() {
    require(totalInvested <= totalHardcap);
    _;
  }

  function currentStage() public saleIsOn isUnderHardcap constant returns(uint) {
    for (uint i = 0; i < stages.length; i++) {
      if (stages[i].closed == 0) {
        return i;
      }
    }
    revert();
  }

}

// File: contracts/ReceivingContractCallback.sol

contract ReceivingContractCallback {

  function tokenFallback(address _from, uint _value) public;

}

// File: contracts/token/ERC20/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  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/ERC20/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;

  uint256 totalSupply_;

  /**
  * @dev total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return totalSupply_;
  }

  /**
  * @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/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/ERC20/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/token/ERC20/MintableToken.sol

/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */
contract MintableToken is StandardToken, Ownable {
  event Mint(address indexed to, uint256 amount);
  event MintFinished();

  bool public mintingFinished = false;


  modifier canMint() {
    require(!mintingFinished);
    _;
  }

  /**
   * @dev Function to mint tokens
   * @param _to The address that will receive the minted tokens.
   * @param _amount The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
    totalSupply_ = totalSupply_.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    Transfer(address(0), _to, _amount);
    return true;
  }

  /**
   * @dev Function to stop minting new tokens.
   * @return True if the operation was successful.
   */
  function finishMinting() onlyOwner canMint public returns (bool) {
    mintingFinished = true;
    MintFinished();
    return true;
  }
}

// File: contracts/StasyqToken.sol

contract StasyqToken is MintableToken {

  string public constant name = "Stasyq";

  string public constant symbol = "SQOIN";

  uint32 public constant decimals = 18;

  address public saleAgent;

  mapping (address => uint) public locked;

  mapping(address => bool)  public registeredCallbacks;

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

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

  function setSaleAgent(address newSaleAgnet) public onlyOwnerOrSaleAgent {
    saleAgent = newSaleAgnet;
  }

  function mint(address _to, uint256 _amount) public onlyOwnerOrSaleAgent canMint returns (bool) {
    totalSupply_ = totalSupply_.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    return true;
  }

  function finishMinting() public onlyOwnerOrSaleAgent canMint returns (bool) {
    mintingFinished = true;
    MintFinished();
    return true;
  }

  function transfer(address _to, uint256 _value) public canTransfer returns (bool) {
    require(locked[msg.sender] < now);
    return processCallback(super.transfer(_to, _value), msg.sender, _to, _value);
  }

  function transferFrom(address _from, address _to, uint256 _value) public canTransfer returns (bool) {
    require(locked[_from] < now);
    return processCallback(super.transferFrom(_from, _to, _value), _from, _to, _value);
  }

  function lock(address addr, uint periodInDays) public {
    require(locked[addr] < now && (msg.sender == saleAgent || msg.sender == addr));
    locked[addr] = now.add(periodInDays * 1 days);
  }

  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/CommonSale.sol

contract CommonSale is StagedCrowdsale {

  address public masterWallet;

  address public slaveWallet;

  address public directMintAgent;

  uint public slaveWalletPercent;

  uint public percentRate = 100;

  uint public minPrice;

  uint public totalTokensMinted;

  StasyqToken public token = StasyqToken(0xF300cC72613D575A4567405C2A07d2AaF182aEBf);

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

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

  function setMinPrice(uint newMinPrice) public onlyOwner {
    minPrice = newMinPrice;
  }

  function setMasterWallet(address newMasterWallet) public onlyOwner {
    masterWallet = newMasterWallet;
  }

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

  function directMint(address to, uint investedWei) public onlyDirectMintAgentOrOwner saleIsOn {
    mintTokens(to, investedWei);
  }

  function createTokens() public whenNotPaused payable {
    require(msg.value >= minPrice);
    uint masterValue = msg.value.mul(percentRate.sub(slaveWalletPercent)).div(percentRate);
    uint slaveValue = msg.value.sub(masterValue);
    masterWallet.transfer(masterValue);
    slaveWallet.transfer(slaveValue);
    mintTokens(msg.sender, msg.value);
  }

  function mintTokens(address to, uint weiInvested) internal {
    uint stageIndex = currentStage();
    Stage storage stage = stages[stageIndex];
    uint tokens = weiInvested.mul(stage.price);
    token.mint(this, tokens);
    token.transfer(to, tokens);
    totalTokensMinted = totalTokensMinted.add(tokens);
    totalInvested = totalInvested.add(weiInvested);
    stage.invested = stage.invested.add(weiInvested);
    if (stage.invested >= stage.hardcap) {
      stage.closed = now;
    }
  }

  function() external payable {
    createTokens();
  }

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


}

// File: contracts/ITO.sol

contract ITO is CommonSale {

  address public foundersTokensWalletMaster;
  
  address public foundersTokensWalletSlave;

  address public bountyTokensWallet;

  uint public foundersTokensPercent;

  uint public bountyTokensPercent;

  uint public lockPeriod;

  function ITO() public {
    addStage(2000,14500);
    addStage(2000,14000);
    addStage(2000,13500);
    addStage(2000,13000);
    addStage(2000,12500);
    addStage(2000,12000);
    addStage(2000,11500);
    addStage(2000,11000);
    addStage(2000,10500);
    addStage(2000,10000);
    masterWallet = 0x6715Feb90B78d4d7aD92FbaCA7Fd70481e12f836;
    slaveWallet = 0x8029618Ecb5445B73515d7C51AbB316A91FC7f23;
    slaveWalletPercent = 50;
    foundersTokensWalletMaster = 0x05E87Dc9c075256cB94951e0b35C581b93961885;
    foundersTokensWalletSlave = 0x8029618Ecb5445B73515d7C51AbB316A91FC7f23;
    bountyTokensWallet = 0x6715Feb90B78d4d7aD92FbaCA7Fd70481e12f836;
    start = 1523019600;
    period = 60;
    lockPeriod = 180;
    minPrice = 100000000000000000;
    foundersTokensPercent = 25;
    bountyTokensPercent = 5;
  }

  function setLockPeriod(uint newLockPeriod) public onlyOwner {
    lockPeriod = newLockPeriod;
  }

  function setFoundersTokensPercent(uint newFoundersTokensPercent) public onlyOwner {
    foundersTokensPercent = newFoundersTokensPercent;
  }

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

  function setFoundersTokensWalletMaster(address newFoundersTokensWalletMaster) public onlyOwner {
    foundersTokensWalletMaster = newFoundersTokensWalletMaster;
  }
  
  function setFoundersTokensWalletSlave(address newFoundersTokensWalletSlave) public onlyOwner {
    foundersTokensWalletSlave = newFoundersTokensWalletSlave;
  }

  function setBountyTokensWallet(address newBountyTokensWallet) public onlyOwner {
    bountyTokensWallet = newBountyTokensWallet;
  }
  
  function finishMinting() public whenNotPaused onlyOwner {
    uint summaryTokensPercent = bountyTokensPercent.add(foundersTokensPercent);
    uint mintedTokens = token.totalSupply();
    uint totalSupply = mintedTokens.mul(percentRate).div(percentRate.sub(summaryTokensPercent));
    uint foundersTokens = totalSupply.mul(foundersTokensPercent).div(percentRate);
    uint bountyTokens = totalSupply.mul(bountyTokensPercent).div(percentRate);
    
    uint foundersTokensMaster = foundersTokens.mul(slaveWalletPercent).div(percentRate);
    uint foundersTokensSlave = foundersTokens.mul(percentRate.sub(slaveWalletPercent)).div(percentRate);
    
    token.mint(this, foundersTokensMaster);
    token.transfer(foundersTokensWalletMaster, foundersTokensMaster);
    token.lock(foundersTokensWalletMaster, lockPeriod);
    
    token.mint(this, foundersTokensSlave);
    token.transfer(foundersTokensWalletSlave, foundersTokensSlave);
    token.lock(foundersTokensWalletSlave, lockPeriod);
    
    token.mint(this, bountyTokens);
    token.transfer(bountyTokensWallet, bountyTokens);
    totalTokensMinted = totalTokensMinted.add(foundersTokens).add(bountyTokens);
    token.finishMinting();
  }

}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"newPeriod","type":"uint256"}],"name":"setPeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newToken","type":"address"}],"name":"setToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"slaveWalletPercent","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastSaleDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"investedWei","type":"uint256"}],"name":"directMint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stagesCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newFoundersTokensWalletMaster","type":"address"}],"name":"setFoundersTokensWalletMaster","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lockPeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalInvested","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundersTokensWalletSlave","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newBountyTokensPercent","type":"uint256"}],"name":"setBountyTokensPercent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"currentStage","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundersTokensWalletMaster","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newMinPrice","type":"uint256"}],"name":"setMinPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"anotherToken","type":"address"},{"name":"to","type":"address"}],"name":"retrieveTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"directMintAgent","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"number","type":"uint8"},{"name":"hardcap","type":"uint256"},{"name":"price","type":"uint256"}],"name":"changeStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newDirectMintAgent","type":"address"}],"name":"setDirectMintAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newLockPeriod","type":"uint256"}],"name":"setLockPeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"clearStages","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalTokensMinted","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finishMinting","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"percentRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"stages","outputs":[{"name":"hardcap","type":"uint256"},{"name":"price","type":"uint256"},{"name":"invested","type":"uint256"},{"name":"closed","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundersTokensPercent","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":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":"hardcap","type":"uint256"},{"name":"price","type":"uint256"}],"name":"addStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newMasterWallet","type":"address"}],"name":"setMasterWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newFoundersTokensPercent","type":"uint256"}],"name":"setFoundersTokensPercent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"number","type":"uint8"}],"name":"removeStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"createTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newFoundersTokensWalletSlave","type":"address"}],"name":"setFoundersTokensWalletSlave","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"numberAfter","type":"uint8"},{"name":"hardcap","type":"uint256"},{"name":"price","type":"uint256"}],"name":"insertStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"period","outputs":[{"name":"","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":true,"inputs":[],"name":"totalHardcap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"masterWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"slaveWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60606040526000805460a060020a60ff02191690556064600a55600d8054600160a060020a03191673f300cc72613d575a4567405c2a07d2aaf182aebf17905534156200004b57600080fd5b60008054600160a060020a03191633600160a060020a0316179055620000846107d06138a4640100000000620002468102620013ec1704565b620000a26107d06136b0640100000000620013ec6200024682021704565b620000c06107d06134bc640100000000620013ec6200024682021704565b620000de6107d06132c8640100000000620013ec6200024682021704565b620000fc6107d06130d4640100000000620013ec6200024682021704565b6200011a6107d0612ee0640100000000620013ec6200024682021704565b620001386107d0612cec640100000000620013ec6200024682021704565b620001566107d0612af8640100000000620013ec6200024682021704565b620001746107d0612904640100000000620013ec6200024682021704565b620001926107d0612710640100000000620013ec6200024682021704565b60068054600160a060020a0319908116736715feb90b78d4d7ad92fbaca7fd70481e12f836908117909255600780548216738029618ecb5445b73515d7c51abb316a91fc7f239081179091556032600955600e805483167305e87dc9c075256cb94951e0b35c581b93961885179055600f805483169091179055601080549091169091179055635ac76f50600155603c60025560b460135567016345785d8a0000600b556019601155600560125562000421565b620002506200038c565b60005433600160a060020a039081169116146200026c57600080fd5b6000831180156200027d5750600082115b15156200028957600080fd5b608060405190810160405280620002b785670de0b6b3a7640000640100000000620019626200034282021704565b8152602001838152602001600081526020016000815250905060058054806001018281620002e69190620003b5565b600092835260209092208391600402018151815560208201518160010155604082015181600201556060820151600390910155506200033a905081516003549064010000000062001b496200037c82021704565b600355505050565b60008083151562000357576000915062000375565b508282028284828115156200036857fe5b04146200037157fe5b8091505b5092915050565b6000828201838110156200037157fe5b608060405190810160405280600081526020016000815260200160008152602001600081525090565b815481835581811511620003e457600402816004028360005260206000209182019101620003e49190620003e9565b505050565b6200041e91905b808211156200041a57600080825560018201819055600282018190556003820155600401620003f0565b5090565b90565b611c0c80620004316000396000f30060606040526004361061022c5763ffffffff60e060020a6000350416630f3a9f658114610236578063144fa6d71461024c578063258108da1461026b57806329dd0b86146102905780632f8bd891146102a35780633806422a146102c5578063396ff799146102d85780633f4ba83a146102f75780633fd8b02f1461030a5780635216aeec1461031d57806356b6cb701461033057806359169d061461035f5780635bf5d54c146103755780635c975abb146103885780635d891d12146103af5780635ea8cd12146103c25780636341ca0b146103d85780636abc3fe4146103fd5780636ed0b9d714610410578063769ffb7d1461042f578063779972da1461044e578063798c6e0f146104645780637d549e99146104775780637d64bcb41461048a5780638090114f1461049d5780638456cb59146104b0578063845ddcb2146104c357806386d0b46d146105045780638da5cb5b1461051757806399cd211d1461052a5780639a3fdfd01461053d5780639f49cefb14610550578063a6c7bf8a14610569578063ada199dd14610588578063b27b7dd11461059e578063b44272631461022c578063be9a6555146105b7578063e064bc82146105ca578063e45be8eb146105e9578063eb8ba66c146105fc578063ef78d4fd1461061b578063f2fde38b1461062e578063f6a03ebf1461064d578063f6a3b1dd14610663578063fa8b72ff14610676578063fc0c546a14610695578063fc0d0117146106a8578063feda1045146106bb575b6102346106ce565b005b341561024157600080fd5b6102346004356107b9565b341561025757600080fd5b610234600160a060020a03600435166107d9565b341561027657600080fd5b61027e610816565b60405190815260200160405180910390f35b341561029b57600080fd5b61027e61081c565b34156102ae57600080fd5b610234600160a060020a036004351660243561082e565b34156102d057600080fd5b61027e6108a0565b34156102e357600080fd5b610234600160a060020a03600435166108a6565b341561030257600080fd5b6102346108e3565b341561031557600080fd5b61027e610962565b341561032857600080fd5b61027e610968565b341561033b57600080fd5b61034361096e565b604051600160a060020a03909116815260200160405180910390f35b341561036a57600080fd5b61023460043561097d565b341561038057600080fd5b61027e61099d565b341561039357600080fd5b61039b610a34565b604051901515815260200160405180910390f35b34156103ba57600080fd5b610343610a44565b34156103cd57600080fd5b610234600435610a53565b34156103e357600080fd5b610234600160a060020a0360043581169060243516610a73565b341561040857600080fd5b610343610b76565b341561041b57600080fd5b61023460ff60043516602435604435610b85565b341561043a57600080fd5b610234600160a060020a0360043516610c3e565b341561045957600080fd5b610234600435610c7b565b341561046f57600080fd5b610234610c9b565b341561048257600080fd5b61027e610d19565b341561049557600080fd5b610234610d1f565b34156104a857600080fd5b61027e611300565b34156104bb57600080fd5b610234611306565b34156104ce57600080fd5b6104d960043561138a565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b341561050f57600080fd5b61027e6113c2565b341561052257600080fd5b6103436113c8565b341561053557600080fd5b6103436113d7565b341561054857600080fd5b61027e6113e6565b341561055b57600080fd5b6102346004356024356113ec565b341561057457600080fd5b610234600160a060020a03600435166114cd565b341561059357600080fd5b61023460043561150a565b34156105a957600080fd5b61023460ff6004351661152a565b34156105c257600080fd5b61027e611675565b34156105d557600080fd5b610234600160a060020a036004351661167b565b34156105f457600080fd5b61027e6116b8565b341561060757600080fd5b61023460ff600435166024356044356116be565b341561062657600080fd5b61027e61182c565b341561063957600080fd5b610234600160a060020a0360043516611832565b341561065857600080fd5b6102346004356118c0565b341561066e57600080fd5b61027e6118e0565b341561068157600080fd5b610234600160a060020a03600435166118e6565b34156106a057600080fd5b610343611923565b34156106b357600080fd5b610343611932565b34156106c657600080fd5b610343611941565b60008054819060a060020a900460ff16156106e857600080fd5b600b543410156106f757600080fd5b610730600a54610724610717600954600a5461195090919063ffffffff16565b349063ffffffff61196216565b9063ffffffff61199816565b9150610742348363ffffffff61195016565b600654909150600160a060020a031682156108fc0283604051600060405180830381858888f19350505050151561077857600080fd5b600754600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156107ab57600080fd5b6107b533346119af565b5050565b60005433600160a060020a039081169116146107d457600080fd5b600255565b60005433600160a060020a039081169116146107f457600080fd5b600d8054600160a060020a031916600160a060020a0392909216919091179055565b60095481565b60025460015462015180909102015b90565b60085433600160a060020a0390811691161480610859575060005433600160a060020a039081169116145b151561086457600080fd5b60055460009011801561087957506001544210155b801561088b575061088861081c565b42105b151561089657600080fd5b6107b582826119af565b60055490565b60005433600160a060020a039081169116146108c157600080fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146108fe57600080fd5b60005460a060020a900460ff16151561091657600080fd5b6000805474ff0000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60135481565b60045481565b600f54600160a060020a031681565b60005433600160a060020a0390811691161461099857600080fd5b601255565b60008060006005805490501180156109b757506001544210155b80156109c957506109c661081c565b42105b15156109d457600080fd5b60035460045411156109e557600080fd5b5060005b600554811015610a2b576005805482908110610a0157fe5b90600052602060002090600402016003015460001415610a2357809150610a30565b6001016109e9565b600080fd5b5090565b60005460a060020a900460ff1681565b600e54600160a060020a031681565b60005433600160a060020a03908116911614610a6e57600080fd5b600b55565b6000805433600160a060020a03908116911614610a8f57600080fd5b5081600160a060020a03811663a9059cbb83826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610aef57600080fd5b6102c65a03f11515610b0057600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610b5657600080fd5b6102c65a03f11515610b6757600080fd5b50505060405180515050505050565b600854600160a060020a031681565b6000805433600160a060020a03908116911614610ba157600080fd5b60008460ff1610158015610bb9575060055460ff8516105b1515610bc457600080fd5b6005805460ff8616908110610bd557fe5b90600052602060002090600402019050610bfe816000015460035461195090919063ffffffff16565b600355610c1983670de0b6b3a764000063ffffffff61196216565b80825560018201839055600354610c359163ffffffff611b4916565b60035550505050565b60005433600160a060020a03908116911614610c5957600080fd5b60088054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610c9657600080fd5b601355565b6000805433600160a060020a03908116911614610cb757600080fd5b5060005b600554811015610d03576005805482908110610cd357fe5b60009182526020822060049091020181815560018082018390556002820183905560039091019190915501610cbb565b6000610d10600582611b58565b50506000600355565b600c5481565b60008060008060008060008060149054906101000a900460ff16151515610d4557600080fd5b60005433600160a060020a03908116911614610d6057600080fd5b601154601254610d759163ffffffff611b4916565b600d54909750600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610dc057600080fd5b6102c65a03f11515610dd157600080fd5b5050506040518051600a54909750610e089150610df4908963ffffffff61195016565b600a5461072490899063ffffffff61196216565b9450610e25600a546107246011548861196290919063ffffffff16565b9350610e42600a546107246012548861196290919063ffffffff16565b9250610e5f600a546107246009548761196290919063ffffffff16565b9150610e8e600a54610724610e81600954600a5461195090919063ffffffff16565b879063ffffffff61196216565b600d54909150600160a060020a03166340c10f19308460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610ef057600080fd5b6102c65a03f11515610f0157600080fd5b50505060405180515050600d54600e54600160a060020a039182169163a9059cbb91168460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610f7157600080fd5b6102c65a03f11515610f8257600080fd5b50505060405180515050600d54600e54601354600160a060020a039283169263282d3fdf92169060405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610fec57600080fd5b6102c65a03f11515610ffd57600080fd5b5050600d54600160a060020a031690506340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561106057600080fd5b6102c65a03f1151561107157600080fd5b50505060405180515050600d54600f54600160a060020a039182169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156110e157600080fd5b6102c65a03f115156110f257600080fd5b50505060405180515050600d54600f54601354600160a060020a039283169263282d3fdf92169060405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561115c57600080fd5b6102c65a03f1151561116d57600080fd5b5050600d54600160a060020a031690506340c10f19308560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156111d057600080fd5b6102c65a03f115156111e157600080fd5b50505060405180515050600d54601054600160a060020a039182169163a9059cbb91168560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561125157600080fd5b6102c65a03f1151561126257600080fd5b50505060405180515050600c54611291908490611285908763ffffffff611b4916565b9063ffffffff611b4916565b600c55600d54600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156112dc57600080fd5b6102c65a03f115156112ed57600080fd5b5050506040518051505050505050505050565b600a5481565b60005433600160a060020a0390811691161461132157600080fd5b60005460a060020a900460ff161561133857600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600580548290811061139857fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b60115481565b600054600160a060020a031681565b601054600160a060020a031681565b60125481565b6113f4611b89565b60005433600160a060020a0390811691161461140f57600080fd5b60008311801561141f5750600082115b151561142a57600080fd5b60806040519081016040528061144e85670de0b6b3a764000063ffffffff61196216565b815260200183815260200160008152602001600081525090506005805480600101828161147b9190611b58565b600092835260209092208391600402018151815560208201518160010155604082015181600201556060820151600390910155506114c5905081516003549063ffffffff611b4916565b600355505050565b60005433600160a060020a039081169116146114e857600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461152557600080fd5b601155565b60008054819033600160a060020a0390811691161461154857600080fd5b60008360ff1610158015611560575060055460ff8416105b151561156b57600080fd5b6005805460ff851690811061157c57fe5b906000526020600020906004020191506115a5826000015460035461195090919063ffffffff16565b6003556005805460ff85169081106115b957fe5b6000918252602082206004909102018181556001810182905560028101829055600301555060ff82165b6005546000190181101561165c57600580546001830190811061160257fe5b906000526020600020906004020160058281548110151561161f57fe5b60009182526020909120825460049092020190815560018083015481830155600280840154908301556003928301549290910191909155016115e3565b600580549061166f906000198301611b58565b50505050565b60015481565b60005433600160a060020a0390811691161461169657600080fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b600b5481565b6116c6611b89565b6000805433600160a060020a039081169116146116e257600080fd5b60055460ff8616106116f357600080fd5b60806040519081016040528061171786670de0b6b3a764000063ffffffff61196216565b8152602001848152602001600081526020016000815250915061174782600001516003549063ffffffff611b4916565b600355600580549061175c9060018301611b58565b5050600554600119015b8460ff168111156117da57600580548290811061177f57fe5b906000526020600020906004020160058260010181548110151561179f57fe5b600091825260209091208254600490920201908155600180830154908201556002808301549082015560039182015491015560001901611766565b8160058660010160ff168154811015156117f057fe5b90600052602060002090600402016000820151815560208201518160010155604082015181600201556060820151600390910155505050505050565b60025481565b60005433600160a060020a0390811691161461184d57600080fd5b600160a060020a038116151561186257600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146118db57600080fd5b600155565b60035481565b60005433600160a060020a0390811691161461190157600080fd5b60108054600160a060020a031916600160a060020a0392909216919091179055565b600d54600160a060020a031681565b600654600160a060020a031681565b600754600160a060020a031681565b60008282111561195c57fe5b50900390565b6000808315156119755760009150611991565b5082820282848281151561198557fe5b041461198d57fe5b8091505b5092915050565b60008082848115156119a657fe5b04949350505050565b60008060006119bc61099d565b92506005838154811015156119cd57fe5b906000526020600020906004020191506119f482600101548561196290919063ffffffff16565b600d54909150600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611a5657600080fd5b6102c65a03f11515611a6757600080fd5b50505060405180515050600d54600160a060020a031663a9059cbb868360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611ad057600080fd5b6102c65a03f11515611ae157600080fd5b50505060405180515050600c54611afe908263ffffffff611b4916565b600c55600454611b14908563ffffffff611b4916565b6004556002820154611b2c908563ffffffff611b4916565b6002830181905582549010611b42574260038301555b5050505050565b60008282018381101561198d57fe5b815481835581811511611b8457600402816004028360005260206000209182019101611b849190611bb2565b505050565b608060405190810160405280600081526020016000815260200160008152602001600081525090565b61082b91905b80821115610a3057600080825560018201819055600282018190556003820155600401611bb85600a165627a7a723058202923842d630dcf0981e6a31ecf123ab502fa9b4ce1955a6658e4164e93cfcf230029

Deployed Bytecode

0x60606040526004361061022c5763ffffffff60e060020a6000350416630f3a9f658114610236578063144fa6d71461024c578063258108da1461026b57806329dd0b86146102905780632f8bd891146102a35780633806422a146102c5578063396ff799146102d85780633f4ba83a146102f75780633fd8b02f1461030a5780635216aeec1461031d57806356b6cb701461033057806359169d061461035f5780635bf5d54c146103755780635c975abb146103885780635d891d12146103af5780635ea8cd12146103c25780636341ca0b146103d85780636abc3fe4146103fd5780636ed0b9d714610410578063769ffb7d1461042f578063779972da1461044e578063798c6e0f146104645780637d549e99146104775780637d64bcb41461048a5780638090114f1461049d5780638456cb59146104b0578063845ddcb2146104c357806386d0b46d146105045780638da5cb5b1461051757806399cd211d1461052a5780639a3fdfd01461053d5780639f49cefb14610550578063a6c7bf8a14610569578063ada199dd14610588578063b27b7dd11461059e578063b44272631461022c578063be9a6555146105b7578063e064bc82146105ca578063e45be8eb146105e9578063eb8ba66c146105fc578063ef78d4fd1461061b578063f2fde38b1461062e578063f6a03ebf1461064d578063f6a3b1dd14610663578063fa8b72ff14610676578063fc0c546a14610695578063fc0d0117146106a8578063feda1045146106bb575b6102346106ce565b005b341561024157600080fd5b6102346004356107b9565b341561025757600080fd5b610234600160a060020a03600435166107d9565b341561027657600080fd5b61027e610816565b60405190815260200160405180910390f35b341561029b57600080fd5b61027e61081c565b34156102ae57600080fd5b610234600160a060020a036004351660243561082e565b34156102d057600080fd5b61027e6108a0565b34156102e357600080fd5b610234600160a060020a03600435166108a6565b341561030257600080fd5b6102346108e3565b341561031557600080fd5b61027e610962565b341561032857600080fd5b61027e610968565b341561033b57600080fd5b61034361096e565b604051600160a060020a03909116815260200160405180910390f35b341561036a57600080fd5b61023460043561097d565b341561038057600080fd5b61027e61099d565b341561039357600080fd5b61039b610a34565b604051901515815260200160405180910390f35b34156103ba57600080fd5b610343610a44565b34156103cd57600080fd5b610234600435610a53565b34156103e357600080fd5b610234600160a060020a0360043581169060243516610a73565b341561040857600080fd5b610343610b76565b341561041b57600080fd5b61023460ff60043516602435604435610b85565b341561043a57600080fd5b610234600160a060020a0360043516610c3e565b341561045957600080fd5b610234600435610c7b565b341561046f57600080fd5b610234610c9b565b341561048257600080fd5b61027e610d19565b341561049557600080fd5b610234610d1f565b34156104a857600080fd5b61027e611300565b34156104bb57600080fd5b610234611306565b34156104ce57600080fd5b6104d960043561138a565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b341561050f57600080fd5b61027e6113c2565b341561052257600080fd5b6103436113c8565b341561053557600080fd5b6103436113d7565b341561054857600080fd5b61027e6113e6565b341561055b57600080fd5b6102346004356024356113ec565b341561057457600080fd5b610234600160a060020a03600435166114cd565b341561059357600080fd5b61023460043561150a565b34156105a957600080fd5b61023460ff6004351661152a565b34156105c257600080fd5b61027e611675565b34156105d557600080fd5b610234600160a060020a036004351661167b565b34156105f457600080fd5b61027e6116b8565b341561060757600080fd5b61023460ff600435166024356044356116be565b341561062657600080fd5b61027e61182c565b341561063957600080fd5b610234600160a060020a0360043516611832565b341561065857600080fd5b6102346004356118c0565b341561066e57600080fd5b61027e6118e0565b341561068157600080fd5b610234600160a060020a03600435166118e6565b34156106a057600080fd5b610343611923565b34156106b357600080fd5b610343611932565b34156106c657600080fd5b610343611941565b60008054819060a060020a900460ff16156106e857600080fd5b600b543410156106f757600080fd5b610730600a54610724610717600954600a5461195090919063ffffffff16565b349063ffffffff61196216565b9063ffffffff61199816565b9150610742348363ffffffff61195016565b600654909150600160a060020a031682156108fc0283604051600060405180830381858888f19350505050151561077857600080fd5b600754600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156107ab57600080fd5b6107b533346119af565b5050565b60005433600160a060020a039081169116146107d457600080fd5b600255565b60005433600160a060020a039081169116146107f457600080fd5b600d8054600160a060020a031916600160a060020a0392909216919091179055565b60095481565b60025460015462015180909102015b90565b60085433600160a060020a0390811691161480610859575060005433600160a060020a039081169116145b151561086457600080fd5b60055460009011801561087957506001544210155b801561088b575061088861081c565b42105b151561089657600080fd5b6107b582826119af565b60055490565b60005433600160a060020a039081169116146108c157600080fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146108fe57600080fd5b60005460a060020a900460ff16151561091657600080fd5b6000805474ff0000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60135481565b60045481565b600f54600160a060020a031681565b60005433600160a060020a0390811691161461099857600080fd5b601255565b60008060006005805490501180156109b757506001544210155b80156109c957506109c661081c565b42105b15156109d457600080fd5b60035460045411156109e557600080fd5b5060005b600554811015610a2b576005805482908110610a0157fe5b90600052602060002090600402016003015460001415610a2357809150610a30565b6001016109e9565b600080fd5b5090565b60005460a060020a900460ff1681565b600e54600160a060020a031681565b60005433600160a060020a03908116911614610a6e57600080fd5b600b55565b6000805433600160a060020a03908116911614610a8f57600080fd5b5081600160a060020a03811663a9059cbb83826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610aef57600080fd5b6102c65a03f11515610b0057600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610b5657600080fd5b6102c65a03f11515610b6757600080fd5b50505060405180515050505050565b600854600160a060020a031681565b6000805433600160a060020a03908116911614610ba157600080fd5b60008460ff1610158015610bb9575060055460ff8516105b1515610bc457600080fd5b6005805460ff8616908110610bd557fe5b90600052602060002090600402019050610bfe816000015460035461195090919063ffffffff16565b600355610c1983670de0b6b3a764000063ffffffff61196216565b80825560018201839055600354610c359163ffffffff611b4916565b60035550505050565b60005433600160a060020a03908116911614610c5957600080fd5b60088054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610c9657600080fd5b601355565b6000805433600160a060020a03908116911614610cb757600080fd5b5060005b600554811015610d03576005805482908110610cd357fe5b60009182526020822060049091020181815560018082018390556002820183905560039091019190915501610cbb565b6000610d10600582611b58565b50506000600355565b600c5481565b60008060008060008060008060149054906101000a900460ff16151515610d4557600080fd5b60005433600160a060020a03908116911614610d6057600080fd5b601154601254610d759163ffffffff611b4916565b600d54909750600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610dc057600080fd5b6102c65a03f11515610dd157600080fd5b5050506040518051600a54909750610e089150610df4908963ffffffff61195016565b600a5461072490899063ffffffff61196216565b9450610e25600a546107246011548861196290919063ffffffff16565b9350610e42600a546107246012548861196290919063ffffffff16565b9250610e5f600a546107246009548761196290919063ffffffff16565b9150610e8e600a54610724610e81600954600a5461195090919063ffffffff16565b879063ffffffff61196216565b600d54909150600160a060020a03166340c10f19308460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610ef057600080fd5b6102c65a03f11515610f0157600080fd5b50505060405180515050600d54600e54600160a060020a039182169163a9059cbb91168460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610f7157600080fd5b6102c65a03f11515610f8257600080fd5b50505060405180515050600d54600e54601354600160a060020a039283169263282d3fdf92169060405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610fec57600080fd5b6102c65a03f11515610ffd57600080fd5b5050600d54600160a060020a031690506340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561106057600080fd5b6102c65a03f1151561107157600080fd5b50505060405180515050600d54600f54600160a060020a039182169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156110e157600080fd5b6102c65a03f115156110f257600080fd5b50505060405180515050600d54600f54601354600160a060020a039283169263282d3fdf92169060405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561115c57600080fd5b6102c65a03f1151561116d57600080fd5b5050600d54600160a060020a031690506340c10f19308560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156111d057600080fd5b6102c65a03f115156111e157600080fd5b50505060405180515050600d54601054600160a060020a039182169163a9059cbb91168560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561125157600080fd5b6102c65a03f1151561126257600080fd5b50505060405180515050600c54611291908490611285908763ffffffff611b4916565b9063ffffffff611b4916565b600c55600d54600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156112dc57600080fd5b6102c65a03f115156112ed57600080fd5b5050506040518051505050505050505050565b600a5481565b60005433600160a060020a0390811691161461132157600080fd5b60005460a060020a900460ff161561133857600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600580548290811061139857fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b60115481565b600054600160a060020a031681565b601054600160a060020a031681565b60125481565b6113f4611b89565b60005433600160a060020a0390811691161461140f57600080fd5b60008311801561141f5750600082115b151561142a57600080fd5b60806040519081016040528061144e85670de0b6b3a764000063ffffffff61196216565b815260200183815260200160008152602001600081525090506005805480600101828161147b9190611b58565b600092835260209092208391600402018151815560208201518160010155604082015181600201556060820151600390910155506114c5905081516003549063ffffffff611b4916565b600355505050565b60005433600160a060020a039081169116146114e857600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461152557600080fd5b601155565b60008054819033600160a060020a0390811691161461154857600080fd5b60008360ff1610158015611560575060055460ff8416105b151561156b57600080fd5b6005805460ff851690811061157c57fe5b906000526020600020906004020191506115a5826000015460035461195090919063ffffffff16565b6003556005805460ff85169081106115b957fe5b6000918252602082206004909102018181556001810182905560028101829055600301555060ff82165b6005546000190181101561165c57600580546001830190811061160257fe5b906000526020600020906004020160058281548110151561161f57fe5b60009182526020909120825460049092020190815560018083015481830155600280840154908301556003928301549290910191909155016115e3565b600580549061166f906000198301611b58565b50505050565b60015481565b60005433600160a060020a0390811691161461169657600080fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b600b5481565b6116c6611b89565b6000805433600160a060020a039081169116146116e257600080fd5b60055460ff8616106116f357600080fd5b60806040519081016040528061171786670de0b6b3a764000063ffffffff61196216565b8152602001848152602001600081526020016000815250915061174782600001516003549063ffffffff611b4916565b600355600580549061175c9060018301611b58565b5050600554600119015b8460ff168111156117da57600580548290811061177f57fe5b906000526020600020906004020160058260010181548110151561179f57fe5b600091825260209091208254600490920201908155600180830154908201556002808301549082015560039182015491015560001901611766565b8160058660010160ff168154811015156117f057fe5b90600052602060002090600402016000820151815560208201518160010155604082015181600201556060820151600390910155505050505050565b60025481565b60005433600160a060020a0390811691161461184d57600080fd5b600160a060020a038116151561186257600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146118db57600080fd5b600155565b60035481565b60005433600160a060020a0390811691161461190157600080fd5b60108054600160a060020a031916600160a060020a0392909216919091179055565b600d54600160a060020a031681565b600654600160a060020a031681565b600754600160a060020a031681565b60008282111561195c57fe5b50900390565b6000808315156119755760009150611991565b5082820282848281151561198557fe5b041461198d57fe5b8091505b5092915050565b60008082848115156119a657fe5b04949350505050565b60008060006119bc61099d565b92506005838154811015156119cd57fe5b906000526020600020906004020191506119f482600101548561196290919063ffffffff16565b600d54909150600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611a5657600080fd5b6102c65a03f11515611a6757600080fd5b50505060405180515050600d54600160a060020a031663a9059cbb868360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611ad057600080fd5b6102c65a03f11515611ae157600080fd5b50505060405180515050600c54611afe908263ffffffff611b4916565b600c55600454611b14908563ffffffff611b4916565b6004556002820154611b2c908563ffffffff611b4916565b6002830181905582549010611b42574260038301555b5050505050565b60008282018381101561198d57fe5b815481835581811511611b8457600402816004028360005260206000209182019101611b849190611bb2565b505050565b608060405190810160405280600081526020016000815260200160008152602001600081525090565b61082b91905b80821115610a3057600080825560018201819055600282018190556003820155600401611bb85600a165627a7a723058202923842d630dcf0981e6a31ecf123ab502fa9b4ce1955a6658e4164e93cfcf230029

Swarm Source

bzzr://2923842d630dcf0981e6a31ecf123ab502fa9b4ce1955a6658e4164e93cfcf23

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.