ETH Price: $3,067.75 (+1.00%)
Gas: 3 Gwei

Contract

0x9df3A24d738ae98dEa766cD89C3AEf16583a4daF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Transfer118835512021-02-18 22:37:451236 days ago1613687865IN
Lif: Token Sale
0.00072735 ETH0.002625125
Transfer99530162020-04-27 6:48:401534 days ago1587970120IN
Lif: Token Sale
0 ETH0.000353.5
Transfer52977062018-03-21 22:46:562301 days ago1521672416IN
Lif: Token Sale
0.03632089 ETH00
Transfer52781262018-03-18 15:53:252304 days ago1521388405IN
Lif: Token Sale
0 ETH0.0001899
Transfer51656682018-02-27 13:43:082323 days ago1519738988IN
Lif: Token Sale
1 ETH0.0049049721
Transfer51360942018-02-22 12:28:452329 days ago1519302525IN
Lif: Token Sale
0.29 ETH0.00315
Transfer51296622018-02-21 10:22:542330 days ago1519208574IN
Lif: Token Sale
0.12267533 ETH0.0001055
Transfer50931762018-02-15 6:28:392336 days ago1518676119IN
Lif: Token Sale
0.00085 ETH0.000008850.1
Transfer50927772018-02-15 5:01:312336 days ago1518670891IN
Lif: Token Sale
0.86303798 ETH0.0000211
Transfer50918902018-02-15 1:29:112336 days ago1518658151IN
Lif: Token Sale
1 ETH0.0004220
Transfer50917132018-02-15 0:44:152336 days ago1518655455IN
Lif: Token Sale
0.52 ETH0.041583
Transfer50916982018-02-15 0:41:032336 days ago1518655263IN
Lif: Token Sale
0.2 ETH0.0000422
Transfer50916492018-02-15 0:26:252336 days ago1518654385IN
Lif: Token Sale
0.52 ETH0.00660
Transfer50916322018-02-15 0:21:292336 days ago1518654089IN
Lif: Token Sale
0.2 ETH0.0000211
Transfer50915942018-02-15 0:11:372336 days ago1518653497IN
Lif: Token Sale
0.09 ETH0.0000211
Transfer50915772018-02-15 0:07:072336 days ago1518653227IN
Lif: Token Sale
0.1 ETH0.0000211
Transfer50915742018-02-15 0:06:132336 days ago1518653173IN
Lif: Token Sale
0.1 ETH0.0000211
Transfer50915632018-02-15 0:03:362336 days ago1518653016IN
Lif: Token Sale
0.86 ETH0.0000211
Transfer50915562018-02-15 0:02:172336 days ago1518652937IN
Lif: Token Sale
1 ETH0.0070347179
Transfer50915512018-02-15 0:01:142336 days ago1518652874IN
Lif: Token Sale
0.52 ETH0.0012660
Transfer50915472018-02-15 0:00:052336 days ago1518652805IN
Lif: Token Sale
1.25 ETH0.0019291216
Transfer50915472018-02-15 0:00:052336 days ago1518652805IN
Lif: Token Sale
2 ETH0.00086141
Transfer50915462018-02-14 23:59:462336 days ago1518652786IN
Lif: Token Sale
0.49937667 ETH0.000623327
Transfer50915442018-02-14 23:59:232336 days ago1518652763IN
Lif: Token Sale
0.95 ETH0.002849532
Transfer50915432018-02-14 23:59:092336 days ago1518652749IN
Lif: Token Sale
0.11 ETH0.0000211
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
51451452018-02-24 1:20:172327 days ago1519435217
Lif: Token Sale
5,164.73805453 ETH
51451452018-02-24 1:20:172327 days ago1519435217
Lif: Token Sale
 Contract Creation0 ETH
51451452018-02-24 1:20:172327 days ago1519435217
Lif: Token Sale
 Contract Creation0 ETH
51451452018-02-24 1:20:172327 days ago1519435217
Lif: Token Sale
 Contract Creation0 ETH
51451452018-02-24 1:20:172327 days ago1519435217
Lif: Token Sale
8,695.65217391 ETH
51450392018-02-24 0:51:022327 days ago1519433462
Lif: Token Sale
 Contract Creation0 ETH
51450392018-02-24 0:51:022327 days ago1519433462
Lif: Token Sale
8,695.65217391 ETH
51447002018-02-23 23:23:192327 days ago1519428199
Lif: Token Sale
0.51 ETH
51446942018-02-23 23:21:392327 days ago1519428099
Lif: Token Sale
0.48958 ETH
51446842018-02-23 23:20:162327 days ago1519428016
Lif: Token Sale
0.488334 ETH
51446722018-02-23 23:17:282327 days ago1519427848
Lif: Token Sale
15.04 ETH
51446552018-02-23 23:13:182327 days ago1519427598
Lif: Token Sale
9.93524479 ETH
51446282018-02-23 23:07:512327 days ago1519427271
Lif: Token Sale
6.998 ETH
51446192018-02-23 23:06:282327 days ago1519427188
Lif: Token Sale
4.19074117 ETH
51446062018-02-23 23:03:002327 days ago1519426980
Lif: Token Sale
4.1259809 ETH
51446012018-02-23 23:01:122327 days ago1519426872
Lif: Token Sale
3.10432673 ETH
51445952018-02-23 23:00:002327 days ago1519426800
Lif: Token Sale
3 ETH
51445872018-02-23 22:58:402327 days ago1519426720
Lif: Token Sale
3 ETH
51445752018-02-23 22:56:422327 days ago1519426602
Lif: Token Sale
2 ETH
51445712018-02-23 22:55:282327 days ago1519426528
Lif: Token Sale
1.390359 ETH
51445652018-02-23 22:54:022327 days ago1519426442
Lif: Token Sale
0.45661 ETH
51445642018-02-23 22:52:362327 days ago1519426356
Lif: Token Sale
1.03153551 ETH
51445632018-02-23 22:52:032327 days ago1519426323
Lif: Token Sale
0.4 ETH
51445562018-02-23 22:50:322327 days ago1519426232
Lif: Token Sale
0.39813467 ETH
51445542018-02-23 22:50:082327 days ago1519426208
Lif: Token Sale
1 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LifCrowdsale

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-30
*/

pragma solidity ^0.4.18;

// File: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/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: zeppelin-solidity/contracts/token/ERC20/PausableToken.sol

/**
 * @title Pausable token
 * @dev StandardToken modified with pausable transfers.
 **/
contract PausableToken is StandardToken, Pausable {

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

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

  function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) {
    return super.approve(_spender, _value);
  }

  function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) {
    return super.increaseApproval(_spender, _addedValue);
  }

  function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) {
    return super.decreaseApproval(_spender, _subtractedValue);
  }
}

// File: contracts/LifToken.sol

/**
   @title Líf, the Winding Tree token

   Implementation of Líf, the ERC827 token for Winding Tree, an extension of the
   ERC20 token with extra methods to transfer value and data to execute a call
   on transfer.
   Uses OpenZeppelin StandardToken, ERC827Token, MintableToken and PausableToken.
 */
contract LifToken is StandardToken, MintableToken, PausableToken {
  // Token Name
  string public constant NAME = "Líf";

  // Token Symbol
  string public constant SYMBOL = "LIF";

  // Token decimals
  uint public constant DECIMALS = 18;

  /**
   * @dev Burns a specific amount of tokens.
   *
   * @param _value The amount of tokens to be burned.
   */
  function burn(uint256 _value) public whenNotPaused {

    require(_value <= balances[msg.sender]);

    balances[msg.sender] = balances[msg.sender].sub(_value);
    totalSupply_ = totalSupply_.sub(_value);

    // a Transfer event to 0x0 can be useful for observers to keep track of
    // all the Lif by just looking at those events
    Transfer(msg.sender, address(0), _value);
  }

  /**
   * @dev Burns a specific amount of tokens of an address
   * This function can be called only by the owner in the minting process
   *
   * @param _value The amount of tokens to be burned.
   */
  function burn(address burner, uint256 _value) public onlyOwner {

    require(!mintingFinished);

    require(_value <= balances[burner]);

    balances[burner] = balances[burner].sub(_value);
    totalSupply_ = totalSupply_.sub(_value);

    // a Transfer event to 0x0 can be useful for observers to keep track of
    // all the Lif by just looking at those events
    Transfer(burner, address(0), _value);
  }
}

// File: contracts/LifMarketValidationMechanism.sol

/**
   @title Market Validation Mechanism (MVM)
 */
