ETH Price: $3,655.78 (-5.87%)

Contract

0xf52AB948Fe5C7d0Eb03EfBF6c60f7112CBc8Ea89
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer54983772018-04-24 16:34:192430 days ago1524587659IN
0xf52AB948...2CBc8Ea89
0.5 ETH0.0035211690
Transfer54981512018-04-24 15:37:212430 days ago1524584241IN
0xf52AB948...2CBc8Ea89
0.55 ETH0.0023474460
Transfer54981422018-04-24 15:34:532430 days ago1524584093IN
0xf52AB948...2CBc8Ea89
1.1 ETH0.002621367
Transfer54980972018-04-24 15:24:142430 days ago1524583454IN
0xf52AB948...2CBc8Ea89
0.568 ETH0.000169116.710827
Transfer54980442018-04-24 15:10:392430 days ago1524582639IN
0xf52AB948...2CBc8Ea89
1 ETH0.002621367
Transfer54979732018-04-24 14:53:302430 days ago1524581610IN
0xf52AB948...2CBc8Ea89
1 ETH0.002621367
Transfer54978422018-04-24 14:18:102430 days ago1524579490IN
0xf52AB948...2CBc8Ea89
1.005 ETH0.00086141
Transfer54978152018-04-24 14:10:582430 days ago1524579058IN
0xf52AB948...2CBc8Ea89
6 ETH0.00252100
Transfer54978112018-04-24 14:09:502430 days ago1524578990IN
0xf52AB948...2CBc8Ea89
2.01 ETH0.0023474460
Transfer54978072018-04-24 14:08:162430 days ago1524578896IN
0xf52AB948...2CBc8Ea89
6 ETH0.00252100
Transfer Ownersh...53930742018-04-06 20:24:002448 days ago1523046240IN
0xf52AB948...2CBc8Ea89
0 ETH0.0006615421
Transfer53797692018-04-04 15:12:532450 days ago1522854773IN
0xf52AB948...2CBc8Ea89
0.1 ETH0.0023474460
Transfer53789042018-04-04 11:51:242450 days ago1522842684IN
0xf52AB948...2CBc8Ea89
0.2 ETH0.0050614548
Transfer53788932018-04-04 11:48:272450 days ago1522842507IN
0xf52AB948...2CBc8Ea89
0.11 ETH0.0009044710
Transfer53788892018-04-04 11:47:392450 days ago1522842459IN
0xf52AB948...2CBc8Ea89
19 ETH0.000452235
Transfer53788892018-04-04 11:47:392450 days ago1522842459IN
0xf52AB948...2CBc8Ea89
3.1 ETH0.0037083241
Transfer53788762018-04-04 11:44:052450 days ago1522842245IN
0xf52AB948...2CBc8Ea89
0.11 ETH0.00110
Transfer53788682018-04-04 11:41:472450 days ago1522842107IN
0xf52AB948...2CBc8Ea89
0.11266684 ETH0.00110
Transfer53788652018-04-04 11:41:082450 days ago1522842068IN
0xf52AB948...2CBc8Ea89
0.1 ETH0.000843578
Transfer53788622018-04-04 11:39:232450 days ago1522841963IN
0xf52AB948...2CBc8Ea89
0.115 ETH0.0021089420
Transfer53788622018-04-04 11:39:232450 days ago1522841963IN
0xf52AB948...2CBc8Ea89
0.1 ETH0.0001688
Transfer53788402018-04-04 11:33:592450 days ago1522841639IN
0xf52AB948...2CBc8Ea89
24 ETH0.0063268260
Transfer53788312018-04-04 11:31:242450 days ago1522841484IN
0xf52AB948...2CBc8Ea89
0.85 ETH0.0063268260
Transfer53787952018-04-04 11:21:362450 days ago1522840896IN
0xf52AB948...2CBc8Ea89
0.6 ETH0.0012653612
Transfer53787252018-04-04 11:07:072450 days ago1522840027IN
0xf52AB948...2CBc8Ea89
0.1 ETH0.000090441
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
54983772018-04-24 16:34:192430 days ago1524587659
0xf52AB948...2CBc8Ea89
0.25 ETH
54983772018-04-24 16:34:192430 days ago1524587659
0xf52AB948...2CBc8Ea89
0.25 ETH
54981512018-04-24 15:37:212430 days ago1524584241
0xf52AB948...2CBc8Ea89
0.275 ETH
54981512018-04-24 15:37:212430 days ago1524584241
0xf52AB948...2CBc8Ea89
0.275 ETH
54981422018-04-24 15:34:532430 days ago1524584093
0xf52AB948...2CBc8Ea89
0.55 ETH
54981422018-04-24 15:34:532430 days ago1524584093
0xf52AB948...2CBc8Ea89
0.55 ETH
54980442018-04-24 15:10:392430 days ago1524582639
0xf52AB948...2CBc8Ea89
0.5 ETH
54980442018-04-24 15:10:392430 days ago1524582639
0xf52AB948...2CBc8Ea89
0.5 ETH
54979732018-04-24 14:53:302430 days ago1524581610
0xf52AB948...2CBc8Ea89
0.5 ETH
54979732018-04-24 14:53:302430 days ago1524581610
0xf52AB948...2CBc8Ea89
0.5 ETH
54978112018-04-24 14:09:502430 days ago1524578990
0xf52AB948...2CBc8Ea89
1.005 ETH
54978112018-04-24 14:09:502430 days ago1524578990
0xf52AB948...2CBc8Ea89
1.005 ETH
53797692018-04-04 15:12:532450 days ago1522854773
0xf52AB948...2CBc8Ea89
0.05 ETH
53797692018-04-04 15:12:532450 days ago1522854773
0xf52AB948...2CBc8Ea89
0.05 ETH
53789042018-04-04 11:51:242450 days ago1522842684
0xf52AB948...2CBc8Ea89
0.1 ETH
53789042018-04-04 11:51:242450 days ago1522842684
0xf52AB948...2CBc8Ea89
0.1 ETH
53788932018-04-04 11:48:272450 days ago1522842507
0xf52AB948...2CBc8Ea89
0.055 ETH
53788932018-04-04 11:48:272450 days ago1522842507
0xf52AB948...2CBc8Ea89
0.055 ETH
53788892018-04-04 11:47:392450 days ago1522842459
0xf52AB948...2CBc8Ea89
9.5 ETH
53788892018-04-04 11:47:392450 days ago1522842459
0xf52AB948...2CBc8Ea89
9.5 ETH
53788892018-04-04 11:47:392450 days ago1522842459
0xf52AB948...2CBc8Ea89
1.55 ETH
53788892018-04-04 11:47:392450 days ago1522842459
0xf52AB948...2CBc8Ea89
1.55 ETH
53788762018-04-04 11:44:052450 days ago1522842245
0xf52AB948...2CBc8Ea89
0.055 ETH
53788762018-04-04 11:44:052450 days ago1522842245
0xf52AB948...2CBc8Ea89
0.055 ETH
53788682018-04-04 11:41:472450 days ago1522842107
0xf52AB948...2CBc8Ea89
0.05633342 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Mainsale

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-01-14
*/