contract LifMarketValidationMechanism is Ownable {
  using SafeMath for uint256;

  // The Lif token contract
  LifToken public lifToken;

  // The address of the foundation wallet. It can claim part of the eth funds
  // following an exponential curve until the end of the MVM lifetime (24 or 48
  // months). After that it can claim 100% of the remaining eth in the MVM.
  address public foundationAddr;

  // The amount of wei that the MVM received initially
  uint256 public initialWei;

  // Start timestamp since which the MVM begins to accept tokens via sendTokens
  uint256 public startTimestamp;

  // Quantity of seconds in every period, usually equivalent to 30 days
  uint256 public secondsPerPeriod;

  // Number of periods. It should be 24 or 48 (each period is roughly a month)
  uint8 public totalPeriods;

  // The total amount of wei that was claimed by the foundation so far
  uint256 public totalWeiClaimed = 0;

  // The price at which the MVM buys tokens at the beginning of its lifetime
  uint256 public initialBuyPrice = 0;

  // Amount of tokens that were burned by the MVM
  uint256 public totalBurnedTokens = 0;

  // Amount of wei that was reimbursed via sendTokens calls
  uint256 public totalReimbursedWei = 0;

  // Total supply of tokens when the MVM was created
  uint256 public originalTotalSupply;

  uint256 constant PRICE_FACTOR = 100000;

  // Has the MVM been funded by calling `fund`? It can be funded only once
  bool public funded = false;

  // true when the market MVM is paused
  bool public paused = false;

  // total amount of seconds that the MVM was paused
  uint256 public totalPausedSeconds = 0;

  // the timestamp where the MVM was paused
  uint256 public pausedTimestamp;

  uint256[] public periods;

  // Events
  event Pause();
  event Unpause(uint256 pausedSeconds);

  event ClaimedWei(uint256 claimedWei);
  event SentTokens(address indexed sender, uint256 price, uint256 tokens, uint256 returnedWei);

  modifier whenNotPaused(){
    assert(!paused);
    _;
  }

  modifier whenPaused(){
    assert(paused);
    _;
  }

  /**
     @dev Constructor

     @param lifAddr the lif token address
     @param _startTimestamp see `startTimestamp`
     @param _secondsPerPeriod see `secondsPerPeriod`
     @param _totalPeriods see `totalPeriods`
     @param _foundationAddr see `foundationAddr`
    */
  function LifMarketValidationMechanism(
    address lifAddr, uint256 _startTimestamp, uint256 _secondsPerPeriod,
    uint8 _totalPeriods, address _foundationAddr
  ) {
    require(lifAddr != address(0));
    require(_startTimestamp > block.timestamp);
    require(_secondsPerPeriod > 0);
    require(_totalPeriods == 24 || _totalPeriods == 48);
    require(_foundationAddr != address(0));

    lifToken = LifToken(lifAddr);
    startTimestamp = _startTimestamp;
    secondsPerPeriod = _secondsPerPeriod;
    totalPeriods = _totalPeriods;
    foundationAddr = _foundationAddr;

  }

  /**
     @dev Receives the initial funding from the Crowdsale. Calculates the
     initial buy price as initialWei / totalSupply
    */
  function fund() public payable onlyOwner {
    assert(!funded);

    originalTotalSupply = lifToken.totalSupply();
    initialWei = msg.value;
    initialBuyPrice = initialWei.
      mul(PRICE_FACTOR).
      div(originalTotalSupply);

    funded = true;
  }

  /**
     @dev Change the LifToken address
    */
  function changeToken(address newToken) public onlyOwner {
    lifToken = LifToken(newToken);
  }

  /**
     @dev calculates the exponential distribution curve. It determines how much
     wei can be distributed back to the foundation every month. It starts with
     very low amounts ending with higher chunks at the end of the MVM lifetime
    */
  function calculateDistributionPeriods() public {
    assert(totalPeriods == 24 || totalPeriods == 48);
    assert(periods.length == 0);

    // Table with the max delta % that can be distributed back to the foundation on
    // each period. It follows an exponential curve (starts with lower % and ends
    // with higher %) to keep the funds in the MVM longer. deltas24
    // is used when MVM lifetime is 24 months, deltas48 when it's 48 months.
    // The sum is less than 100% because the last % is missing: after the last period
    // the 100% remaining can be claimed by the foundation. Values multipled by 10^5

    uint256[24] memory accumDistribution24 = [
      uint256(0), 18, 117, 351, 767, 1407,
      2309, 3511, 5047, 6952, 9257, 11995,
      15196, 18889, 23104, 27870, 33215, 39166,
      45749, 52992, 60921, 69561, 78938, 89076
    ];

    uint256[48] memory accumDistribution48 = [
      uint256(0), 3, 18, 54, 117, 214, 351, 534,
      767, 1056, 1406, 1822, 2308, 2869, 3510, 4234,
      5046, 5950, 6950, 8051, 9256, 10569, 11994, 13535,
      15195, 16978, 18888, 20929, 23104, 25416, 27870, 30468,
      33214, 36112, 39165, 42376, 45749, 49286, 52992, 56869,
      60921, 65150, 69560, 74155, 78937, 83909, 89075, 94438
    ];

    for (uint8 i = 0; i < totalPeriods; i++) {

      if (totalPeriods == 24) {
        periods.push(accumDistribution24[i]);
      } else {
        periods.push(accumDistribution48[i]);
      }

    }
  }

  /**
     @dev Returns the current period as a number from 0 to totalPeriods

     @return the current period as a number from 0 to totalPeriods
    */
  function getCurrentPeriodIndex() public view returns(uint256) {
    assert(block.timestamp >= startTimestamp);
    return block.timestamp.sub(startTimestamp).
      sub(totalPausedSeconds).
      div(secondsPerPeriod);
  }

  /**
     @dev calculates the accumulated distribution percentage as of now,
     following the exponential distribution curve

     @return the accumulated distribution percentage, used to calculate things
     like the maximum amount that can be claimed by the foundation
    */
  function getAccumulatedDistributionPercentage() public view returns(uint256 percentage) {
    uint256 period = getCurrentPeriodIndex();

    assert(period < totalPeriods);

    return periods[period];
  }

  /**
     @dev returns the current buy price at which the MVM offers to buy tokens to
     burn them

     @return the current buy price (in eth/lif, multiplied by PRICE_FACTOR)
    */
  function getBuyPrice() public view returns (uint256 price) {
    uint256 accumulatedDistributionPercentage = getAccumulatedDistributionPercentage();

    return initialBuyPrice.
      mul(PRICE_FACTOR.sub(accumulatedDistributionPercentage)).
      div(PRICE_FACTOR);
  }

  /**
     @dev Returns the maximum amount of wei that the foundation can claim. It's
     a portion of the ETH that was not claimed by token holders

     @return the maximum wei claimable by the foundation as of now
    */
  function getMaxClaimableWeiAmount() public view returns (uint256) {
    if (isFinished()) {
      return this.balance;
    } else {
      uint256 claimableFromReimbursed = initialBuyPrice.
        mul(totalBurnedTokens).div(PRICE_FACTOR).
        sub(totalReimbursedWei);
      uint256 currentCirculation = lifToken.totalSupply();
      uint256 accumulatedDistributionPercentage = getAccumulatedDistributionPercentage();
      uint256 maxClaimable = initialWei.
        mul(accumulatedDistributionPercentage).div(PRICE_FACTOR).
        mul(currentCirculation).div(originalTotalSupply).
        add(claimableFromReimbursed);

      if (maxClaimable > totalWeiClaimed) {
        return maxClaimable.sub(totalWeiClaimed);
      } else {
        return 0;
      }
    }
  }

  /**
     @dev allows to send tokens to the MVM in exchange of Eth at the price
     determined by getBuyPrice. The tokens are burned
    */
  function sendTokens(uint256 tokens) public whenNotPaused {
    require(tokens > 0);

    uint256 price = getBuyPrice();
    uint256 totalWei = tokens.mul(price).div(PRICE_FACTOR);

    lifToken.transferFrom(msg.sender, address(this), tokens);
    lifToken.burn(tokens);
    totalBurnedTokens = totalBurnedTokens.add(tokens);

    SentTokens(msg.sender, price, tokens, totalWei);

    totalReimbursedWei = totalReimbursedWei.add(totalWei);
    msg.sender.transfer(totalWei);
  }

  /**
     @dev Returns whether the MVM end-of-life has been reached. When that
     happens no more tokens can be sent to the MVM and the foundation can claim
     100% of the remaining balance in the MVM

     @return true if the MVM end-of-life has been reached
    */
  function isFinished() public view returns (bool finished) {
    return getCurrentPeriodIndex() >= totalPeriods;
  }

  /**
     @dev Called from the foundation wallet to claim eth back from the MVM.
     Maximum amount that can be claimed is determined by
     getMaxClaimableWeiAmount
    */
  function claimWei(uint256 weiAmount) public whenNotPaused {
    require(msg.sender == foundationAddr);

    uint256 claimable = getMaxClaimableWeiAmount();

    assert(claimable >= weiAmount);

    foundationAddr.transfer(weiAmount);

    totalWeiClaimed = totalWeiClaimed.add(weiAmount);

    ClaimedWei(weiAmount);
  }

  /**
     @dev Pauses the MVM. No tokens can be sent to the MVM and no eth can be
     claimed from the MVM while paused. MVM total lifetime is extended by the
     period it stays paused
    */
  function pause() public onlyOwner whenNotPaused {
    paused = true;
    pausedTimestamp = block.timestamp;

    Pause();
  }

  /**
     @dev Unpauses the MVM. See `pause` for more details about pausing
    */
  function unpause() public onlyOwner whenPaused {
    uint256 pausedSeconds = block.timestamp.sub(pausedTimestamp);
    totalPausedSeconds = totalPausedSeconds.add(pausedSeconds);
    paused = false;

    Unpause(pausedSeconds);
  }

}

// File: contracts/VestedPayment.sol

/**
   @title Vested Payment Schedule for LifToken

   An ownable vesting schedule for the LifToken, the tokens can only be
   claimed by the owner. The contract has a start timestamp, a duration
   of each period in seconds (it can be days, months, years), a total
   amount of periods and a cliff. The available amount of tokens will
   be calculated based on the balance of LifTokens of the contract at
   that time.
 */

contract VestedPayment is Ownable {
  using SafeMath for uint256;

  // When the vested schedule starts
  uint256 public startTimestamp;

  // How many seconds each period will last
  uint256 public secondsPerPeriod;

  // How many periods will have in total
  uint256 public totalPeriods;

  // The amount of tokens to be vested in total
  uint256 public tokens;

  // How many tokens were claimed
  uint256 public claimed;

  // The token contract
  LifToken public token;

  // Duration (in periods) of the initial cliff in the vesting schedule
  uint256 public cliffDuration;

  /**
     @dev Constructor.

     @param _startTimestamp see `startTimestamp`
     @param _secondsPerPeriod see `secondsPerPeriod`
     @param _totalPeriods see `totalPeriods
     @param _cliffDuration see `cliffDuration`
     @param _tokens see `tokens`
     @param tokenAddress the address of the token contract
   */
  function VestedPayment(
    uint256 _startTimestamp, uint256 _secondsPerPeriod,
    uint256 _totalPeriods, uint256 _cliffDuration,
    uint256 _tokens, address tokenAddress
  ) {
    require(_startTimestamp >= block.timestamp);
    require(_secondsPerPeriod > 0);
    require(_totalPeriods > 0);
    require(tokenAddress != address(0));
    require(_cliffDuration < _totalPeriods);
    require(_tokens > 0);

    startTimestamp = _startTimestamp;
    secondsPerPeriod = _secondsPerPeriod;
    totalPeriods = _totalPeriods;
    cliffDuration = _cliffDuration;
    tokens = _tokens;
    token = LifToken(tokenAddress);
  }

  /**
     @dev Change the LifToken address
    */
  function changeToken(address newToken) public onlyOwner {
    token = LifToken(newToken);
  }

  /**
     @dev Get how many tokens are available to be claimed
   */
  function getAvailableTokens() public view returns (uint256) {
    uint256 period = block.timestamp.sub(startTimestamp)
      .div(secondsPerPeriod);

    if (period < cliffDuration) {
      return 0;
    } else if (period >= totalPeriods) {
      return tokens.sub(claimed);
    } else {
      return tokens.mul(period.add(1)).div(totalPeriods).sub(claimed);
    }
  }

  /**
     @dev Claim the tokens, they can be claimed only by the owner
     of the contract

     @param amount how many tokens to be claimed
   */
  function claimTokens(uint256 amount) public onlyOwner {
    assert(getAvailableTokens() >= amount);

    claimed = claimed.add(amount);
    token.transfer(owner, amount);
  }

}

// File: contracts/LifCrowdsale.sol

/**
   @title Crowdsale for the Lif Token Generation Event

   Implementation of the Lif Token Generation Event (TGE) Crowdsale: A 2 week
   fixed price, uncapped token sale, with a discounted ratefor contributions
   ìn the private presale and a Market Validation Mechanism that will receive
   the funds over the USD 10M soft cap.
   The crowdsale has a minimum cap of USD 5M which in case of not being reached
   by purchases made during the 2 week period the token will not start operating
   and all funds sent during that period will be made available to be claimed by
   the originating addresses.
   Funds up to the USD 10M soft cap will be sent to the Winding Tree Foundation
   wallet at the end of the crowdsale.
   Funds over that amount will be put in a MarketValidationMechanism (MVM) smart
   contract that guarantees a price floor for a period of 2 or 4 years, allowing
   any token holder to burn their tokens in exchange of part of the eth amount
   sent during the TGE in exchange of those tokens.
 */
contract LifCrowdsale is Ownable, Pausable {
  using SafeMath for uint256;

  // The token being sold.
  LifToken public token;

  // Beginning of the period where tokens can be purchased at rate `rate1`.
  uint256 public startTimestamp;
  // Moment after which the rate to buy tokens goes from `rate1` to `rate2`.
  uint256 public end1Timestamp;
  // Marks the end of the Token Generation Event.
  uint256 public end2Timestamp;

  // Address of the Winding Tree Foundation wallet. Funds up to the soft cap are
  // sent to this address. It's also the address to which the MVM distributes
  // the funds that are made available month after month. An extra 5% of tokens
  // are put in a Vested Payment with this address as beneficiary, acting as a
  // long-term reserve for the foundation.
  address public foundationWallet;

  // Address of the Winding Tree Founders wallet. An extra 12.8% of tokens
  // are put in a Vested Payment with this address as beneficiary, with 1 year
  // cliff and 4 years duration.
  address public foundersWallet;

  // TGE min cap, in USD. Converted to wei using `weiPerUSDinTGE`.
  uint256 public minCapUSD = 5000000;

  // Maximun amount from the TGE that the foundation receives, in USD. Converted
  // to wei using `weiPerUSDinTGE`. Funds over this cap go to the MVM.
  uint256 public maxFoundationCapUSD = 10000000;

  // Maximum amount from the TGE that makes the MVM to last for 24 months. If
  // funds from the TGE exceed this amount, the MVM will last for 24 months.
  uint256 public MVM24PeriodsCapUSD = 40000000;

  // Conversion rate from USD to wei to use during the TGE.
  uint256 public weiPerUSDinTGE = 0;

  // Seconds before the TGE since when the corresponding USD to
  // wei rate cannot be set by the owner anymore.
  uint256 public setWeiLockSeconds = 0;

  // Quantity of Lif that is received in exchage of 1 Ether during the first
  // week of the 2 weeks TGE
  uint256 public rate1;

  // Quantity of Lif that is received in exchage of 1 Ether during the second
  // week of the 2 weeks TGE
  uint256 public rate2;

  // Amount of wei received in exchange of tokens during the 2 weeks TGE
  uint256 public weiRaised;

  // Amount of lif minted and transferred during the TGE
  uint256 public tokensSold;

  // Address of the vesting schedule for the foundation created at the
  // end of the crowdsale
  VestedPayment public foundationVestedPayment;

  // Address of the vesting schedule for founders created at the
  // end of the crowdsale
  VestedPayment public foundersVestedPayment;

  // Address of the MVM created at the end of the crowdsale
  LifMarketValidationMechanism public MVM;

  // Tracks the wei sent per address during the 2 week TGE. This is the amount
  // that can be claimed by each address in case the minimum cap is not reached
  mapping(address => uint256) public purchases;

  // Has the Crowdsale been finalized by a successful call to `finalize`?
  bool public isFinalized = false;

  /**
     @dev Event triggered (at most once) on a successful call to `finalize`
  **/
  event Finalized();

  /**
     @dev Event triggered every time a presale purchase is done
  **/
  event TokenPresalePurchase(address indexed beneficiary, uint256 weiAmount, uint256 rate);

  /**
     @dev Event triggered on every purchase during the TGE

     @param purchaser who paid for the tokens
     @param beneficiary who got the tokens
     @param value amount of wei paid
     @param amount amount of tokens purchased
   */
  event TokenPurchase(
    address indexed purchaser,
    address indexed beneficiary,
    uint256 value,
    uint256 amount
  );

  /**
     @dev Constructor. Creates the token in a paused state

     @param _startTimestamp see `startTimestamp`
     @param _end1Timestamp see `end1Timestamp`
     @param _end2Timestamp see `end2Timestamp
     @param _rate1 see `rate1`
     @param _rate2 see `rate2`
     @param _foundationWallet see `foundationWallet`
   */
  function LifCrowdsale(
    uint256 _startTimestamp,
    uint256 _end1Timestamp,
    uint256 _end2Timestamp,
    uint256 _rate1,
    uint256 _rate2,
    uint256 _setWeiLockSeconds,
    address _foundationWallet,
    address _foundersWallet
  ) {

    require(_startTimestamp > block.timestamp);
    require(_end1Timestamp > _startTimestamp);
    require(_end2Timestamp > _end1Timestamp);
    require(_rate1 > 0);
    require(_rate2 > 0);
    require(_setWeiLockSeconds > 0);
    require(_foundationWallet != address(0));
    require(_foundersWallet != address(0));

    token = new LifToken();
    token.pause();

    startTimestamp = _startTimestamp;
    end1Timestamp = _end1Timestamp;
    end2Timestamp = _end2Timestamp;
    rate1 = _rate1;
    rate2 = _rate2;
    setWeiLockSeconds = _setWeiLockSeconds;
    foundationWallet = _foundationWallet;
    foundersWallet = _foundersWallet;
  }

  /**
     @dev Set the wei per USD rate for the TGE. Has to be called by
     the owner up to `setWeiLockSeconds` before `startTimestamp`

     @param _weiPerUSD wei per USD rate valid during the TGE
   */
  function setWeiPerUSDinTGE(uint256 _weiPerUSD) public onlyOwner {
    require(_weiPerUSD > 0);
    assert(block.timestamp < startTimestamp.sub(setWeiLockSeconds));

    weiPerUSDinTGE = _weiPerUSD;
  }

  /**
     @dev Returns the current Lif per Eth rate during the TGE

     @return the current Lif per Eth rate or 0 when not in TGE
   */
  function getRate() public view returns (uint256) {
    if (block.timestamp < startTimestamp)
      return 0;
    else if (block.timestamp <= end1Timestamp)
      return rate1;
    else if (block.timestamp <= end2Timestamp)
      return rate2;
    else
      return 0;
  }

  /**
     @dev Fallback function, payable. Calls `buyTokens`
   */
  function () payable {
    buyTokens(msg.sender);
  }

  /**
     @dev Allows to get tokens during the TGE. Payable. The value is converted to
     Lif using the current rate obtained by calling `getRate()`.

     @param beneficiary Address to which Lif should be sent
   */
  function buyTokens(address beneficiary) public payable whenNotPaused validPurchase {
    require(beneficiary != address(0));
    assert(weiPerUSDinTGE > 0);

    uint256 weiAmount = msg.value;

    // get current price (it depends on current block number)
    uint256 rate = getRate();

    assert(rate > 0);

    // calculate token amount to be created
    uint256 tokens = weiAmount.mul(rate);

    // store wei amount in case of TGE min cap not reached
    weiRaised = weiRaised.add(weiAmount);
    purchases[beneficiary] = purchases[beneficiary].add(weiAmount);
    tokensSold = tokensSold.add(tokens);

    token.mint(beneficiary, tokens);
    TokenPurchase(msg.sender, beneficiary, weiAmount, tokens);
  }

  /**
     @dev Allows to add the address and the amount of wei sent by a contributor
     in the private presale. Can only be called by the owner before the beginning
     of TGE

     @param beneficiary Address to which Lif will be sent
     @param weiSent Amount of wei contributed
     @param rate Lif per ether rate at the moment of the contribution
   */
  function addPrivatePresaleTokens(
    address beneficiary, uint256 weiSent, uint256 rate
  ) public onlyOwner {
    require(block.timestamp < startTimestamp);
    require(beneficiary != address(0));
    require(weiSent > 0);

    // validate that rate is higher than TGE rate
    require(rate > rate1);

    uint256 tokens = weiSent.mul(rate);

    weiRaised = weiRaised.add(weiSent);

    token.mint(beneficiary, tokens);

    TokenPresalePurchase(beneficiary, weiSent, rate);
  }

  /**
     @dev Internal. Forwards funds to the foundation wallet and in case the soft
     cap was exceeded it also creates and funds the Market Validation Mechanism.
   */
  function forwardFunds(bool deployMVM) internal {

    // calculate the max amount of wei for the foundation
    uint256 foundationBalanceCapWei = maxFoundationCapUSD.mul(weiPerUSDinTGE);

    // If the minimiun cap for the MVM is not reached or the MVM cant be deployed
    // transfer all funds to foundation else if the min cap for the MVM is reached,
    // create it and send the remaining funds.
    // We use weiRaised to compare becuase that is the total amount of wei raised in all TGE
    // but we have to distribute the balance using `this.balance` because thats the amount
    // raised by the crowdsale
    if ((weiRaised <= foundationBalanceCapWei) || !deployMVM) {

      foundationWallet.transfer(this.balance);

      mintExtraTokens(uint256(24));

    } else {

      uint256 mmFundBalance = this.balance.sub(foundationBalanceCapWei);

      // check how much preiods we have to use on the MVM
      uint8 MVMPeriods = 24;
      if (mmFundBalance > MVM24PeriodsCapUSD.mul(weiPerUSDinTGE))
        MVMPeriods = 48;

      foundationWallet.transfer(foundationBalanceCapWei);

      MVM = new LifMarketValidationMechanism(
        address(token), block.timestamp.add(30 days), 30 days, MVMPeriods, foundationWallet
      );
      MVM.calculateDistributionPeriods();

      mintExtraTokens(uint256(MVMPeriods));

      MVM.fund.value(mmFundBalance)();
      MVM.transferOwnership(foundationWallet);

    }
  }

  /**
     @dev Internal. Distribute extra tokens among founders,
     team and the foundation long-term reserve. Founders receive
     12.8% of tokens in a 4y (1y cliff) vesting schedule.
     Foundation long-term reserve receives 5% of tokens in a
     vesting schedule with the same duration as the MVM that
     starts when the MVM ends. An extra 7.2% is transferred to
     the foundation to be distributed among advisors and future hires
   */
  function mintExtraTokens(uint256 foundationMonthsStart) internal {
    // calculate how much tokens will the founders,
    // foundation and advisors will receive
    uint256 foundersTokens = token.totalSupply().mul(128).div(1000);
    uint256 foundationTokens = token.totalSupply().mul(50).div(1000);
    uint256 teamTokens = token.totalSupply().mul(72).div(1000);

    // create the vested payment schedule for the founders
    foundersVestedPayment = new VestedPayment(
      block.timestamp, 30 days, 48, 12, foundersTokens, token
    );
    token.mint(foundersVestedPayment, foundersTokens);
    foundersVestedPayment.transferOwnership(foundersWallet);

    // create the vested payment schedule for the foundation
    uint256 foundationPaymentStart = foundationMonthsStart.mul(30 days)
      .add(30 days);
    foundationVestedPayment = new VestedPayment(
      block.timestamp.add(foundationPaymentStart), 30 days,
      foundationMonthsStart, 0, foundationTokens, token
    );
    token.mint(foundationVestedPayment, foundationTokens);
    foundationVestedPayment.transferOwnership(foundationWallet);

    // transfer the token for advisors and future employees to the foundation
    token.mint(foundationWallet, teamTokens);

  }

  /**
     @dev Modifier
     ok if the transaction can buy tokens on TGE
   */
  modifier validPurchase() {
    bool withinPeriod = now >= startTimestamp && now <= end2Timestamp;
    bool nonZeroPurchase = msg.value != 0;
    assert(withinPeriod && nonZeroPurchase);
    _;
  }

  /**
     @dev Modifier
     ok when block.timestamp is past end2Timestamp
  */
  modifier hasEnded() {
    assert(block.timestamp > end2Timestamp);
    _;
  }

  /**
     @dev Modifier
     @return true if minCapUSD has been reached by contributions during the TGE
  */
  function funded() public view returns (bool) {
    assert(weiPerUSDinTGE > 0);
    return weiRaised >= minCapUSD.mul(weiPerUSDinTGE);
  }

  /**
     @dev Allows a TGE contributor to claim their contributed eth in case the
     TGE has finished without reaching the minCapUSD
   */
  function claimEth() public whenNotPaused hasEnded {
    require(isFinalized);
    require(!funded());

    uint256 toReturn = purchases[msg.sender];
    assert(toReturn > 0);

    purchases[msg.sender] = 0;

    msg.sender.transfer(toReturn);
  }

  /**
     @dev Allows the owner to return an purchase to a contributor
   */
  function returnPurchase(address contributor)
    public hasEnded onlyOwner
  {
    require(!isFinalized);

    uint256 toReturn = purchases[contributor];
    assert(toReturn > 0);

    uint256 tokenBalance = token.balanceOf(contributor);

    // Substract weiRaised and tokens sold
    weiRaised = weiRaised.sub(toReturn);
    tokensSold = tokensSold.sub(tokenBalance);
    token.burn(contributor, tokenBalance);
    purchases[contributor] = 0;

    contributor.transfer(toReturn);
  }

  /**
     @dev Finalizes the crowdsale, taking care of transfer of funds to the
     Winding Tree Foundation and creation and funding of the Market Validation
     Mechanism in case the soft cap was exceeded. It also unpauses the token to
     enable transfers. It can be called only once, after `end2Timestamp`
   */
  function finalize(bool deployMVM) public onlyOwner hasEnded {
    require(!isFinalized);

    // foward founds and unpause token only if minCap is reached
    if (funded()) {

      forwardFunds(deployMVM);

      // finish the minting of the token
      token.finishMinting();

      // transfer the ownership of the token to the foundation
      token.transferOwnership(owner);

    }

    Finalized();
    isFinalized = true;
  }

}