pragma solidity ^0.4.18;

/**
 * @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 constant returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public constant 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);
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || 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;
  }
}

/**
 * @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 constant returns (uint256 balance) {
    return balances[_owner];
  }

}

/**
 * @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 constant returns (uint256 remaining) {
    return allowed[_owner][_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
   */
  function increaseApproval (address _spender, uint _addedValue) public returns (bool success) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  function () public payable {
    revert();
  }

}

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

}

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 && !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);
  }
  
}

/**
 * @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();
  }
}

contract VestarinToken is MintableToken {	
    
  string public constant name = "Vestarin";
   
  string public constant symbol = "VST";
    
  uint32 public constant decimals = 18;

  mapping (address => uint) public locked;

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

  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(locked[_from] < now);
    return super.transferFrom(_from, _to, _value);
  }
  
  function lock(address addr, uint periodInDays) public {
    require(locked[addr] < now && (msg.sender == saleAgent || msg.sender == addr));
    locked[addr] = now + periodInDays * 1 days;
  }

}

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

}

contract CommonSale is StagedCrowdsale {

  address public masterWallet;

  address public slaveWallet;
  
  address public directMintAgent;

  uint public slaveWalletPercent = 30;

  uint public percentRate = 100;

  uint public minPrice;

  uint public totalTokensMinted;
  
  bool public slaveWalletInitialized;
  
  bool public slaveWalletPercentInitialized;

  VestarinToken public token;
  
  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 setSlaveWalletPercent(uint newSlaveWalletPercent) public onlyOwner {
    require(!slaveWalletPercentInitialized);
    slaveWalletPercent = newSlaveWalletPercent;
    slaveWalletPercentInitialized = true;
  }

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

  function setSlaveWallet(address newSlaveWallet) public onlyOwner {
    require(!slaveWalletInitialized);
    slaveWallet = newSlaveWallet;
    slaveWalletInitialized = true;
  }
  
  function setToken(address newToken) public onlyOwner {
    token = VestarinToken(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));
  }

}

contract Presale is CommonSale {

  Mainsale public mainsale;

  function setMainsale(address newMainsale) public onlyOwner {
    mainsale = Mainsale(newMainsale);
  }

  function finishMinting() public whenNotPaused onlyOwner {
    token.setSaleAgent(mainsale);
  }

  function() external payable {
    createTokens();
  }

}


contract Mainsale is CommonSale {

  address public foundersTokensWallet;
  
  address public bountyTokensWallet;
  
  uint public foundersTokensPercent;
  
  uint public bountyTokensPercent;
  
  uint public lockPeriod;

  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 setFoundersTokensWallet(address newFoundersTokensWallet) public onlyOwner {
    foundersTokensWallet = newFoundersTokensWallet;
  }

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

  function finishMinting() public whenNotPaused onlyOwner {
    uint summaryTokensPercent = bountyTokensPercent + 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);
    token.mint(this, foundersTokens);
    token.lock(foundersTokensWallet, lockPeriod * 1 days);
    token.transfer(foundersTokensWallet, foundersTokens);
    token.mint(this, bountyTokens);
    token.transfer(bountyTokensWallet, bountyTokens);
    totalTokensMinted = totalTokensMinted.add(foundersTokens).add(bountyTokens);
    token.finishMinting();
  }

}

contract Configurator is Ownable {

  VestarinToken public token; 

  Presale public presale;

  Mainsale public mainsale;

  function deploy() public onlyOwner {
    //owner = 0x95EA6A4ec9F80436854702e5F05d238f27166A03;

    token = new VestarinToken();

    presale = new Presale();

    presale.setToken(token);
    presale.addStage(5000,3000);
    presale.setMasterWallet(0x95EA6A4ec9F80436854702e5F05d238f27166A03);
    presale.setSlaveWallet(0x070EcC35a3212D76ad443d529216a452eAA35E3D);
    presale.setSlaveWalletPercent(50);
    presale.setStart(1517317200);
    presale.setPeriod(30);
    presale.setMinPrice(100000000000000000);
    token.setSaleAgent(presale);	

    mainsale = new Mainsale();

    mainsale.setToken(token);
    mainsale.addStage(5000,2000);
    mainsale.addStage(5000,1800);
    mainsale.addStage(10000,1700);
    mainsale.addStage(20000,1600);
    mainsale.addStage(20000,1500);
    mainsale.addStage(40000,1300);
    mainsale.setMasterWallet(0x95EA6A4ec9F80436854702e5F05d238f27166A03);
    mainsale.setSlaveWallet(0x070EcC35a3212D76ad443d529216a452eAA35E3D);
    mainsale.setSlaveWalletPercent(50);
    mainsale.setFoundersTokensWallet(0x95EA6A4ec9F80436854702e5F05d238f27166A03);
    mainsale.setBountyTokensWallet(0x95EA6A4ec9F80436854702e5F05d238f27166A03);
    mainsale.setStart(1525352400);
    mainsale.setPeriod(30);
    mainsale.setLockPeriod(90);
    mainsale.setMinPrice(100000000000000000);
    mainsale.setFoundersTokensPercent(13);
    mainsale.setBountyTokensPercent(5);

    presale.setMainsale(mainsale);

    token.transferOwnership(owner);
    presale.transferOwnership(owner);
    mainsale.transferOwnership(owner);
  }

}

Contract Security Audit

Contract ABI

[{"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":"slaveWalletPercentInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","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":"newFoundersTokensWallet","type":"address"}],"name":"setFoundersTokensWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"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":"foundersTokensWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalInvested","outputs":[{"name":"","type":"uint256"}],"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":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":"slaveWalletInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newSlaveWallet","type":"address"}],"name":"setSlaveWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newSlaveWalletPercent","type":"uint256"}],"name":"setSlaveWalletPercent","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"},{"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"}]

606060405260008054601e6009556064600a55600160a060020a033316600160a860020a0319909116179055611b2c8061003a6000396000f3006060604052600436106102425763ffffffff60e060020a6000350416630f3a9f65811461024c578063144fa6d7146102625780631f2e97c814610281578063258108da146102a857806329dd0b86146102cd5780632f48c4aa146102e05780632f8bd891146102ff5780633806422a146103215780633f4ba83a146103345780633fd8b02f146103475780634a23418a1461035a5780635216aeec1461038957806359169d061461039c5780635bf5d54c146103b25780635c975abb146103c55780635ea8cd12146103d85780636341ca0b146103ee5780636abc3fe4146104135780636ed0b9d714610426578063769ffb7d14610445578063779972da14610464578063798c6e0f1461047a5780637d549e991461048d5780637d64bcb4146104a05780638090114f146104b35780638456cb59146104c6578063845ddcb2146104d957806386d0b46d1461051a5780638da5cb5b1461052d57806399cd211d146105405780639a3fdfd0146105535780639f49cefb14610566578063a6c7bf8a1461057f578063ada199dd1461059e578063b27b7dd1146105b4578063b442726314610242578063b557c9a4146105cd578063be9a6555146105e0578063c7775011146105f3578063e0a0f50d14610612578063e45be8eb14610628578063eb8ba66c1461063b578063ef78d4fd1461065a578063f2fde38b1461066d578063f6a03ebf1461068c578063f6a3b1dd146106a2578063fa8b72ff146106b5578063fc0c546a146106d4578063fc0d0117146106e7578063feda1045146106fa575b61024a61070d565b005b341561025757600080fd5b61024a6004356107f8565b341561026d57600080fd5b61024a600160a060020a0360043516610818565b341561028c57600080fd5b61029461086a565b604051901515815260200160405180910390f35b34156102b357600080fd5b6102bb610878565b60405190815260200160405180910390f35b34156102d857600080fd5b6102bb61087e565b34156102eb57600080fd5b61024a600160a060020a0360043516610890565b341561030a57600080fd5b61024a600160a060020a03600435166024356108cd565b341561032c57600080fd5b6102bb61093f565b341561033f57600080fd5b61024a610945565b341561035257600080fd5b6102bb6109c4565b341561036557600080fd5b61036d6109ca565b604051600160a060020a03909116815260200160405180910390f35b341561039457600080fd5b6102bb6109d9565b34156103a757600080fd5b61024a6004356109df565b34156103bd57600080fd5b6102bb6109ff565b34156103d057600080fd5b610294610a96565b34156103e357600080fd5b61024a600435610aa6565b34156103f957600080fd5b61024a600160a060020a0360043581169060243516610ac6565b341561041e57600080fd5b61036d610bc9565b341561043157600080fd5b61024a60ff60043516602435604435610bd8565b341561045057600080fd5b61024a600160a060020a0360043516610c91565b341561046f57600080fd5b61024a600435610cce565b341561048557600080fd5b61024a610cee565b341561049857600080fd5b6102bb610d6c565b34156104ab57600080fd5b61024a610d72565b34156104be57600080fd5b6102bb6111af565b34156104d157600080fd5b61024a6111b5565b34156104e457600080fd5b6104ef600435611239565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b341561052557600080fd5b6102bb611271565b341561053857600080fd5b61036d611277565b341561054b57600080fd5b61036d611286565b341561055e57600080fd5b6102bb611295565b341561057157600080fd5b61024a60043560243561129b565b341561058a57600080fd5b61024a600160a060020a036004351661137c565b34156105a957600080fd5b61024a6004356113b9565b34156105bf57600080fd5b61024a60ff600435166113d9565b34156105d857600080fd5b610294611524565b34156105eb57600080fd5b6102bb61152d565b34156105fe57600080fd5b61024a600160a060020a0360043516611533565b341561061d57600080fd5b61024a60043561158d565b341561063357600080fd5b6102bb6115d1565b341561064657600080fd5b61024a60ff600435166024356044356115d7565b341561066557600080fd5b6102bb611745565b341561067857600080fd5b61024a600160a060020a036004351661174b565b341561069757600080fd5b61024a6004356117d9565b34156106ad57600080fd5b6102bb6117f9565b34156106c057600080fd5b61024a600160a060020a03600435166117ff565b34156106df57600080fd5b61036d61183c565b34156106f257600080fd5b61036d611851565b341561070557600080fd5b61036d611860565b60008054819060a060020a900460ff161561072757600080fd5b600b5434101561073657600080fd5b61076f600a54610763610756600954600a5461186f90919063ffffffff16565b349063ffffffff61188116565b9063ffffffff6118ac16565b9150610781348363ffffffff61186f16565b600654909150600160a060020a031682156108fc0283604051600060405180830381858888f1935050505015156107b757600080fd5b600754600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156107ea57600080fd5b6107f433346118c3565b5050565b60005433600160a060020a0390811691161461081357600080fd5b600255565b60005433600160a060020a0390811691161461083357600080fd5b600d8054600160a060020a03909216620100000275ffffffffffffffffffffffffffffffffffffffff000019909216919091179055565b600d54610100900460ff1681565b60095481565b60025460015462015180909102015b90565b60005433600160a060020a039081169116146108ab57600080fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b60085433600160a060020a03908116911614806108f8575060005433600160a060020a039081169116145b151561090357600080fd5b60055460009011801561091857506001544210155b801561092a575061092761087e565b42105b151561093557600080fd5b6107f482826118c3565b60055490565b60005433600160a060020a0390811691161461096057600080fd5b60005460a060020a900460ff16151561097857600080fd5b6000805474ff0000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60125481565b600e54600160a060020a031681565b60045481565b60005433600160a060020a039081169116146109fa57600080fd5b601155565b6000806000600580549050118015610a1957506001544210155b8015610a2b5750610a2861087e565b42105b1515610a3657600080fd5b6003546004541115610a4757600080fd5b5060005b600554811015610a8d576005805482908110610a6357fe5b90600052602060002090600402016003015460001415610a8557809150610a92565b600101610a4b565b600080fd5b5090565b60005460a060020a900460ff1681565b60005433600160a060020a03908116911614610ac157600080fd5b600b55565b6000805433600160a060020a03908116911614610ae257600080fd5b5081600160a060020a03811663a9059cbb83826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610b4257600080fd5b6102c65a03f11515610b5357600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610ba957600080fd5b6102c65a03f11515610bba57600080fd5b50505060405180515050505050565b600854600160a060020a031681565b6000805433600160a060020a03908116911614610bf457600080fd5b60008460ff1610158015610c0c575060055460ff8516105b1515610c1757600080fd5b6005805460ff8616908110610c2857fe5b90600052602060002090600402019050610c51816000015460035461186f90919063ffffffff16565b600355610c6c83670de0b6b3a764000063ffffffff61188116565b80825560018201839055600354610c889163ffffffff611a6916565b60035550505050565b60005433600160a060020a03908116911614610cac57600080fd5b60088054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610ce957600080fd5b601255565b6000805433600160a060020a03908116911614610d0a57600080fd5b5060005b600554811015610d56576005805482908110610d2657fe5b60009182526020822060049091020181815560018082018390556002820183905560039091019190915501610d0e565b6000610d63600582611a78565b50506000600355565b600c5481565b60008054819081908190819060a060020a900460ff1615610d9257600080fd5b60005433600160a060020a03908116911614610dad57600080fd5b601054601154600d5491019550620100009004600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610e0557600080fd5b6102c65a03f11515610e1657600080fd5b5050506040518051600a54909550610e4d9150610e39908763ffffffff61186f16565b600a5461076390879063ffffffff61188116565b9250610e6a600a546107636010548661188190919063ffffffff16565b9150610e87600a546107636011548661188190919063ffffffff16565b600d54909150620100009004600160a060020a03166340c10f19308460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610eef57600080fd5b6102c65a03f11515610f0057600080fd5b50505060405180515050600d54600e54601254600160a060020a036201000090930483169263282d3fdf921690620151800260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610f7557600080fd5b6102c65a03f11515610f8657600080fd5b5050600d54600e54600160a060020a03620100009092048216925063a9059cbb91168460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610ff557600080fd5b6102c65a03f1151561100657600080fd5b50505060405180515050600d54620100009004600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561107557600080fd5b6102c65a03f1151561108657600080fd5b50505060405180515050600d54600f54600160a060020a036201000090920482169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156110fc57600080fd5b6102c65a03f1151561110d57600080fd5b50505060405180515050600c5461113c908290611130908563ffffffff611a6916565b9063ffffffff611a6916565b600c55600d54620100009004600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561118d57600080fd5b6102c65a03f1151561119e57600080fd5b505050604051805150505050505050565b600a5481565b60005433600160a060020a039081169116146111d057600080fd5b60005460a060020a900460ff16156111e757600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600580548290811061124757fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b60105481565b600054600160a060020a031681565b600f54600160a060020a031681565b60115481565b6112a3611aa9565b60005433600160a060020a039081169116146112be57600080fd5b6000831180156112ce5750600082115b15156112d957600080fd5b6080604051908101604052806112fd85670de0b6b3a764000063ffffffff61188116565b815260200183815260200160008152602001600081525090506005805480600101828161132a9190611a78565b60009283526020909220839160040201815181556020820151816001015560408201518160020155606082015160039091015550611374905081516003549063ffffffff611a6916565b600355505050565b60005433600160a060020a0390811691161461139757600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146113d457600080fd5b601055565b60008054819033600160a060020a039081169116146113f757600080fd5b60008360ff161015801561140f575060055460ff8416105b151561141a57600080fd5b6005805460ff851690811061142b57fe5b90600052602060002090600402019150611454826000015460035461186f90919063ffffffff16565b6003556005805460ff851690811061146857fe5b6000918252602082206004909102018181556001810182905560028101829055600301555060ff82165b6005546000190181101561150b5760058054600183019081106114b157fe5b90600052602060002090600402016005828154811015156114ce57fe5b6000918252602090912082546004909202019081556001808301548183015560028084015490830155600392830154929091019190915501611492565b600580549061151e906000198301611a78565b50505050565b600d5460ff1681565b60015481565b60005433600160a060020a0390811691161461154e57600080fd5b600d5460ff161561155e57600080fd5b60078054600160a060020a031916600160a060020a0392909216919091179055600d805460ff19166001179055565b60005433600160a060020a039081169116146115a857600080fd5b600d54610100900460ff16156115bd57600080fd5b600955600d805461ff001916610100179055565b600b5481565b6115df611aa9565b6000805433600160a060020a039081169116146115fb57600080fd5b60055460ff86161061160c57600080fd5b60806040519081016040528061163086670de0b6b3a764000063ffffffff61188116565b8152602001848152602001600081526020016000815250915061166082600001516003549063ffffffff611a6916565b60035560058054906116759060018301611a78565b5050600554600119015b8460ff168111156116f357600580548290811061169857fe5b90600052602060002090600402016005826001018154811015156116b857fe5b60009182526020909120825460049092020190815560018083015490820155600280830154908201556003918201549101556000190161167f565b8160058660010160ff1681548110151561170957fe5b90600052602060002090600402016000820151815560208201518160010155604082015181600201556060820151600390910155505050505050565b60025481565b60005433600160a060020a0390811691161461176657600080fd5b600160a060020a038116151561177b57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146117f457600080fd5b600155565b60035481565b60005433600160a060020a0390811691161461181a57600080fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b600d54620100009004600160a060020a031681565b600654600160a060020a031681565b600754600160a060020a031681565b60008282111561187b57fe5b50900390565b600082820283158061189d575082848281151561189a57fe5b04145b15156118a557fe5b9392505050565b60008082848115156118ba57fe5b04949350505050565b60008060006118d06109ff565b92506005838154811015156118e157fe5b9060005260206000209060040201915061190882600101548561188190919063ffffffff16565b600d54909150620100009004600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561197057600080fd5b6102c65a03f1151561198157600080fd5b50505060405180515050600d54620100009004600160a060020a031663a9059cbb868360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156119f057600080fd5b6102c65a03f11515611a0157600080fd5b50505060405180515050600c54611a1e908263ffffffff611a6916565b600c55600454611a34908563ffffffff611a6916565b6004556002820154611a4c908563ffffffff611a6916565b6002830181905582549010611a62574260038301555b5050505050565b6000828201838110156118a557fe5b815481835581811511611aa457600402816004028360005260206000209182019101611aa49190611ad2565b505050565b608060405190810160405280600081526020016000815260200160008152602001600081525090565b61088d91905b80821115610a9257600080825560018201819055600282018190556003820155600401611ad85600a165627a7a72305820d907f1e62704d28f4bbe3531612461b0330098de6a8638d3bdf05ff880812dbf0029

Deployed Bytecode

0x6060604052600436106102425763ffffffff60e060020a6000350416630f3a9f65811461024c578063144fa6d7146102625780631f2e97c814610281578063258108da146102a857806329dd0b86146102cd5780632f48c4aa146102e05780632f8bd891146102ff5780633806422a146103215780633f4ba83a146103345780633fd8b02f146103475780634a23418a1461035a5780635216aeec1461038957806359169d061461039c5780635bf5d54c146103b25780635c975abb146103c55780635ea8cd12146103d85780636341ca0b146103ee5780636abc3fe4146104135780636ed0b9d714610426578063769ffb7d14610445578063779972da14610464578063798c6e0f1461047a5780637d549e991461048d5780637d64bcb4146104a05780638090114f146104b35780638456cb59146104c6578063845ddcb2146104d957806386d0b46d1461051a5780638da5cb5b1461052d57806399cd211d146105405780639a3fdfd0146105535780639f49cefb14610566578063a6c7bf8a1461057f578063ada199dd1461059e578063b27b7dd1146105b4578063b442726314610242578063b557c9a4146105cd578063be9a6555146105e0578063c7775011146105f3578063e0a0f50d14610612578063e45be8eb14610628578063eb8ba66c1461063b578063ef78d4fd1461065a578063f2fde38b1461066d578063f6a03ebf1461068c578063f6a3b1dd146106a2578063fa8b72ff146106b5578063fc0c546a146106d4578063fc0d0117146106e7578063feda1045146106fa575b61024a61070d565b005b341561025757600080fd5b61024a6004356107f8565b341561026d57600080fd5b61024a600160a060020a0360043516610818565b341561028c57600080fd5b61029461086a565b604051901515815260200160405180910390f35b34156102b357600080fd5b6102bb610878565b60405190815260200160405180910390f35b34156102d857600080fd5b6102bb61087e565b34156102eb57600080fd5b61024a600160a060020a0360043516610890565b341561030a57600080fd5b61024a600160a060020a03600435166024356108cd565b341561032c57600080fd5b6102bb61093f565b341561033f57600080fd5b61024a610945565b341561035257600080fd5b6102bb6109c4565b341561036557600080fd5b61036d6109ca565b604051600160a060020a03909116815260200160405180910390f35b341561039457600080fd5b6102bb6109d9565b34156103a757600080fd5b61024a6004356109df565b34156103bd57600080fd5b6102bb6109ff565b34156103d057600080fd5b610294610a96565b34156103e357600080fd5b61024a600435610aa6565b34156103f957600080fd5b61024a600160a060020a0360043581169060243516610ac6565b341561041e57600080fd5b61036d610bc9565b341561043157600080fd5b61024a60ff60043516602435604435610bd8565b341561045057600080fd5b61024a600160a060020a0360043516610c91565b341561046f57600080fd5b61024a600435610cce565b341561048557600080fd5b61024a610cee565b341561049857600080fd5b6102bb610d6c565b34156104ab57600080fd5b61024a610d72565b34156104be57600080fd5b6102bb6111af565b34156104d157600080fd5b61024a6111b5565b34156104e457600080fd5b6104ef600435611239565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b341561052557600080fd5b6102bb611271565b341561053857600080fd5b61036d611277565b341561054b57600080fd5b61036d611286565b341561055e57600080fd5b6102bb611295565b341561057157600080fd5b61024a60043560243561129b565b341561058a57600080fd5b61024a600160a060020a036004351661137c565b34156105a957600080fd5b61024a6004356113b9565b34156105bf57600080fd5b61024a60ff600435166113d9565b34156105d857600080fd5b610294611524565b34156105eb57600080fd5b6102bb61152d565b34156105fe57600080fd5b61024a600160a060020a0360043516611533565b341561061d57600080fd5b61024a60043561158d565b341561063357600080fd5b6102bb6115d1565b341561064657600080fd5b61024a60ff600435166024356044356115d7565b341561066557600080fd5b6102bb611745565b341561067857600080fd5b61024a600160a060020a036004351661174b565b341561069757600080fd5b61024a6004356117d9565b34156106ad57600080fd5b6102bb6117f9565b34156106c057600080fd5b61024a600160a060020a03600435166117ff565b34156106df57600080fd5b61036d61183c565b34156106f257600080fd5b61036d611851565b341561070557600080fd5b61036d611860565b60008054819060a060020a900460ff161561072757600080fd5b600b5434101561073657600080fd5b61076f600a54610763610756600954600a5461186f90919063ffffffff16565b349063ffffffff61188116565b9063ffffffff6118ac16565b9150610781348363ffffffff61186f16565b600654909150600160a060020a031682156108fc0283604051600060405180830381858888f1935050505015156107b757600080fd5b600754600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156107ea57600080fd5b6107f433346118c3565b5050565b60005433600160a060020a0390811691161461081357600080fd5b600255565b60005433600160a060020a0390811691161461083357600080fd5b600d8054600160a060020a03909216620100000275ffffffffffffffffffffffffffffffffffffffff000019909216919091179055565b600d54610100900460ff1681565b60095481565b60025460015462015180909102015b90565b60005433600160a060020a039081169116146108ab57600080fd5b600e8054600160a060020a031916600160a060020a0392909216919091179055565b60085433600160a060020a03908116911614806108f8575060005433600160a060020a039081169116145b151561090357600080fd5b60055460009011801561091857506001544210155b801561092a575061092761087e565b42105b151561093557600080fd5b6107f482826118c3565b60055490565b60005433600160a060020a0390811691161461096057600080fd5b60005460a060020a900460ff16151561097857600080fd5b6000805474ff0000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60125481565b600e54600160a060020a031681565b60045481565b60005433600160a060020a039081169116146109fa57600080fd5b601155565b6000806000600580549050118015610a1957506001544210155b8015610a2b5750610a2861087e565b42105b1515610a3657600080fd5b6003546004541115610a4757600080fd5b5060005b600554811015610a8d576005805482908110610a6357fe5b90600052602060002090600402016003015460001415610a8557809150610a92565b600101610a4b565b600080fd5b5090565b60005460a060020a900460ff1681565b60005433600160a060020a03908116911614610ac157600080fd5b600b55565b6000805433600160a060020a03908116911614610ae257600080fd5b5081600160a060020a03811663a9059cbb83826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610b4257600080fd5b6102c65a03f11515610b5357600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610ba957600080fd5b6102c65a03f11515610bba57600080fd5b50505060405180515050505050565b600854600160a060020a031681565b6000805433600160a060020a03908116911614610bf457600080fd5b60008460ff1610158015610c0c575060055460ff8516105b1515610c1757600080fd5b6005805460ff8616908110610c2857fe5b90600052602060002090600402019050610c51816000015460035461186f90919063ffffffff16565b600355610c6c83670de0b6b3a764000063ffffffff61188116565b80825560018201839055600354610c889163ffffffff611a6916565b60035550505050565b60005433600160a060020a03908116911614610cac57600080fd5b60088054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610ce957600080fd5b601255565b6000805433600160a060020a03908116911614610d0a57600080fd5b5060005b600554811015610d56576005805482908110610d2657fe5b60009182526020822060049091020181815560018082018390556002820183905560039091019190915501610d0e565b6000610d63600582611a78565b50506000600355565b600c5481565b60008054819081908190819060a060020a900460ff1615610d9257600080fd5b60005433600160a060020a03908116911614610dad57600080fd5b601054601154600d5491019550620100009004600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610e0557600080fd5b6102c65a03f11515610e1657600080fd5b5050506040518051600a54909550610e4d9150610e39908763ffffffff61186f16565b600a5461076390879063ffffffff61188116565b9250610e6a600a546107636010548661188190919063ffffffff16565b9150610e87600a546107636011548661188190919063ffffffff16565b600d54909150620100009004600160a060020a03166340c10f19308460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610eef57600080fd5b6102c65a03f11515610f0057600080fd5b50505060405180515050600d54600e54601254600160a060020a036201000090930483169263282d3fdf921690620151800260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610f7557600080fd5b6102c65a03f11515610f8657600080fd5b5050600d54600e54600160a060020a03620100009092048216925063a9059cbb91168460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610ff557600080fd5b6102c65a03f1151561100657600080fd5b50505060405180515050600d54620100009004600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561107557600080fd5b6102c65a03f1151561108657600080fd5b50505060405180515050600d54600f54600160a060020a036201000090920482169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156110fc57600080fd5b6102c65a03f1151561110d57600080fd5b50505060405180515050600c5461113c908290611130908563ffffffff611a6916565b9063ffffffff611a6916565b600c55600d54620100009004600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561118d57600080fd5b6102c65a03f1151561119e57600080fd5b505050604051805150505050505050565b600a5481565b60005433600160a060020a039081169116146111d057600080fd5b60005460a060020a900460ff16156111e757600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600580548290811061124757fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b60105481565b600054600160a060020a031681565b600f54600160a060020a031681565b60115481565b6112a3611aa9565b60005433600160a060020a039081169116146112be57600080fd5b6000831180156112ce5750600082115b15156112d957600080fd5b6080604051908101604052806112fd85670de0b6b3a764000063ffffffff61188116565b815260200183815260200160008152602001600081525090506005805480600101828161132a9190611a78565b60009283526020909220839160040201815181556020820151816001015560408201518160020155606082015160039091015550611374905081516003549063ffffffff611a6916565b600355505050565b60005433600160a060020a0390811691161461139757600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146113d457600080fd5b601055565b60008054819033600160a060020a039081169116146113f757600080fd5b60008360ff161015801561140f575060055460ff8416105b151561141a57600080fd5b6005805460ff851690811061142b57fe5b90600052602060002090600402019150611454826000015460035461186f90919063ffffffff16565b6003556005805460ff851690811061146857fe5b6000918252602082206004909102018181556001810182905560028101829055600301555060ff82165b6005546000190181101561150b5760058054600183019081106114b157fe5b90600052602060002090600402016005828154811015156114ce57fe5b6000918252602090912082546004909202019081556001808301548183015560028084015490830155600392830154929091019190915501611492565b600580549061151e906000198301611a78565b50505050565b600d5460ff1681565b60015481565b60005433600160a060020a0390811691161461154e57600080fd5b600d5460ff161561155e57600080fd5b60078054600160a060020a031916600160a060020a0392909216919091179055600d805460ff19166001179055565b60005433600160a060020a039081169116146115a857600080fd5b600d54610100900460ff16156115bd57600080fd5b600955600d805461ff001916610100179055565b600b5481565b6115df611aa9565b6000805433600160a060020a039081169116146115fb57600080fd5b60055460ff86161061160c57600080fd5b60806040519081016040528061163086670de0b6b3a764000063ffffffff61188116565b8152602001848152602001600081526020016000815250915061166082600001516003549063ffffffff611a6916565b60035560058054906116759060018301611a78565b5050600554600119015b8460ff168111156116f357600580548290811061169857fe5b90600052602060002090600402016005826001018154811015156116b857fe5b60009182526020909120825460049092020190815560018083015490820155600280830154908201556003918201549101556000190161167f565b8160058660010160ff1681548110151561170957fe5b90600052602060002090600402016000820151815560208201518160010155604082015181600201556060820151600390910155505050505050565b60025481565b60005433600160a060020a0390811691161461176657600080fd5b600160a060020a038116151561177b57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146117f457600080fd5b600155565b60035481565b60005433600160a060020a0390811691161461181a57600080fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b600d54620100009004600160a060020a031681565b600654600160a060020a031681565b600754600160a060020a031681565b60008282111561187b57fe5b50900390565b600082820283158061189d575082848281151561189a57fe5b04145b15156118a557fe5b9392505050565b60008082848115156118ba57fe5b04949350505050565b60008060006118d06109ff565b92506005838154811015156118e157fe5b9060005260206000209060040201915061190882600101548561188190919063ffffffff16565b600d54909150620100009004600160a060020a03166340c10f19308360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561197057600080fd5b6102c65a03f1151561198157600080fd5b50505060405180515050600d54620100009004600160a060020a031663a9059cbb868360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156119f057600080fd5b6102c65a03f11515611a0157600080fd5b50505060405180515050600c54611a1e908263ffffffff611a6916565b600c55600454611a34908563ffffffff611a6916565b6004556002820154611a4c908563ffffffff611a6916565b6002830181905582549010611a62574260038301555b5050505050565b6000828201838110156118a557fe5b815481835581811511611aa457600402816004028360005260206000209182019101611aa49190611ad2565b505050565b608060405190810160405280600081526020016000815260200160008152602001600081525090565b61088d91905b80821115610a9257600080825560018201819055600282018190556003820155600401611ad85600a165627a7a72305820d907f1e62704d28f4bbe3531612461b0330098de6a8638d3bdf05ff880812dbf0029

Swarm Source

bzzr://d907f1e62704d28f4bbe3531612461b0330098de6a8638d3bdf05ff880812dbf

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.