// File: contracts/deploy/TGEDeployer.sol

/**
   @title TGEDeployer, A deployer contract for the Winding Tree TGE

   This contract is used to create a crowdsale and issue presale tokens in batches
   it will also set the weiPerUSD and transfer ownership, after that everything is
   ready for the TGE to succed.
 */
contract TGEDeployer {

  LifCrowdsale public crowdsale;
  address public wallet;
  address public owner;

  function TGEDeployer(
    uint256 startTimestamp,
    uint256 end1Timestamp,
    uint256 end2Timestamp,
    uint256 rate1,
    uint256 rate2,
    uint256 setWeiLockSeconds,
    address foundationWallet,
    address foundersWallet
  ) public {
    crowdsale = new LifCrowdsale(
      startTimestamp, end1Timestamp, end2Timestamp, rate1, rate2,
      setWeiLockSeconds, foundationWallet, foundersWallet
    );
    wallet = foundationWallet;
    owner = msg.sender;
  }

  // Mint a batch of presale tokens
  function addPresaleTokens(address[] contributors, uint256[] values, uint256 rate) public {
    require(msg.sender == owner);
    require(contributors.length == values.length);
    for (uint32 i = 0; i < contributors.length; i ++) {
      crowdsale.addPrivatePresaleTokens(contributors[i], values[i], rate);
    }
  }

  // Set the wei per USD in the crowdsale and then transfer ownership to foundation
  function finish(uint256 weiPerUSDinTGE) public {
    require(msg.sender == owner);
    crowdsale.setWeiPerUSDinTGE(weiPerUSDinTGE);
    crowdsale.transferOwnership(wallet);
  }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"foundersWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MVM","outputs":[{"name":"","type":"address"}],"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":"MVM24PeriodsCapUSD","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_weiPerUSD","type":"uint256"}],"name":"setWeiPerUSDinTGE","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundationWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"deployMVM","type":"bool"}],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxFoundationCapUSD","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"purchases","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":"isFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"weiSent","type":"uint256"},{"name":"rate","type":"uint256"}],"name":"addPrivatePresaleTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"contributor","type":"address"}],"name":"returnPurchase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimEth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"foundersVestedPayment","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiPerUSDinTGE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate1","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"setWeiLockSeconds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minCapUSD","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"end1Timestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"funded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"end2Timestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate2","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"foundationVestedPayment","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_startTimestamp","type":"uint256"},{"name":"_end1Timestamp","type":"uint256"},{"name":"_end2Timestamp","type":"uint256"},{"name":"_rate1","type":"uint256"},{"name":"_rate2","type":"uint256"},{"name":"_setWeiLockSeconds","type":"uint256"},{"name":"_foundationWallet","type":"address"},{"name":"_foundersWallet","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[],"name":"Finalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"},{"indexed":false,"name":"rate","type":"uint256"}],"name":"TokenPresalePurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"purchaser","type":"address"},{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"TokenPurchase","type":"event"},{"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"}]

60606040526000805460a060020a60ff0219168155624c4b40600755629896806008556302625a00600955600a819055600b556014805460ff1916905534156200004857600080fd5b60405161010080620041cc833981016040528080519190602001805191906020018051919060200180519190602001805191906020018051919060200180519190602001805160008054600160a060020a03191633600160a060020a0316179055915050428811620000b957600080fd5b878711620000c657600080fd5b868611620000d357600080fd5b60008511620000e157600080fd5b60008411620000ef57600080fd5b60008311620000fd57600080fd5b600160a060020a03821615156200011357600080fd5b600160a060020a03811615156200012957600080fd5b620001336200021b565b604051809103906000f08015156200014a57600080fd5b60018054600160a060020a031916600160a060020a03928316179081905516638456cb596040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515620001b657600080fd5b6102c65a03f11515620001c857600080fd5b505050600297909755600395909555600493909355600c91909155600d55600b5560058054600160a060020a03928316600160a060020a031991821617909155600680549290931691161790556200022c565b604051610f97806200323583390190565b612ff9806200023c6000396000f300606060405260043610620001a95763ffffffff60e060020a6000350416631bfaf1558114620001b65780633f4ba83a14620001e85780634042b66f14620001fe578063518ab2a814620002265780635a388a43146200023c5780635c975abb14620002525780635d91e27b146200027c5780636274ca4b1462000292578063679aefce14620002ab5780636b7ae8dc14620002c15780636c9789b014620002d7578063816f343814620002f2578063842a77d314620003085780638456cb59146200032a5780638d4e408314620003405780638da5cb5b1462000356578063a5878c65146200036c578063ad6860111462000394578063b7cdddcb14620003b6578063bbb0c05414620003cc578063ca25677114620003e2578063cf85496914620003f8578063d12a6049146200040e578063ded317a81462000424578063e29f610d146200043a578063e6fd48bc1462000450578063ec8ac4d81462000466578063f2fde38b146200047c578063f3a504f2146200049e578063f4fab74814620004b4578063f555b81514620004ca578063f5d05f7e14620004e0578063fc0c546a14620004f6575b620001b4336200050c565b005b3415620001c257600080fd5b620001cc620006f5565b604051600160a060020a03909116815260200160405180910390f35b3415620001f457600080fd5b620001b462000704565b34156200020a57600080fd5b6200021462000785565b60405190815260200160405180910390f35b34156200023257600080fd5b620002146200078b565b34156200024857600080fd5b620001cc62000791565b34156200025e57600080fd5b62000268620007a0565b604051901515815260200160405180910390f35b34156200028857600080fd5b62000214620007b0565b34156200029e57600080fd5b620001b4600435620007b6565b3415620002b757600080fd5b6200021462000805565b3415620002cd57600080fd5b620001cc6200084a565b3415620002e357600080fd5b620001b4600435151562000859565b3415620002fe57600080fd5b62000214620009bc565b34156200031457600080fd5b62000214600160a060020a0360043516620009c2565b34156200033657600080fd5b620001b4620009d4565b34156200034c57600080fd5b6200026862000a5a565b34156200036257600080fd5b620001cc62000a63565b34156200037857600080fd5b620001b4600160a060020a036004351660243560443562000a72565b3415620003a057600080fd5b620001b4600160a060020a036004351662000bc4565b3415620003c257600080fd5b620001b462000d84565b3415620003d857600080fd5b620001cc62000e3c565b3415620003ee57600080fd5b6200021462000e4b565b34156200040457600080fd5b6200021462000e51565b34156200041a57600080fd5b6200021462000e57565b34156200043057600080fd5b6200021462000e5d565b34156200044657600080fd5b6200021462000e63565b34156200045c57600080fd5b6200021462000e69565b620001b4600160a060020a03600435166200050c565b34156200048857600080fd5b620001b4600160a060020a036004351662000e6f565b3415620004aa57600080fd5b6200026862000f0c565b3415620004c057600080fd5b6200021462000f3d565b3415620004d657600080fd5b6200021462000f43565b3415620004ec57600080fd5b620001cc62000f49565b34156200050257600080fd5b620001cc62000f58565b600080548190819060a060020a900460ff16156200052957600080fd5b60008060025442101580156200054157506004544211155b915050341515818015620005525750805b15156200055b57fe5b600160a060020a03861615156200057157600080fd5b600a54600090116200057f57fe5b3494506200058c62000805565b9350600084116200059957fe5b620005ab858563ffffffff62000f6716565b600e54909350620005c3908663ffffffff62000fa116565b600e55600160a060020a038616600090815260136020526040902054620005f1908663ffffffff62000fa116565b600160a060020a038716600090815260136020526040902055600f546200061f908463ffffffff62000fa116565b600f55600154600160a060020a03166340c10f19878560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200068257600080fd5b6102c65a03f115156200069457600080fd5b505050604051805190505085600160a060020a031633600160a060020a03167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18878660405191825260208201526040908101905180910390a3505050505050565b600654600160a060020a031681565b60005433600160a060020a039081169116146200072057600080fd5b60005460a060020a900460ff1615156200073957600080fd5b6000805474ff0000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b600e5481565b600f5481565b601254600160a060020a031681565b60005460a060020a900460ff1681565b60095481565b60005433600160a060020a03908116911614620007d257600080fd5b60008111620007e057600080fd5b600b54600254620007f79163ffffffff62000fb116565b42106200080057fe5b600a55565b60006002544210156200081b5750600062000847565b60035442116200082f5750600c5462000847565b6004544211620008435750600d5462000847565b5060005b90565b600554600160a060020a031681565b60005433600160a060020a039081169116146200087557600080fd5b60045442116200088157fe5b60145460ff16156200089257600080fd5b6200089c62000f0c565b156200098057620008ad8162000fc4565b600154600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620008f657600080fd5b6102c65a03f115156200090857600080fd5b50505060405180515050600154600054600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200096a57600080fd5b6102c65a03f115156200097c57600080fd5b5050505b7f6823b073d48d6e3a7d385eeb601452d680e74bb46afe3255a7d778f3a9b1768160405160405180910390a1506014805460ff19166001179055565b60085481565b60136020526000908152604090205481565b60005433600160a060020a03908116911614620009f057600080fd5b60005460a060020a900460ff161562000a0857600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b60145460ff1681565b600054600160a060020a031681565b6000805433600160a060020a0390811691161462000a8f57600080fd5b600254421062000a9e57600080fd5b600160a060020a038416151562000ab457600080fd5b6000831162000ac257600080fd5b600c54821162000ad157600080fd5b62000ae3838363ffffffff62000f6716565b600e5490915062000afb908463ffffffff62000fa116565b600e55600154600160a060020a03166340c10f19858360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151562000b5e57600080fd5b6102c65a03f1151562000b7057600080fd5b50505060405180515050600160a060020a0384167f1dfc91d43d5ff31fe87a6c24f7139daad375b36cfd7d3c0dbf3d3cdebd7025dc848460405191825260208201526040908101905180910390a250505050565b6000806004544211151562000bd557fe5b60005433600160a060020a0390811691161462000bf157600080fd5b60145460ff161562000c0257600080fd5b600160a060020a0383166000908152601360205260408120549250821162000c2657fe5b600154600160a060020a03166370a082318460006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151562000c8057600080fd5b6102c65a03f1151562000c9257600080fd5b5050506040518051600e5490925062000cb391508363ffffffff62000fb116565b600e55600f5462000ccb908263ffffffff62000fb116565b600f55600154600160a060020a0316639dc29fac848360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151562000d2557600080fd5b6102c65a03f1151562000d3757600080fd5b505050600160a060020a0383166000818152601360205260408082209190915583156108fc0290849051600060405180830381858888f19350505050151562000d7f57600080fd5b505050565b6000805460a060020a900460ff161562000d9d57600080fd5b600454421162000da957fe5b60145460ff16151562000dbb57600080fd5b62000dc562000f0c565b1562000dd057600080fd5b50600160a060020a03331660009081526013602052604081205490811162000df457fe5b600160a060020a0333166000818152601360205260408082209190915582156108fc0290839051600060405180830381858888f19350505050151562000e3957600080fd5b50565b601154600160a060020a031681565b600a5481565b600c5481565b600b5481565b60075481565b60035481565b60025481565b60005433600160a060020a0390811691161462000e8b57600080fd5b600160a060020a038116151562000ea157600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080600a5411151562000f1c57fe5b600a5460075462000f339163ffffffff62000f6716565b600e541015905090565b60045481565b600d5481565b601054600160a060020a031681565b600154600160a060020a031681565b60008083151562000f7c576000915062000f9a565b5082820282848281151562000f8d57fe5b041462000f9657fe5b8091505b5092915050565b60008282018381101562000f9657fe5b60008282111562000fbe57fe5b50900390565b600080600062000fe2600a5460085462000f6790919063ffffffff16565b925082600e5411158062000ff4575083155b156200104657600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156200103457600080fd5b62001040601862001295565b6200128f565b62001062600160a060020a033016318463ffffffff62000fb116565b91506018905062001081600a5460095462000f6790919063ffffffff16565b8211156200108d575060305b600554600160a060020a031683156108fc0284604051600060405180830381858888f193505050501515620010c157600080fd5b600154600160a060020a0316620010e24262278d0063ffffffff62000fa116565b60055462278d00908490600160a060020a0316620010ff620017c6565b600160a060020a039586168152602081019490945260408085019390935260ff9091166060840152909216608082015260a0019051809103906000f08015156200114857600080fd5b6012805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392831617908190551663c0670d2c6040518163ffffffff1660e060020a028152600401600060405180830381600087803b1515620011a857600080fd5b6102c65a03f11515620011ba57600080fd5b505050620011cb8160ff1662001295565b601254600160a060020a031663b60d4288836040518263ffffffff1660e060020a0281526004016000604051808303818588803b15156200120b57600080fd5b6125ee5a03f115156200121d57600080fd5b5050601254600554600160a060020a03918216935063f2fde38b92501660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200127957600080fd5b6102c65a03f115156200128b57600080fd5b5050505b50505050565b6001546000908190819081906200132d906103e8906200132090608090600160a060020a03166318160ddd86604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620012f757600080fd5b6102c65a03f115156200130957600080fd5b505050604051805191905063ffffffff62000f6716565b9063ffffffff620017ae16565b6001549094506200138a906103e8906200132090603290600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620012f757600080fd5b600154909350620013e7906103e8906200132090604890600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620012f757600080fd5b600154909250429062278d0090603090600c908890600160a060020a03166200140f620017d7565b958652602086019490945260408086019390935260608501919091526080840152600160a060020a0390911660a083015260c09091019051809103906000f08015156200145b57600080fd5b6011805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392831617908190556001548216916340c10f1991168660006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515620014e157600080fd5b6102c65a03f11515620014f357600080fd5b50505060405180515050601154600654600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200155557600080fd5b6102c65a03f115156200156757600080fd5b5062001593915062278d00905062001586878263ffffffff62000f6716565b9063ffffffff62000fa116565b9050620015a7428263ffffffff62000fa116565b60015462278d009087906000908790600160a060020a0316620015c9620017d7565b958652602086019490945260408086019390935260608501919091526080840152600160a060020a0390911660a083015260c09091019051809103906000f08015156200161557600080fd5b6010805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392831617908190556001548216916340c10f1991168560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200169b57600080fd5b6102c65a03f11515620016ad57600080fd5b50505060405180515050601054600554600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200170f57600080fd5b6102c65a03f115156200172157600080fd5b5050600154600554600160a060020a0391821692506340c10f1991168460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200178b57600080fd5b6102c65a03f115156200179d57600080fd5b505050604051805150505050505050565b6000808284811515620017bd57fe5b04949350505050565b6040516111b280620017e983390190565b604051610633806200299b83390190560060606040526000600781905560088190556009819055600a819055600c805461ffff19169055600d55341561003357600080fd5b60405160a0806111b2833981016040528080519190602001805191906020018051919060200180519190602001805160008054600160a060020a03191633600160a060020a039081169190911790915590925086161515905061009557600080fd5b4284116100a157600080fd5b600083116100ae57600080fd5b8160ff16601814806100c357508160ff166030145b15156100ce57600080fd5b600160a060020a03811615156100e357600080fd5b60018054600160a060020a03968716600160a060020a0319918216179091556004949094556005929092556006805460ff90921660ff19909216919091179055600280549190931691161790556110738061013f6000396000f3006060604052600436106101665763ffffffff60e060020a600035041663018a25e8811461016b57806335a6c1e01461019057806338fab8c5146101a35780633ad6f8ac146101d25780633ca6d5a9146101e55780633f4ba83a146101f8578063407f80011461020d5780635495794b14610220578063555f323a146102335780635c975abb1461024657806366829b161461026d5780636790f3fe1461028c5780637b3529621461029f5780638456cb59146102b25780638da5cb5b146102c5578063911ef508146102d8578063a156ce7b146102eb578063b30475b6146102fe578063b4f5a21a14610311578063b60d428814610324578063c0670d2c1461032c578063ddd7c8791461033f578063df8f4eb714610355578063e6fd48bc14610368578063ea4a11041461037b578063f2fde38b14610391578063f3a504f2146103b0578063f5c6ca08146103c3578063fea708f6146103d9578063feafb79b14610402575b600080fd5b341561017657600080fd5b61017e610415565b60405190815260200160405180910390f35b341561019b57600080fd5b61017e61045e565b34156101ae57600080fd5b6101b6610464565b604051600160a060020a03909116815260200160405180910390f35b34156101dd57600080fd5b61017e610473565b34156101f057600080fd5b61017e6105b1565b341561020357600080fd5b61020b6105b7565b005b341561021857600080fd5b61017e610654565b341561022b57600080fd5b61017e61065a565b341561023e57600080fd5b61017e610660565b341561025157600080fd5b610259610666565b604051901515815260200160405180910390f35b341561027857600080fd5b61020b600160a060020a0360043516610674565b341561029757600080fd5b61017e6106be565b34156102aa57600080fd5b6102596106fa565b34156102bd57600080fd5b61020b610713565b34156102d057600080fd5b6101b6610781565b34156102e357600080fd5b61017e610790565b34156102f657600080fd5b61017e610796565b341561030957600080fd5b61017e61079c565b341561031c57600080fd5b61017e6107a2565b61020b6107d7565b341561033757600080fd5b61020b610895565b341561034a57600080fd5b61020b600435610bd9565b341561036057600080fd5b61017e610c9d565b341561037357600080fd5b61017e610ca3565b341561038657600080fd5b61017e600435610ca9565b341561039c57600080fd5b61020b600160a060020a0360043516610cc8565b34156103bb57600080fd5b610259610d63565b34156103ce57600080fd5b61020b600435610d6c565b34156103e457600080fd5b6103ec610f45565b60405160ff909116815260200160405180910390f35b341561040d57600080fd5b6101b6610f4e565b6000806104206106be565b9050610457620186a061044b61043c828563ffffffff610f5d16565b6008549063ffffffff610f6f16565b9063ffffffff610fa516565b91505b5090565b600d5481565b600154600160a060020a031681565b60008060008060006104836106fa565b1561049a5730600160a060020a03163194506105aa565b6104ca600a546104be620186a061044b600954600854610f6f90919063ffffffff16565b9063ffffffff610f5d16565b600154909450600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561051557600080fd5b6102c65a03f1151561052657600080fd5b50505060405180519050925061053a6106be565b915061057e84610572600b5461044b87610566620186a061044b8a600354610f6f90919063ffffffff16565b9063ffffffff610f6f16565b9063ffffffff610fbc16565b90506007548111156105a55760075461059e90829063ffffffff610f5d16565b94506105aa565b600094505b5050505090565b60085481565b6000805433600160a060020a039081169116146105d357600080fd5b600c54610100900460ff1615156105e657fe5b600e546105fa90429063ffffffff610f5d16565b600d54909150610610908263ffffffff610fbc16565b600d55600c805461ff00191690557faaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab78160405190815260200160405180910390a150565b60055481565b60035481565b60095481565b600c54610100900460ff1681565b60005433600160a060020a0390811691161461068f57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000806106c96107a2565b60065490915060ff1681106106da57fe5b600f8054829081106106e857fe5b90600052602060002090015491505090565b60065460009060ff1661070b6107a2565b101590505b90565b60005433600160a060020a0390811691161461072e57600080fd5b600c54610100900460ff161561074057fe5b600c805461ff00191661010017905542600e557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600054600160a060020a031681565b600e5481565b600a5481565b60075481565b6004546000904210156107b157fe5b6107d260055461044b600d546104be60045442610f5d90919063ffffffff16565b905090565b60005433600160a060020a039081169116146107f257600080fd5b600c5460ff16156107ff57fe5b600154600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561084757600080fd5b6102c65a03f1151561085857600080fd5b5050506040518051600b819055346003819055610883925061044b90620186a063ffffffff610f6f16565b600855600c805460ff19166001179055565b61089d610fcb565b6108a5610ff3565b60065460009060ff16601814806108c1575060065460ff166030145b15156108c957fe5b600f54156108d357fe5b6103006040519081016040528060008152602001601281526020016075815260200161015f81526020016102ff815260200161057f81526020016109058152602001610db781526020016113b78152602001611b2881526020016124298152602001612edb8152602001613b5c81526020016149c98152602001615a408152602001616cde81526020016181bf81526020016198fe815260200161b2b5815260200161cf00815260200161edf9815260200162010fb981526020016201345a815260200162015bf4815250925061060060405190810160405280600081526020016003815260200160128152602001603681526020016075815260200160d6815260200161015f815260200161021681526020016102ff8152602001610420815260200161057e815260200161071e81526020016109048152602001610b358152602001610db6815260200161108a81526020016113b6815260200161173e8152602001611b268152602001611f73815260200161242881526020016129498152602001612eda81526020016134df8152602001613b5b815260200161425281526020016149c881526020016151c18152602001615a4081526020016163488152602001616cde815260200161770481526020016181be8152602001618d1081526020016198fd815260200161a588815260200161b2b5815260200161c086815260200161cf00815260200161de25815260200161edf9815260200161fe7e815260200162010fb88152602001620121ab8152602001620134598152602001620147c5815260200162015bf38152602001620170e68152509150600090505b60065460ff9081169082161015610bd45760065460ff1660181415610b9157600f805460018101610b63838261100e565b91600052602060002090016000858460ff16601881101515610b8157fe5b602002015190915550610bcc9050565b600f805460018101610ba3838261100e565b91600052602060002090016000848460ff16603081101515610bc157fe5b602002015190915550505b600101610b32565b505050565b600c54600090610100900460ff1615610bee57fe5b60025433600160a060020a03908116911614610c0957600080fd5b610c11610473565b905081811015610c1d57fe5b600254600160a060020a031682156108fc0283604051600060405180830381858888f193505050501515610c5057600080fd5b600754610c63908363ffffffff610fbc16565b6007557f7995ed8c8bb70e086ac77eabe37bd8742685022b74d12ac20d7629469b5374e58260405190815260200160405180910390a15050565b600b5481565b60045481565b600f805482908110610cb757fe5b600091825260209091200154905081565b60005433600160a060020a03908116911614610ce357600080fd5b600160a060020a0381161515610cf857600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600c5460ff1681565b600c546000908190610100900460ff1615610d8357fe5b60008311610d9057600080fd5b610d98610415565b9150610db1620186a061044b858563ffffffff610f6f16565b600154909150600160a060020a03166323b872dd33308660006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610e2057600080fd5b6102c65a03f11515610e3157600080fd5b50505060405180515050600154600160a060020a03166342966c688460405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b1515610e8357600080fd5b6102c65a03f11515610e9457600080fd5b5050600954610eaa91508463ffffffff610fbc16565b600955600160a060020a0333167f1e3ea5698ac6d5bb5cde5c6a3764daa2ef39b16b2062c0ded43333188a5851c083858460405180848152602001838152602001828152602001935050505060405180910390a2600a54610f11908263ffffffff610fbc16565b600a55600160a060020a03331681156108fc0282604051600060405180830381858888f193505050501515610bd457600080fd5b60065460ff1681565b600254600160a060020a031681565b600082821115610f6957fe5b50900390565b600080831515610f825760009150610f9e565b50828202828482811515610f9257fe5b0414610f9a57fe5b8091505b5092915050565b6000808284811515610fb357fe5b04949350505050565b600082820183811015610f9a57fe5b6103006040519081016040526018815b6000815260200190600190039081610fdb5790505090565b61060060405190810160405260008152602f60208201610fdb565b815481835581811511610bd457600083815260209020610bd491810190830161071091905b8082111561045a57600081556001016110335600a165627a7a72305820f1c6904d657bf7a6ab90cc8aeec1faaa348922e21b3416b05374a8af1dff2ca700296060604052341561000f57600080fd5b60405160c08061063383398101604052808051919060200180519190602001805191906020018051919060200180519190602001805160008054600160a060020a03191633600160a060020a03161790559150504286101561007057600080fd5b6000851161007d57600080fd5b6000841161008a57600080fd5b600160a060020a038116151561009f57600080fd5b8383106100ab57600080fd5b600082116100b857600080fd5b60019590955560029390935560039190915560075560045560068054600160a060020a031916600160a060020a03909216919091179055610535806100fe6000396000f3006060604052600436106100b95763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663407f800181146100be57806346e04a2f146100e357806366829b16146100fb5780638da5cb5b1461011a5780639d63848a14610149578063d85349f71461015c578063e35568cb1461016f578063e6fd48bc14610182578063e834a83414610195578063f2fde38b146101a8578063fc0c546a146101c7578063fea708f6146101da575b600080fd5b34156100c957600080fd5b6100d16101ed565b60405190815260200160405180910390f35b34156100ee57600080fd5b6100f96004356101f3565b005b341561010657600080fd5b6100f9600160a060020a03600435166102d4565b341561012557600080fd5b61012d61031e565b604051600160a060020a03909116815260200160405180910390f35b341561015457600080fd5b6100d161032d565b341561016757600080fd5b6100d1610333565b341561017a57600080fd5b6100d1610339565b341561018d57600080fd5b6100d16103df565b34156101a057600080fd5b6100d16103e5565b34156101b357600080fd5b6100f9600160a060020a03600435166103eb565b34156101d257600080fd5b61012d610486565b34156101e557600080fd5b6100d1610495565b60025481565b60005433600160a060020a0390811691161461020e57600080fd5b80610217610339565b101561021f57fe5b600554610232908263ffffffff61049b16565b60055560065460008054600160a060020a039283169263a9059cbb929116908490604051602001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156102b657600080fd5b6102c65a03f115156102c757600080fd5b5050506040518051505050565b60005433600160a060020a039081169116146102ef57600080fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031681565b60045481565b60075481565b600080610363600254610357600154426104b590919063ffffffff16565b9063ffffffff6104c716565b905060075481101561037857600091506103db565b600354811061039d576005546004546103969163ffffffff6104b516565b91506103db565b6103966005546103cf6003546103576103c060018761049b90919063ffffffff16565b6004549063ffffffff6104de16565b9063ffffffff6104b516565b5090565b60015481565b60055481565b60005433600160a060020a0390811691161461040657600080fd5b600160a060020a038116151561041b57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600654600160a060020a031681565b60035481565b6000828201838110156104aa57fe5b8091505b5092915050565b6000828211156104c157fe5b50900390565b60008082848115156104d557fe5b04949350505050565b6000808315156104f157600091506104ae565b5082820282848281151561050157fe5b04146104aa57fe00a165627a7a72305820e1fe55cd90fb093f603d1fd73a8b804bb1dba75b661b22efcbc844065b947d040029a165627a7a72305820c2ac56aed750f01f9c524a6344e27c9bbc86913becd1195356847bf1ae0a35d50029606060405260038054600160b060020a03191633600160a060020a0316179055610f698061002e6000396000f30060606040526004361061011c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b8114610121578063095ea7b31461014857806318160ddd1461016a57806323b872dd1461018f5780632e0f2625146101b75780633f4ba83a146101ca57806340c10f19146101df57806342966c68146102015780635c975abb14610217578063661884631461022a57806370a082311461024c5780637d64bcb41461026b5780638456cb591461027e5780638da5cb5b146102915780639dc29fac146102c0578063a3f4df7e146102e2578063a9059cbb1461036c578063d73dd6231461038e578063dd62ed3e146103b0578063f2fde38b146103d5578063f76f8d78146103f4575b600080fd5b341561012c57600080fd5b610134610407565b604051901515815260200160405180910390f35b341561015357600080fd5b610134600160a060020a0360043516602435610417565b341561017557600080fd5b61017d610442565b60405190815260200160405180910390f35b341561019a57600080fd5b610134600160a060020a0360043581169060243516604435610448565b34156101c257600080fd5b61017d610475565b34156101d557600080fd5b6101dd61047a565b005b34156101ea57600080fd5b610134600160a060020a03600435166024356104fa565b341561020c57600080fd5b6101dd6004356105f6565b341561022257600080fd5b6101346106ba565b341561023557600080fd5b610134600160a060020a03600435166024356106ca565b341561025757600080fd5b61017d600160a060020a03600435166106ee565b341561027657600080fd5b610134610709565b341561028957600080fd5b6101dd610794565b341561029c57600080fd5b6102a4610819565b604051600160a060020a03909116815260200160405180910390f35b34156102cb57600080fd5b6101dd600160a060020a0360043516602435610828565b34156102ed57600080fd5b6102f5610908565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610331578082015183820152602001610319565b50505050905090810190601f16801561035e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037757600080fd5b610134600160a060020a036004351660243561093f565b341561039957600080fd5b610134600160a060020a0360043516602435610963565b34156103bb57600080fd5b61017d600160a060020a0360043581169060243516610987565b34156103e057600080fd5b6101dd600160a060020a03600435166109b2565b34156103ff57600080fd5b6102f5610a4d565b60035460a060020a900460ff1681565b60035460009060a860020a900460ff161561043157600080fd5b61043b8383610a84565b9392505050565b60015490565b60035460009060a860020a900460ff161561046257600080fd5b61046d848484610af0565b949350505050565b601281565b60035433600160a060020a0390811691161461049557600080fd5b60035460a860020a900460ff1615156104ad57600080fd5b6003805475ff000000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60035460009033600160a060020a0390811691161461051857600080fd5b60035460a060020a900460ff161561052f57600080fd5b600154610542908363ffffffff610c5e16565b600155600160a060020a03831660009081526020819052604090205461056e908363ffffffff610c5e16565b600160a060020a0384166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a0383166000600080516020610f1e8339815191528460405190815260200160405180910390a350600192915050565b60035460a860020a900460ff161561060d57600080fd5b600160a060020a03331660009081526020819052604090205481111561063257600080fd5b600160a060020a03331660009081526020819052604090205461065b908263ffffffff610c6d16565b600160a060020a033316600090815260208190526040902055600154610687908263ffffffff610c6d16565b600155600033600160a060020a0316600080516020610f1e8339815191528360405190815260200160405180910390a350565b60035460a860020a900460ff1681565b60035460009060a860020a900460ff16156106e457600080fd5b61043b8383610c7f565b600160a060020a031660009081526020819052604090205490565b60035460009033600160a060020a0390811691161461072757600080fd5b60035460a060020a900460ff161561073e57600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790557fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a150600190565b60035433600160a060020a039081169116146107af57600080fd5b60035460a860020a900460ff16156107c657600080fd5b6003805475ff000000000000000000000000000000000000000000191660a860020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600354600160a060020a031681565b60035433600160a060020a0390811691161461084357600080fd5b60035460a060020a900460ff161561085a57600080fd5b600160a060020a03821660009081526020819052604090205481111561087f57600080fd5b600160a060020a0382166000908152602081905260409020546108a8908263ffffffff610c6d16565b600160a060020a0383166000908152602081905260409020556001546108d4908263ffffffff610c6d16565b6001556000600160a060020a038316600080516020610f1e8339815191528360405190815260200160405180910390a35050565b60408051908101604052600481527f4cc3ad6600000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a860020a900460ff161561095957600080fd5b61043b8383610d79565b60035460009060a860020a900460ff161561097d57600080fd5b61043b8383610e79565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a039081169116146109cd57600080fd5b600160a060020a03811615156109e257600080fd5b600354600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60408051908101604052600381527f4c49460000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b6000600160a060020a0383161515610b0757600080fd5b600160a060020a038416600090815260208190526040902054821115610b2c57600080fd5b600160a060020a0380851660009081526002602090815260408083203390941683529290522054821115610b5f57600080fd5b600160a060020a038416600090815260208190526040902054610b88908363ffffffff610c6d16565b600160a060020a038086166000908152602081905260408082209390935590851681522054610bbd908363ffffffff610c5e16565b600160a060020a0380851660009081526020818152604080832094909455878316825260028152838220339093168252919091522054610c03908363ffffffff610c6d16565b600160a060020a0380861660008181526002602090815260408083203386168452909152908190209390935590851691600080516020610f1e8339815191529085905190815260200160405180910390a35060019392505050565b60008282018381101561043b57fe5b600082821115610c7957fe5b50900390565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205480831115610cdc57600160a060020a033381166000908152600260209081526040808320938816835292905290812055610d13565b610cec818463ffffffff610c6d16565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b6000600160a060020a0383161515610d9057600080fd5b600160a060020a033316600090815260208190526040902054821115610db557600080fd5b600160a060020a033316600090815260208190526040902054610dde908363ffffffff610c6d16565b600160a060020a033381166000908152602081905260408082209390935590851681522054610e13908363ffffffff610c5e16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a0316600080516020610f1e8339815191528460405190815260200160405180910390a350600192915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610eb1908363ffffffff610c5e16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a3506001929150505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a7230582063271a187971665c21fa974e606572dafefcd48f897d356a24234c91268a4ee20029000000000000000000000000000000000000000000000000000000005a72c900000000000000000000000000000000000000000000000000000000005a7ab200000000000000000000000000000000000000000000000000000000005a84cd8000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003840000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000dad697274f95f909ad12437c516626d65263ce47000000000000000000000000e7dfdf4b7dd5e9bd0bb94d59379219b625a6433d

Deployed Bytecode

0x606060405260043610620001a95763ffffffff60e060020a6000350416631bfaf1558114620001b65780633f4ba83a14620001e85780634042b66f14620001fe578063518ab2a814620002265780635a388a43146200023c5780635c975abb14620002525780635d91e27b146200027c5780636274ca4b1462000292578063679aefce14620002ab5780636b7ae8dc14620002c15780636c9789b014620002d7578063816f343814620002f2578063842a77d314620003085780638456cb59146200032a5780638d4e408314620003405780638da5cb5b1462000356578063a5878c65146200036c578063ad6860111462000394578063b7cdddcb14620003b6578063bbb0c05414620003cc578063ca25677114620003e2578063cf85496914620003f8578063d12a6049146200040e578063ded317a81462000424578063e29f610d146200043a578063e6fd48bc1462000450578063ec8ac4d81462000466578063f2fde38b146200047c578063f3a504f2146200049e578063f4fab74814620004b4578063f555b81514620004ca578063f5d05f7e14620004e0578063fc0c546a14620004f6575b620001b4336200050c565b005b3415620001c257600080fd5b620001cc620006f5565b604051600160a060020a03909116815260200160405180910390f35b3415620001f457600080fd5b620001b462000704565b34156200020a57600080fd5b6200021462000785565b60405190815260200160405180910390f35b34156200023257600080fd5b620002146200078b565b34156200024857600080fd5b620001cc62000791565b34156200025e57600080fd5b62000268620007a0565b604051901515815260200160405180910390f35b34156200028857600080fd5b62000214620007b0565b34156200029e57600080fd5b620001b4600435620007b6565b3415620002b757600080fd5b6200021462000805565b3415620002cd57600080fd5b620001cc6200084a565b3415620002e357600080fd5b620001b4600435151562000859565b3415620002fe57600080fd5b62000214620009bc565b34156200031457600080fd5b62000214600160a060020a0360043516620009c2565b34156200033657600080fd5b620001b4620009d4565b34156200034c57600080fd5b6200026862000a5a565b34156200036257600080fd5b620001cc62000a63565b34156200037857600080fd5b620001b4600160a060020a036004351660243560443562000a72565b3415620003a057600080fd5b620001b4600160a060020a036004351662000bc4565b3415620003c257600080fd5b620001b462000d84565b3415620003d857600080fd5b620001cc62000e3c565b3415620003ee57600080fd5b6200021462000e4b565b34156200040457600080fd5b6200021462000e51565b34156200041a57600080fd5b6200021462000e57565b34156200043057600080fd5b6200021462000e5d565b34156200044657600080fd5b6200021462000e63565b34156200045c57600080fd5b6200021462000e69565b620001b4600160a060020a03600435166200050c565b34156200048857600080fd5b620001b4600160a060020a036004351662000e6f565b3415620004aa57600080fd5b6200026862000f0c565b3415620004c057600080fd5b6200021462000f3d565b3415620004d657600080fd5b6200021462000f43565b3415620004ec57600080fd5b620001cc62000f49565b34156200050257600080fd5b620001cc62000f58565b600080548190819060a060020a900460ff16156200052957600080fd5b60008060025442101580156200054157506004544211155b915050341515818015620005525750805b15156200055b57fe5b600160a060020a03861615156200057157600080fd5b600a54600090116200057f57fe5b3494506200058c62000805565b9350600084116200059957fe5b620005ab858563ffffffff62000f6716565b600e54909350620005c3908663ffffffff62000fa116565b600e55600160a060020a038616600090815260136020526040902054620005f1908663ffffffff62000fa116565b600160a060020a038716600090815260136020526040902055600f546200061f908463ffffffff62000fa116565b600f55600154600160a060020a03166340c10f19878560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200068257600080fd5b6102c65a03f115156200069457600080fd5b505050604051805190505085600160a060020a031633600160a060020a03167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18878660405191825260208201526040908101905180910390a3505050505050565b600654600160a060020a031681565b60005433600160a060020a039081169116146200072057600080fd5b60005460a060020a900460ff1615156200073957600080fd5b6000805474ff0000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b600e5481565b600f5481565b601254600160a060020a031681565b60005460a060020a900460ff1681565b60095481565b60005433600160a060020a03908116911614620007d257600080fd5b60008111620007e057600080fd5b600b54600254620007f79163ffffffff62000fb116565b42106200080057fe5b600a55565b60006002544210156200081b5750600062000847565b60035442116200082f5750600c5462000847565b6004544211620008435750600d5462000847565b5060005b90565b600554600160a060020a031681565b60005433600160a060020a039081169116146200087557600080fd5b60045442116200088157fe5b60145460ff16156200089257600080fd5b6200089c62000f0c565b156200098057620008ad8162000fc4565b600154600160a060020a0316637d64bcb46000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620008f657600080fd5b6102c65a03f115156200090857600080fd5b50505060405180515050600154600054600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200096a57600080fd5b6102c65a03f115156200097c57600080fd5b5050505b7f6823b073d48d6e3a7d385eeb601452d680e74bb46afe3255a7d778f3a9b1768160405160405180910390a1506014805460ff19166001179055565b60085481565b60136020526000908152604090205481565b60005433600160a060020a03908116911614620009f057600080fd5b60005460a060020a900460ff161562000a0857600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b60145460ff1681565b600054600160a060020a031681565b6000805433600160a060020a0390811691161462000a8f57600080fd5b600254421062000a9e57600080fd5b600160a060020a038416151562000ab457600080fd5b6000831162000ac257600080fd5b600c54821162000ad157600080fd5b62000ae3838363ffffffff62000f6716565b600e5490915062000afb908463ffffffff62000fa116565b600e55600154600160a060020a03166340c10f19858360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151562000b5e57600080fd5b6102c65a03f1151562000b7057600080fd5b50505060405180515050600160a060020a0384167f1dfc91d43d5ff31fe87a6c24f7139daad375b36cfd7d3c0dbf3d3cdebd7025dc848460405191825260208201526040908101905180910390a250505050565b6000806004544211151562000bd557fe5b60005433600160a060020a0390811691161462000bf157600080fd5b60145460ff161562000c0257600080fd5b600160a060020a0383166000908152601360205260408120549250821162000c2657fe5b600154600160a060020a03166370a082318460006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151562000c8057600080fd5b6102c65a03f1151562000c9257600080fd5b5050506040518051600e5490925062000cb391508363ffffffff62000fb116565b600e55600f5462000ccb908263ffffffff62000fb116565b600f55600154600160a060020a0316639dc29fac848360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151562000d2557600080fd5b6102c65a03f1151562000d3757600080fd5b505050600160a060020a0383166000818152601360205260408082209190915583156108fc0290849051600060405180830381858888f19350505050151562000d7f57600080fd5b505050565b6000805460a060020a900460ff161562000d9d57600080fd5b600454421162000da957fe5b60145460ff16151562000dbb57600080fd5b62000dc562000f0c565b1562000dd057600080fd5b50600160a060020a03331660009081526013602052604081205490811162000df457fe5b600160a060020a0333166000818152601360205260408082209190915582156108fc0290839051600060405180830381858888f19350505050151562000e3957600080fd5b50565b601154600160a060020a031681565b600a5481565b600c5481565b600b5481565b60075481565b60035481565b60025481565b60005433600160a060020a0390811691161462000e8b57600080fd5b600160a060020a038116151562000ea157600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080600a5411151562000f1c57fe5b600a5460075462000f339163ffffffff62000f6716565b600e541015905090565b60045481565b600d5481565b601054600160a060020a031681565b600154600160a060020a031681565b60008083151562000f7c576000915062000f9a565b5082820282848281151562000f8d57fe5b041462000f9657fe5b8091505b5092915050565b60008282018381101562000f9657fe5b60008282111562000fbe57fe5b50900390565b600080600062000fe2600a5460085462000f6790919063ffffffff16565b925082600e5411158062000ff4575083155b156200104657600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156200103457600080fd5b62001040601862001295565b6200128f565b62001062600160a060020a033016318463ffffffff62000fb116565b91506018905062001081600a5460095462000f6790919063ffffffff16565b8211156200108d575060305b600554600160a060020a031683156108fc0284604051600060405180830381858888f193505050501515620010c157600080fd5b600154600160a060020a0316620010e24262278d0063ffffffff62000fa116565b60055462278d00908490600160a060020a0316620010ff620017c6565b600160a060020a039586168152602081019490945260408085019390935260ff9091166060840152909216608082015260a0019051809103906000f08015156200114857600080fd5b6012805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392831617908190551663c0670d2c6040518163ffffffff1660e060020a028152600401600060405180830381600087803b1515620011a857600080fd5b6102c65a03f11515620011ba57600080fd5b505050620011cb8160ff1662001295565b601254600160a060020a031663b60d4288836040518263ffffffff1660e060020a0281526004016000604051808303818588803b15156200120b57600080fd5b6125ee5a03f115156200121d57600080fd5b5050601254600554600160a060020a03918216935063f2fde38b92501660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200127957600080fd5b6102c65a03f115156200128b57600080fd5b5050505b50505050565b6001546000908190819081906200132d906103e8906200132090608090600160a060020a03166318160ddd86604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620012f757600080fd5b6102c65a03f115156200130957600080fd5b505050604051805191905063ffffffff62000f6716565b9063ffffffff620017ae16565b6001549094506200138a906103e8906200132090603290600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620012f757600080fd5b600154909350620013e7906103e8906200132090604890600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515620012f757600080fd5b600154909250429062278d0090603090600c908890600160a060020a03166200140f620017d7565b958652602086019490945260408086019390935260608501919091526080840152600160a060020a0390911660a083015260c09091019051809103906000f08015156200145b57600080fd5b6011805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392831617908190556001548216916340c10f1991168660006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515620014e157600080fd5b6102c65a03f11515620014f357600080fd5b50505060405180515050601154600654600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200155557600080fd5b6102c65a03f115156200156757600080fd5b5062001593915062278d00905062001586878263ffffffff62000f6716565b9063ffffffff62000fa116565b9050620015a7428263ffffffff62000fa116565b60015462278d009087906000908790600160a060020a0316620015c9620017d7565b958652602086019490945260408086019390935260608501919091526080840152600160a060020a0390911660a083015260c09091019051809103906000f08015156200161557600080fd5b6010805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392831617908190556001548216916340c10f1991168560006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200169b57600080fd5b6102c65a03f11515620016ad57600080fd5b50505060405180515050601054600554600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200170f57600080fd5b6102c65a03f115156200172157600080fd5b5050600154600554600160a060020a0391821692506340c10f1991168460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200178b57600080fd5b6102c65a03f115156200179d57600080fd5b505050604051805150505050505050565b6000808284811515620017bd57fe5b04949350505050565b6040516111b280620017e983390190565b604051610633806200299b83390190560060606040526000600781905560088190556009819055600a819055600c805461ffff19169055600d55341561003357600080fd5b60405160a0806111b2833981016040528080519190602001805191906020018051919060200180519190602001805160008054600160a060020a03191633600160a060020a039081169190911790915590925086161515905061009557600080fd5b4284116100a157600080fd5b600083116100ae57600080fd5b8160ff16601814806100c357508160ff166030145b15156100ce57600080fd5b600160a060020a03811615156100e357600080fd5b60018054600160a060020a03968716600160a060020a0319918216179091556004949094556005929092556006805460ff90921660ff19909216919091179055600280549190931691161790556110738061013f6000396000f3006060604052600436106101665763ffffffff60e060020a600035041663018a25e8811461016b57806335a6c1e01461019057806338fab8c5146101a35780633ad6f8ac146101d25780633ca6d5a9146101e55780633f4ba83a146101f8578063407f80011461020d5780635495794b14610220578063555f323a146102335780635c975abb1461024657806366829b161461026d5780636790f3fe1461028c5780637b3529621461029f5780638456cb59146102b25780638da5cb5b146102c5578063911ef508146102d8578063a156ce7b146102eb578063b30475b6146102fe578063b4f5a21a14610311578063b60d428814610324578063c0670d2c1461032c578063ddd7c8791461033f578063df8f4eb714610355578063e6fd48bc14610368578063ea4a11041461037b578063f2fde38b14610391578063f3a504f2146103b0578063f5c6ca08146103c3578063fea708f6146103d9578063feafb79b14610402575b600080fd5b341561017657600080fd5b61017e610415565b60405190815260200160405180910390f35b341561019b57600080fd5b61017e61045e565b34156101ae57600080fd5b6101b6610464565b604051600160a060020a03909116815260200160405180910390f35b34156101dd57600080fd5b61017e610473565b34156101f057600080fd5b61017e6105b1565b341561020357600080fd5b61020b6105b7565b005b341561021857600080fd5b61017e610654565b341561022b57600080fd5b61017e61065a565b341561023e57600080fd5b61017e610660565b341561025157600080fd5b610259610666565b604051901515815260200160405180910390f35b341561027857600080fd5b61020b600160a060020a0360043516610674565b341561029757600080fd5b61017e6106be565b34156102aa57600080fd5b6102596106fa565b34156102bd57600080fd5b61020b610713565b34156102d057600080fd5b6101b6610781565b34156102e357600080fd5b61017e610790565b34156102f657600080fd5b61017e610796565b341561030957600080fd5b61017e61079c565b341561031c57600080fd5b61017e6107a2565b61020b6107d7565b341561033757600080fd5b61020b610895565b341561034a57600080fd5b61020b600435610bd9565b341561036057600080fd5b61017e610c9d565b341561037357600080fd5b61017e610ca3565b341561038657600080fd5b61017e600435610ca9565b341561039c57600080fd5b61020b600160a060020a0360043516610cc8565b34156103bb57600080fd5b610259610d63565b34156103ce57600080fd5b61020b600435610d6c565b34156103e457600080fd5b6103ec610f45565b60405160ff909116815260200160405180910390f35b341561040d57600080fd5b6101b6610f4e565b6000806104206106be565b9050610457620186a061044b61043c828563ffffffff610f5d16565b6008549063ffffffff610f6f16565b9063ffffffff610fa516565b91505b5090565b600d5481565b600154600160a060020a031681565b60008060008060006104836106fa565b1561049a5730600160a060020a03163194506105aa565b6104ca600a546104be620186a061044b600954600854610f6f90919063ffffffff16565b9063ffffffff610f5d16565b600154909450600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561051557600080fd5b6102c65a03f1151561052657600080fd5b50505060405180519050925061053a6106be565b915061057e84610572600b5461044b87610566620186a061044b8a600354610f6f90919063ffffffff16565b9063ffffffff610f6f16565b9063ffffffff610fbc16565b90506007548111156105a55760075461059e90829063ffffffff610f5d16565b94506105aa565b600094505b5050505090565b60085481565b6000805433600160a060020a039081169116146105d357600080fd5b600c54610100900460ff1615156105e657fe5b600e546105fa90429063ffffffff610f5d16565b600d54909150610610908263ffffffff610fbc16565b600d55600c805461ff00191690557faaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab78160405190815260200160405180910390a150565b60055481565b60035481565b60095481565b600c54610100900460ff1681565b60005433600160a060020a0390811691161461068f57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000806106c96107a2565b60065490915060ff1681106106da57fe5b600f8054829081106106e857fe5b90600052602060002090015491505090565b60065460009060ff1661070b6107a2565b101590505b90565b60005433600160a060020a0390811691161461072e57600080fd5b600c54610100900460ff161561074057fe5b600c805461ff00191661010017905542600e557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600054600160a060020a031681565b600e5481565b600a5481565b60075481565b6004546000904210156107b157fe5b6107d260055461044b600d546104be60045442610f5d90919063ffffffff16565b905090565b60005433600160a060020a039081169116146107f257600080fd5b600c5460ff16156107ff57fe5b600154600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561084757600080fd5b6102c65a03f1151561085857600080fd5b5050506040518051600b819055346003819055610883925061044b90620186a063ffffffff610f6f16565b600855600c805460ff19166001179055565b61089d610fcb565b6108a5610ff3565b60065460009060ff16601814806108c1575060065460ff166030145b15156108c957fe5b600f54156108d357fe5b6103006040519081016040528060008152602001601281526020016075815260200161015f81526020016102ff815260200161057f81526020016109058152602001610db781526020016113b78152602001611b2881526020016124298152602001612edb8152602001613b5c81526020016149c98152602001615a408152602001616cde81526020016181bf81526020016198fe815260200161b2b5815260200161cf00815260200161edf9815260200162010fb981526020016201345a815260200162015bf4815250925061060060405190810160405280600081526020016003815260200160128152602001603681526020016075815260200160d6815260200161015f815260200161021681526020016102ff8152602001610420815260200161057e815260200161071e81526020016109048152602001610b358152602001610db6815260200161108a81526020016113b6815260200161173e8152602001611b268152602001611f73815260200161242881526020016129498152602001612eda81526020016134df8152602001613b5b815260200161425281526020016149c881526020016151c18152602001615a4081526020016163488152602001616cde815260200161770481526020016181be8152602001618d1081526020016198fd815260200161a588815260200161b2b5815260200161c086815260200161cf00815260200161de25815260200161edf9815260200161fe7e815260200162010fb88152602001620121ab8152602001620134598152602001620147c5815260200162015bf38152602001620170e68152509150600090505b60065460ff9081169082161015610bd45760065460ff1660181415610b9157600f805460018101610b63838261100e565b91600052602060002090016000858460ff16601881101515610b8157fe5b602002015190915550610bcc9050565b600f805460018101610ba3838261100e565b91600052602060002090016000848460ff16603081101515610bc157fe5b602002015190915550505b600101610b32565b505050565b600c54600090610100900460ff1615610bee57fe5b60025433600160a060020a03908116911614610c0957600080fd5b610c11610473565b905081811015610c1d57fe5b600254600160a060020a031682156108fc0283604051600060405180830381858888f193505050501515610c5057600080fd5b600754610c63908363ffffffff610fbc16565b6007557f7995ed8c8bb70e086ac77eabe37bd8742685022b74d12ac20d7629469b5374e58260405190815260200160405180910390a15050565b600b5481565b60045481565b600f805482908110610cb757fe5b600091825260209091200154905081565b60005433600160a060020a03908116911614610ce357600080fd5b600160a060020a0381161515610cf857600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600c5460ff1681565b600c546000908190610100900460ff1615610d8357fe5b60008311610d9057600080fd5b610d98610415565b9150610db1620186a061044b858563ffffffff610f6f16565b600154909150600160a060020a03166323b872dd33308660006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610e2057600080fd5b6102c65a03f11515610e3157600080fd5b50505060405180515050600154600160a060020a03166342966c688460405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b1515610e8357600080fd5b6102c65a03f11515610e9457600080fd5b5050600954610eaa91508463ffffffff610fbc16565b600955600160a060020a0333167f1e3ea5698ac6d5bb5cde5c6a3764daa2ef39b16b2062c0ded43333188a5851c083858460405180848152602001838152602001828152602001935050505060405180910390a2600a54610f11908263ffffffff610fbc16565b600a55600160a060020a03331681156108fc0282604051600060405180830381858888f193505050501515610bd457600080fd5b60065460ff1681565b600254600160a060020a031681565b600082821115610f6957fe5b50900390565b600080831515610f825760009150610f9e565b50828202828482811515610f9257fe5b0414610f9a57fe5b8091505b5092915050565b6000808284811515610fb357fe5b04949350505050565b600082820183811015610f9a57fe5b6103006040519081016040526018815b6000815260200190600190039081610fdb5790505090565b61060060405190810160405260008152602f60208201610fdb565b815481835581811511610bd457600083815260209020610bd491810190830161071091905b8082111561045a57600081556001016110335600a165627a7a72305820f1c6904d657bf7a6ab90cc8aeec1faaa348922e21b3416b05374a8af1dff2ca700296060604052341561000f57600080fd5b60405160c08061063383398101604052808051919060200180519190602001805191906020018051919060200180519190602001805160008054600160a060020a03191633600160a060020a03161790559150504286101561007057600080fd5b6000851161007d57600080fd5b6000841161008a57600080fd5b600160a060020a038116151561009f57600080fd5b8383106100ab57600080fd5b600082116100b857600080fd5b60019590955560029390935560039190915560075560045560068054600160a060020a031916600160a060020a03909216919091179055610535806100fe6000396000f3006060604052600436106100b95763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663407f800181146100be57806346e04a2f146100e357806366829b16146100fb5780638da5cb5b1461011a5780639d63848a14610149578063d85349f71461015c578063e35568cb1461016f578063e6fd48bc14610182578063e834a83414610195578063f2fde38b146101a8578063fc0c546a146101c7578063fea708f6146101da575b600080fd5b34156100c957600080fd5b6100d16101ed565b60405190815260200160405180910390f35b34156100ee57600080fd5b6100f96004356101f3565b005b341561010657600080fd5b6100f9600160a060020a03600435166102d4565b341561012557600080fd5b61012d61031e565b604051600160a060020a03909116815260200160405180910390f35b341561015457600080fd5b6100d161032d565b341561016757600080fd5b6100d1610333565b341561017a57600080fd5b6100d1610339565b341561018d57600080fd5b6100d16103df565b34156101a057600080fd5b6100d16103e5565b34156101b357600080fd5b6100f9600160a060020a03600435166103eb565b34156101d257600080fd5b61012d610486565b34156101e557600080fd5b6100d1610495565b60025481565b60005433600160a060020a0390811691161461020e57600080fd5b80610217610339565b101561021f57fe5b600554610232908263ffffffff61049b16565b60055560065460008054600160a060020a039283169263a9059cbb929116908490604051602001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156102b657600080fd5b6102c65a03f115156102c757600080fd5b5050506040518051505050565b60005433600160a060020a039081169116146102ef57600080fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031681565b60045481565b60075481565b600080610363600254610357600154426104b590919063ffffffff16565b9063ffffffff6104c716565b905060075481101561037857600091506103db565b600354811061039d576005546004546103969163ffffffff6104b516565b91506103db565b6103966005546103cf6003546103576103c060018761049b90919063ffffffff16565b6004549063ffffffff6104de16565b9063ffffffff6104b516565b5090565b60015481565b60055481565b60005433600160a060020a0390811691161461040657600080fd5b600160a060020a038116151561041b57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600654600160a060020a031681565b60035481565b6000828201838110156104aa57fe5b8091505b5092915050565b6000828211156104c157fe5b50900390565b60008082848115156104d557fe5b04949350505050565b6000808315156104f157600091506104ae565b5082820282848281151561050157fe5b04146104aa57fe00a165627a7a72305820e1fe55cd90fb093f603d1fd73a8b804bb1dba75b661b22efcbc844065b947d040029a165627a7a72305820c2ac56aed750f01f9c524a6344e27c9bbc86913becd1195356847bf1ae0a35d50029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000005a72c900000000000000000000000000000000000000000000000000000000005a7ab200000000000000000000000000000000000000000000000000000000005a84cd8000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003840000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000dad697274f95f909ad12437c516626d65263ce47000000000000000000000000e7dfdf4b7dd5e9bd0bb94d59379219b625a6433d

-----Decoded View---------------
Arg [0] : _startTimestamp (uint256): 1517472000
Arg [1] : _end1Timestamp (uint256): 1517990400
Arg [2] : _end2Timestamp (uint256): 1518652800
Arg [3] : _rate1 (uint256): 1000
Arg [4] : _rate2 (uint256): 900
Arg [5] : _setWeiLockSeconds (uint256): 3600
Arg [6] : _foundationWallet (address): 0xDAD697274F95F909ad12437C516626d65263Ce47
Arg [7] : _foundersWallet (address): 0xe7dfDF4b7Dd5e9BD0bb94d59379219B625A6433d

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005a72c900
Arg [1] : 000000000000000000000000000000000000000000000000000000005a7ab200
Arg [2] : 000000000000000000000000000000000000000000000000000000005a84cd80
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000384
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [6] : 000000000000000000000000dad697274f95f909ad12437c516626d65263ce47
Arg [7] : 000000000000000000000000e7dfdf4b7dd5e9bd0bb94d59379219b625a6433d


Swarm Source

bzzr://63271a187971665c21fa974e606572dafefcd48f897d356a24234c91268a4ee2

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.