ETH Price: $2,530.41 (+3.65%)

Contract

0x8ac03A3304519879e2Ddb114c2Eb2163043AB4B0
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer50273252018-02-04 5:19:492397 days ago1517721589IN
0x8ac03A33...3043AB4B0
0.3 ETH0.00086141
Buy With KYC Dat...50105282018-02-01 8:31:252400 days ago1517473885IN
0x8ac03A33...3043AB4B0
1.11 ETH0.007043490
Transfer50003602018-01-30 15:07:112402 days ago1517324831IN
0x8ac03A33...3043AB4B0
0.59182526 ETH0.000862841
Transfer50003502018-01-30 15:04:272402 days ago1517324667IN
0x8ac03A33...3043AB4B0
0.59268807 ETH0.000862841
Buy With KYC Dat...50003492018-01-30 15:03:532402 days ago1517324633IN
0x8ac03A33...3043AB4B0
3 ETH0.007043490
Transfer50003452018-01-30 15:02:302402 days ago1517324550IN
0x8ac03A33...3043AB4B0
0.021 ETH0.000862841
Transfer50003402018-01-30 15:01:392402 days ago1517324499IN
0x8ac03A33...3043AB4B0
0.59355087 ETH0.000862841
Transfer50003282018-01-30 14:59:472402 days ago1517324387IN
0x8ac03A33...3043AB4B0
0.59441368 ETH0.000862841
Buy With KYC Dat...50003282018-01-30 14:59:472402 days ago1517324387IN
0x8ac03A33...3043AB4B0
5 ETH0.0088139341
Transfer50003272018-01-30 14:59:232402 days ago1517324363IN
0x8ac03A33...3043AB4B0
0.21 ETH0.0008417640
Buy With KYC Dat...50003262018-01-30 14:58:582402 days ago1517324338IN
0x8ac03A33...3043AB4B0
8 ETH0.0148340790
Buy With KYC Dat...50003252018-01-30 14:58:502402 days ago1517324330IN
0x8ac03A33...3043AB4B0
0.28 ETH0.0193476690
Transfer50003232018-01-30 14:58:262402 days ago1517324306IN
0x8ac03A33...3043AB4B0
0.21 ETH0.0008417640
Transfer50003212018-01-30 14:58:102402 days ago1517324290IN
0x8ac03A33...3043AB4B0
0.21 ETH0.0008440
Transfer50003212018-01-30 14:58:102402 days ago1517324290IN
0x8ac03A33...3043AB4B0
0.59527648 ETH0.000862841
Buy With KYC Dat...50003212018-01-30 14:58:102402 days ago1517324290IN
0x8ac03A33...3043AB4B0
1 ETH0.0148340790
Buy With KYC Dat...50003182018-01-30 14:57:322402 days ago1517324252IN
0x8ac03A33...3043AB4B0
0.22 ETH0.0045131121
Transfer50003172018-01-30 14:57:282402 days ago1517324248IN
0x8ac03A33...3043AB4B0
0.51 ETH0.000862841
Buy With KYC Dat...50003172018-01-30 14:57:282402 days ago1517324248IN
0x8ac03A33...3043AB4B0
0.241 ETH0.00990
Transfer50003152018-01-30 14:56:362402 days ago1517324196IN
0x8ac03A33...3043AB4B0
0.224 ETH0.0018939690
Transfer50003132018-01-30 14:56:172402 days ago1517324177IN
0x8ac03A33...3043AB4B0
0.56 ETH0.000862841
Buy With KYC Dat...50003082018-01-30 14:54:382402 days ago1517324078IN
0x8ac03A33...3043AB4B0
0.5 ETH0.0034612821
Buy With KYC Dat...50003062018-01-30 14:53:482402 days ago1517324028IN
0x8ac03A33...3043AB4B0
0.68 ETH0.0049446930
Buy With KYC Dat...50003062018-01-30 14:53:482402 days ago1517324028IN
0x8ac03A33...3043AB4B0
0.21 ETH0.0067577441
Buy With KYC Dat...50003052018-01-30 14:53:312402 days ago1517324011IN
0x8ac03A33...3043AB4B0
10 ETH0.0193476690
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
50003282018-01-30 14:59:472402 days ago1517324387
0x8ac03A33...3043AB4B0
5 ETH
50003262018-01-30 14:58:582402 days ago1517324338
0x8ac03A33...3043AB4B0
8 ETH
50003252018-01-30 14:58:502402 days ago1517324330
0x8ac03A33...3043AB4B0
0.28 ETH
50003212018-01-30 14:58:102402 days ago1517324290
0x8ac03A33...3043AB4B0
1 ETH
50003182018-01-30 14:57:322402 days ago1517324252
0x8ac03A33...3043AB4B0
0.22 ETH
50003082018-01-30 14:54:382402 days ago1517324078
0x8ac03A33...3043AB4B0
0.5 ETH
50003062018-01-30 14:53:482402 days ago1517324028
0x8ac03A33...3043AB4B0
0.68 ETH
50003062018-01-30 14:53:482402 days ago1517324028
0x8ac03A33...3043AB4B0
0.21 ETH
50003052018-01-30 14:53:312402 days ago1517324011
0x8ac03A33...3043AB4B0
10 ETH
50003042018-01-30 14:53:062402 days ago1517323986
0x8ac03A33...3043AB4B0
0.33 ETH
50003022018-01-30 14:51:462402 days ago1517323906
0x8ac03A33...3043AB4B0
0.25 ETH
50003012018-01-30 14:51:142402 days ago1517323874
0x8ac03A33...3043AB4B0
1 ETH
50002732018-01-30 14:45:272402 days ago1517323527
0x8ac03A33...3043AB4B0
5 ETH
50002532018-01-30 14:41:242402 days ago1517323284
0x8ac03A33...3043AB4B0
1.64144 ETH
50002512018-01-30 14:41:102402 days ago1517323270
0x8ac03A33...3043AB4B0
1 ETH
50002502018-01-30 14:40:582402 days ago1517323258
0x8ac03A33...3043AB4B0
0.49 ETH
50002492018-01-30 14:40:002402 days ago1517323200
0x8ac03A33...3043AB4B0
1.52 ETH
50002452018-01-30 14:39:172402 days ago1517323157
0x8ac03A33...3043AB4B0
1.4893277 ETH
50002452018-01-30 14:39:172402 days ago1517323157
0x8ac03A33...3043AB4B0
0.25 ETH
50002402018-01-30 14:38:072402 days ago1517323087
0x8ac03A33...3043AB4B0
0.9 ETH
50002392018-01-30 14:37:512402 days ago1517323071
0x8ac03A33...3043AB4B0
0.21 ETH
50002322018-01-30 14:36:532402 days ago1517323013
0x8ac03A33...3043AB4B0
0.988794 ETH
50002252018-01-30 14:35:252402 days ago1517322925
0x8ac03A33...3043AB4B0
0.33 ETH
50002222018-01-30 14:34:282402 days ago1517322868
0x8ac03A33...3043AB4B0
2 ETH
50002172018-01-30 14:33:182402 days ago1517322798
0x8ac03A33...3043AB4B0
0.47174082 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KYCCrowdsale

Compiler Version
v0.4.16+commit.d7661dd9

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2017-11-10
*/

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */


/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */




/**
 * @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() {
    owner = msg.sender;
  }


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


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

}


/*
 * Haltable
 *
 * Abstract contract that allows children to implement an
 * emergency stop mechanism. Differs from Pausable by causing a throw when in halt mode.
 *
 *
 * Originally envisioned in FirstBlood ICO contract.
 */
contract Haltable is Ownable {
  bool public halted;

  modifier stopInEmergency {
    if (halted) throw;
    _;
  }

  modifier stopNonOwnersInEmergency {
    if (halted && msg.sender != owner) throw;
    _;
  }

  modifier onlyInEmergency {
    if (!halted) throw;
    _;
  }

  // called by the owner on emergency, triggers stopped state
  function halt() external onlyOwner {
    halted = true;
  }

  // called by the owner on end of emergency, returns to normal state
  function unhalt() external onlyOwner onlyInEmergency {
    halted = false;
  }

}

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */


/**
 * Safe unsigned safe math.
 *
 * https://blog.aragon.one/library-driven-development-in-solidity-2bebcaf88736#.750gwtwli
 *
 * Originally from https://raw.githubusercontent.com/AragonOne/zeppelin-solidity/master/contracts/SafeMathLib.sol
 *
 * Maintained here until merged to mainline zeppelin-solidity.
 *
 */
library SafeMathLib {

  function times(uint a, uint b) returns (uint) {
    uint c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function minus(uint a, uint b) returns (uint) {
    assert(b <= a);
    return a - b;
  }

  function plus(uint a, uint b) returns (uint) {
    uint c = a + b;
    assert(c>=a);
    return c;
  }

}

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */






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



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


/**
 * A token that defines fractional units as decimals.
 */
contract FractionalERC20 is ERC20 {

  uint public decimals;

}

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */


/**
 * Interface for defining crowdsale pricing.
 */
contract PricingStrategy {

  /** Interface declaration. */
  function isPricingStrategy() public constant returns (bool) {
    return true;
  }

  /** Self check if all references are correctly set.
   *
   * Checks that pricing strategy matches crowdsale parameters.
   */
  function isSane(address crowdsale) public constant returns (bool) {
    return true;
  }

  /**
   * @dev Pricing tells if this is a presale purchase or not.
     @param purchaser Address of the purchaser
     @return False by default, true if a presale purchaser
   */
  function isPresalePurchase(address purchaser) public constant returns (bool) {
    return false;
  }

  /**
   * When somebody tries to buy tokens for X eth, calculate how many tokens they get.
   *
   *
   * @param value - What is the value of the transaction send in as wei
   * @param tokensSold - how much tokens have been sold this far
   * @param weiRaised - how much money has been raised this far in the main token sale - this number excludes presale
   * @param msgSender - who is the investor of this transaction
   * @param decimals - how many decimal units the token has
   * @return Amount of tokens the investor receives
   */
  function calculatePrice(uint value, uint weiRaised, uint tokensSold, address msgSender, uint decimals) public constant returns (uint tokenAmount);
}

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */


/**
 * Finalize agent defines what happens at the end of succeseful crowdsale.
 *
 * - Allocate tokens for founders, bounties and community
 * - Make tokens transferable
 * - etc.
 */
contract FinalizeAgent {

  function isFinalizeAgent() public constant returns(bool) {
    return true;
  }

  /** Return true if we can run finalizeCrowdsale() properly.
   *
   * This is a safety check function that doesn't allow crowdsale to begin
   * unless the finalizer has been set up properly.
   */
  function isSane() public constant returns (bool);

  /** Called once by crowdsale finalize() if the sale was success. */
  function finalizeCrowdsale();

}



/**
 * Crowdsale state machine without buy functionality.
 *
 * Implements basic state machine logic, but leaves out all buy functions,
 * so that subclasses can implement their own buying logic.
 *
 *
 * For the default buy() implementation see Crowdsale.sol.
 */
contract CrowdsaleBase is Haltable {

  /* Max investment count when we are still allowed to change the multisig address */
  uint public MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE = 5;

  using SafeMathLib for uint;

  /* The token we are selling */
  FractionalERC20 public token;

  /* How we are going to price our offering */
  PricingStrategy public pricingStrategy;

  /* Post-success callback */
  FinalizeAgent public finalizeAgent;

  /* tokens will be transfered from this address */
  address public multisigWallet;

  /* if the funding goal is not reached, investors may withdraw their funds */
  uint public minimumFundingGoal;

  /* the UNIX timestamp start date of the crowdsale */
  uint public startsAt;

  /* the UNIX timestamp end date of the crowdsale */
  uint public endsAt;

  /* the number of tokens already sold through this contract*/
  uint public tokensSold = 0;

  /* How many wei of funding we have raised */
  uint public weiRaised = 0;

  /* Calculate incoming funds from presale contracts and addresses */
  uint public presaleWeiRaised = 0;

  /* How many distinct addresses have invested */
  uint public investorCount = 0;

  /* How much wei we have returned back to the contract after a failed crowdfund. */
  uint public loadedRefund = 0;

  /* How much wei we have given back to investors.*/
  uint public weiRefunded = 0;

  /* Has this crowdsale been finalized */
  bool public finalized;

  /** How much ETH each address has invested to this crowdsale */
  mapping (address => uint256) public investedAmountOf;

  /** How much tokens this crowdsale has credited for each investor address */
  mapping (address => uint256) public tokenAmountOf;

  /** Addresses that are allowed to invest even before ICO offical opens. For testing, for ICO partners, etc. */
  mapping (address => bool) public earlyParticipantWhitelist;

  /** This is for manul testing for the interaction from owner wallet. You can set it to any value and inspect this in blockchain explorer to see that crowdsale interaction works. */
  uint public ownerTestValue;

  /** State machine
   *
   * - Preparing: All contract initialization calls and variables have not been set yet
   * - Prefunding: We have not passed start time yet
   * - Funding: Active crowdsale
   * - Success: Minimum funding goal reached
   * - Failure: Minimum funding goal not reached before ending time
   * - Finalized: The finalized has been called and succesfully executed
   * - Refunding: Refunds are loaded on the contract for reclaim.
   */
  enum State{Unknown, Preparing, PreFunding, Funding, Success, Failure, Finalized, Refunding}

  // A new investment was made
  event Invested(address investor, uint weiAmount, uint tokenAmount, uint128 customerId);

  // Refund was processed for a contributor
  event Refund(address investor, uint weiAmount);

  // The rules were changed what kind of investments we accept
  event InvestmentPolicyChanged(bool newRequireCustomerId, bool newRequiredSignedAddress, address newSignerAddress);

  // Address early participation whitelist status changed
  event Whitelisted(address addr, bool status);

  // Crowdsale end time has been changed
  event EndsAtChanged(uint newEndsAt);

  State public testState;

  function CrowdsaleBase(address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal) {

    owner = msg.sender;

    token = FractionalERC20(_token);

    setPricingStrategy(_pricingStrategy);

    multisigWallet = _multisigWallet;
    if(multisigWallet == 0) {
        throw;
    }

    if(_start == 0) {
        throw;
    }

    startsAt = _start;

    if(_end == 0) {
        throw;
    }

    endsAt = _end;

    // Don't mess the dates
    if(startsAt >= endsAt) {
        throw;
    }

    // Minimum funding goal can be zero
    minimumFundingGoal = _minimumFundingGoal;
  }

  /**
   * Don't expect to just send in money and get tokens.
   */
  function() payable {
    throw;
  }

  /**
   * Make an investment.
   *
   * Crowdsale must be running for one to invest.
   * We must have not pressed the emergency brake.
   *
   * @param receiver The Ethereum address who receives the tokens
   * @param customerId (optional) UUID v4 to track the successful payments on the server side'
   *
   * @return tokenAmount How mony tokens were bought
   */
  function investInternal(address receiver, uint128 customerId) stopInEmergency internal returns(uint tokensBought) {

    // Determine if it's a good time to accept investment from this participant
    if(getState() == State.PreFunding) {
      // Are we whitelisted for early deposit
      if(!earlyParticipantWhitelist[receiver]) {
        throw;
      }
    } else if(getState() == State.Funding) {
      // Retail participants can only come in when the crowdsale is running
      // pass
    } else {
      // Unwanted state
      throw;
    }

    uint weiAmount = msg.value;

    // Account presale sales separately, so that they do not count against pricing tranches
    uint tokenAmount = pricingStrategy.calculatePrice(weiAmount, weiRaised - presaleWeiRaised, tokensSold, msg.sender, token.decimals());

    // Dust transaction
    require(tokenAmount != 0);

    if(investedAmountOf[receiver] == 0) {
       // A new investor
       investorCount++;
    }

    // Update investor
    investedAmountOf[receiver] = investedAmountOf[receiver].plus(weiAmount);
    tokenAmountOf[receiver] = tokenAmountOf[receiver].plus(tokenAmount);

    // Update totals
    weiRaised = weiRaised.plus(weiAmount);
    tokensSold = tokensSold.plus(tokenAmount);

    if(pricingStrategy.isPresalePurchase(receiver)) {
        presaleWeiRaised = presaleWeiRaised.plus(weiAmount);
    }

    // Check that we did not bust the cap
    require(!isBreakingCap(weiAmount, tokenAmount, weiRaised, tokensSold));

    assignTokens(receiver, tokenAmount);

    // Pocket the money, or fail the crowdsale if we for some reason cannot send the money to our multisig
    if(!multisigWallet.send(weiAmount)) throw;

    // Tell us invest was success
    Invested(receiver, weiAmount, tokenAmount, customerId);

    return tokenAmount;
  }

  /**
   * Finalize a succcesful crowdsale.
   *
   * The owner can triggre a call the contract that provides post-crowdsale actions, like releasing the tokens.
   */
  function finalize() public inState(State.Success) onlyOwner stopInEmergency {

    // Already finalized
    if(finalized) {
      throw;
    }

    // Finalizing is optional. We only call it if we are given a finalizing agent.
    if(address(finalizeAgent) != 0) {
      finalizeAgent.finalizeCrowdsale();
    }

    finalized = true;
  }

  /**
   * Allow to (re)set finalize agent.
   *
   * Design choice: no state restrictions on setting this, so that we can fix fat finger mistakes.
   */
  function setFinalizeAgent(FinalizeAgent addr) onlyOwner {
    finalizeAgent = addr;

    // Don't allow setting bad agent
    if(!finalizeAgent.isFinalizeAgent()) {
      throw;
    }
  }

  /**
   * Allow crowdsale owner to close early or extend the crowdsale.
   *
   * This is useful e.g. for a manual soft cap implementation:
   * - after X amount is reached determine manual closing
   *
   * This may put the crowdsale to an invalid state,
   * but we trust owners know what they are doing.
   *
   */
  function setEndsAt(uint time) onlyOwner {

    if(now > time) {
      throw; // Don't change past
    }

    if(startsAt > time) {
      throw; // Prevent human mistakes
    }

    endsAt = time;
    EndsAtChanged(endsAt);
  }

  /**
   * Allow to (re)set pricing strategy.
   *
   * Design choice: no state restrictions on the set, so that we can fix fat finger mistakes.
   */
  function setPricingStrategy(PricingStrategy _pricingStrategy) onlyOwner {
    pricingStrategy = _pricingStrategy;

    // Don't allow setting bad agent
    if(!pricingStrategy.isPricingStrategy()) {
      throw;
    }
  }

  /**
   * Allow to change the team multisig address in the case of emergency.
   *
   * This allows to save a deployed crowdsale wallet in the case the crowdsale has not yet begun
   * (we have done only few test transactions). After the crowdsale is going
   * then multisig address stays locked for the safety reasons.
   */
  function setMultisig(address addr) public onlyOwner {

    // Change
    if(investorCount > MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE) {
      throw;
    }

    multisigWallet = addr;
  }

  /**
   * Allow load refunds back on the contract for the refunding.
   *
   * The team can transfer the funds back on the smart contract in the case the minimum goal was not reached..
   */
  function loadRefund() public payable inState(State.Failure) {
    if(msg.value == 0) throw;
    loadedRefund = loadedRefund.plus(msg.value);
  }

  /**
   * Investors can claim refund.
   *
   * Note that any refunds from proxy buyers should be handled separately,
   * and not through this contract.
   */
  function refund() public inState(State.Refunding) {
    uint256 weiValue = investedAmountOf[msg.sender];
    if (weiValue == 0) throw;
    investedAmountOf[msg.sender] = 0;
    weiRefunded = weiRefunded.plus(weiValue);
    Refund(msg.sender, weiValue);
    if (!msg.sender.send(weiValue)) throw;
  }

  /**
   * @return true if the crowdsale has raised enough money to be a successful.
   */
  function isMinimumGoalReached() public constant returns (bool reached) {
    return weiRaised >= minimumFundingGoal;
  }

  /**
   * Check if the contract relationship looks good.
   */
  function isFinalizerSane() public constant returns (bool sane) {
    return finalizeAgent.isSane();
  }

  /**
   * Check if the contract relationship looks good.
   */
  function isPricingSane() public constant returns (bool sane) {
    return pricingStrategy.isSane(address(this));
  }

  /**
   * Crowdfund state machine management.
   *
   * We make it a function and do not assign the result to a variable, so there is no chance of the variable being stale.
   */
  function getState() public constant returns (State) {
    if(finalized) return State.Finalized;
    else if (address(finalizeAgent) == 0) return State.Preparing;
    else if (!finalizeAgent.isSane()) return State.Preparing;
    else if (!pricingStrategy.isSane(address(this))) return State.Preparing;
    else if (block.timestamp < startsAt) return State.PreFunding;
    else if (block.timestamp <= endsAt && !isCrowdsaleFull()) return State.Funding;
    else if (isMinimumGoalReached()) return State.Success;
    else if (!isMinimumGoalReached() && weiRaised > 0 && loadedRefund >= weiRaised) return State.Refunding;
    else return State.Failure;
  }

  /** This is for manual testing of multisig wallet interaction */
  function setOwnerTestValue(uint val) onlyOwner {
    ownerTestValue = val;
  }

  /**
   * Allow addresses to do early participation.
   *
   * TODO: Fix spelling error in the name
   */
  function setEarlyParicipantWhitelist(address addr, bool status) onlyOwner {
    earlyParticipantWhitelist[addr] = status;
    Whitelisted(addr, status);
  }


  /** Interface marker. */
  function isCrowdsale() public constant returns (bool) {
    return true;
  }

  //
  // Modifiers
  //

  /** Modified allowing execution only if the crowdsale is currently running.  */
  modifier inState(State state) {
    if(getState() != state) throw;
    _;
  }


  //
  // Abstract functions
  //

  /**
   * Check if the current invested breaks our cap rules.
   *
   *
   * The child contract must define their own cap setting rules.
   * We allow a lot of flexibility through different capping strategies (ETH, token count)
   * Called from invest().
   *
   * @param weiAmount The amount of wei the investor tries to invest in the current transaction
   * @param tokenAmount The amount of tokens we try to give to the investor in the current transaction
   * @param weiRaisedTotal What would be our total raised balance after this transaction
   * @param tokensSoldTotal What would be our total sold tokens count after this transaction
   *
   * @return true if taking this investment would break our cap rules
   */
  function isBreakingCap(uint weiAmount, uint tokenAmount, uint weiRaisedTotal, uint tokensSoldTotal) constant returns (bool limitBroken);

  /**
   * Check if the current crowdsale is full and we can no longer sell any tokens.
   */
  function isCrowdsaleFull() public constant returns (bool);

  /**
   * Create new tokens or transfer issued tokens to the investor depending on the cap model.
   */
  function assignTokens(address receiver, uint tokenAmount) internal;
}

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */




/**
 * A mixin that is selling tokens from a preallocated pool
 *
 * - Tokens have precreated supply "premined"
 *
 * - Token owner must transfer sellable tokens to the crowdsale contract using ERC20.approve()
 *
 * - The mixin does not implement buy entry point.
 *
 */
contract AllocatedCrowdsaleMixin is CrowdsaleBase {

  /* The party who holds the full token pool and has approve()'ed tokens for this crowdsale */
  address public beneficiary;

  /**
   * @param _beneficiary The account who has performed approve() to allocate tokens for the token sale.
   *
   */
  function AllocatedCrowdsaleMixin(address _beneficiary) {
    beneficiary = _beneficiary;
  }

  /**
   * Called from invest() to confirm if the curret investment does not break our cap rule.
   */
  function isBreakingCap(uint weiAmount, uint tokenAmount, uint weiRaisedTotal, uint tokensSoldTotal) constant returns (bool limitBroken) {
    if(tokenAmount > getTokensLeft()) {
      return true;
    } else {
      return false;
    }
  }

  /**
   * We are sold out when our approve pool becomes empty.
   */
  function isCrowdsaleFull() public constant returns (bool) {
    return getTokensLeft() == 0;
  }

  /**
   * Get the amount of unsold tokens allocated to this contract;
   */
  function getTokensLeft() public constant returns (uint) {
    return token.allowance(owner, this);
  }

  /**
   * Transfer tokens from approve() pool to the buyer.
   *
   * Use approve() given to this crowdsale to distribute the tokens.
   */
  function assignTokens(address receiver, uint tokenAmount) internal {
    if(!token.transferFrom(beneficiary, receiver, tokenAmount)) throw;
  }
}

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */


/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */

/**
 * Deserialize bytes payloads.
 *
 * Values are in big-endian byte order.
 *
 */
library BytesDeserializer {

  /**
   * Extract 256-bit worth of data from the bytes stream.
   */
  function slice32(bytes b, uint offset) constant returns (bytes32) {
    bytes32 out;

    for (uint i = 0; i < 32; i++) {
      out |= bytes32(b[offset + i] & 0xFF) >> (i * 8);
    }
    return out;
  }

  /**
   * Extract Ethereum address worth of data from the bytes stream.
   */
  function sliceAddress(bytes b, uint offset) constant returns (address) {
    bytes32 out;

    for (uint i = 0; i < 20; i++) {
      out |= bytes32(b[offset + i] & 0xFF) >> ((i+12) * 8);
    }
    return address(uint(out));
  }

  /**
   * Extract 128-bit worth of data from the bytes stream.
   */
  function slice16(bytes b, uint offset) constant returns (bytes16) {
    bytes16 out;

    for (uint i = 0; i < 16; i++) {
      out |= bytes16(b[offset + i] & 0xFF) >> (i * 8);
    }
    return out;
  }

  /**
   * Extract 32-bit worth of data from the bytes stream.
   */
  function slice4(bytes b, uint offset) constant returns (bytes4) {
    bytes4 out;

    for (uint i = 0; i < 4; i++) {
      out |= bytes4(b[offset + i] & 0xFF) >> (i * 8);
    }
    return out;
  }

  /**
   * Extract 16-bit worth of data from the bytes stream.
   */
  function slice2(bytes b, uint offset) constant returns (bytes2) {
    bytes2 out;

    for (uint i = 0; i < 2; i++) {
      out |= bytes2(b[offset + i] & 0xFF) >> (i * 8);
    }
    return out;
  }



}


/**
 * A mix-in contract to decode different AML payloads.
 *
 * @notice This should be a library, but for the complexity and toolchain fragility risks involving of linking library inside library, we put this as a mix-in.
 */
contract KYCPayloadDeserializer {

  using BytesDeserializer for bytes;

  // The bytes payload set on the server side
  // total 56 bytes

  struct KYCPayload {

    /** Customer whitelisted address where the deposit can come from */
    address whitelistedAddress; // 20 bytes

    /** Customer id, UUID v4 */
    uint128 customerId; // 16 bytes

    /**
     * Min amount this customer needs to invest in ETH. Set zero if no minimum. Expressed as parts of 10000. 1 ETH = 10000.
     * @notice Decided to use 32-bit words to make the copy-pasted Data field for the ICO transaction less lenghty.
     */
    uint32 minETH; // 4 bytes

    /** Max amount this customer can to invest in ETH. Set zero if no maximum. Expressed as parts of 10000. 1 ETH = 10000. */
    uint32 maxETH; // 4 bytes
  }

  /**
   * Deconstruct server-side byte data to structured data.
   */

  function deserializeKYCPayload(bytes dataframe) internal constant returns(KYCPayload decodedPayload) {
    KYCPayload payload;
    payload.whitelistedAddress = dataframe.sliceAddress(0);
    payload.customerId = uint128(dataframe.slice16(20));
    payload.minETH = uint32(dataframe.slice4(36));
    payload.maxETH = uint32(dataframe.slice4(40));
    return payload;
  }

  /**
   * Helper function to allow us to return the decoded payload to an external caller for testing.
   *
   * TODO: Some sort of compiler issue (?) with memory keyword. Tested with solc 0.4.16 and solc 0.4.18.
   * If used, makes KYCCrowdsale to set itself to a bad state getState() returns 5 (Failure). Overrides some memory?
   */
  /*
  function broken_getKYCPayload(bytes dataframe) public constant returns(address whitelistedAddress, uint128 customerId, uint32 minEth, uint32 maxEth) {
    KYCPayload memory payload = deserializeKYCPayload(dataframe);
    payload.whitelistedAddress = dataframe.sliceAddress(0);
    payload.customerId = uint128(dataframe.slice16(20));
    payload.minETH = uint32(dataframe.slice4(36));
    payload.maxETH = uint32(dataframe.slice4(40));
    return (payload.whitelistedAddress, payload.customerId, payload.minETH, payload.maxETH);
  }*/

  /**
   * Same as above, does not seem to cause any issue.
   */
  function getKYCPayload(bytes dataframe) public constant returns(address whitelistedAddress, uint128 customerId, uint32 minEth, uint32 maxEth) {
    address _whitelistedAddress = dataframe.sliceAddress(0);
    uint128 _customerId = uint128(dataframe.slice16(20));
    uint32 _minETH = uint32(dataframe.slice4(36));
    uint32 _maxETH = uint32(dataframe.slice4(40));
    return (_whitelistedAddress, _customerId, _minETH, _maxETH);
  }

}


/**
 * A crowdsale that allows only signed payload with server-side specified buy in limits.
 *
 *
 * The token distribution happens as in the allocated crowdsale.
 *
 */
contract KYCCrowdsale is AllocatedCrowdsaleMixin, KYCPayloadDeserializer {

  /* Server holds the private key to this address to decide if the AML payload is valid or not. */
  address public signerAddress;

  /* A new server-side signer key was set to be effective */
  event SignerChanged(address signer);

  /**
   * Constructor.
   */
  function KYCCrowdsale(address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal, address _beneficiary) CrowdsaleBase(_token, _pricingStrategy, _multisigWallet, _start, _end, _minimumFundingGoal) AllocatedCrowdsaleMixin(_beneficiary) {

  }

  /**
   * A token purchase with anti-money laundering
   *
   * ©return tokenAmount How many tokens where bought
   */
  function buyWithKYCData(bytes dataframe, uint8 v, bytes32 r, bytes32 s) public payable returns(uint tokenAmount) {

    uint _tokenAmount;
    uint multiplier = 10 ** 18;

    // Perform signature check for normal addresses
    // (not deployment accounts, etc.)
    if(earlyParticipantWhitelist[msg.sender]) {
      // For test purchases use this faux customer id
      _tokenAmount = investInternal(msg.sender, 0x1000);

    } else {

      bytes32 hash = sha256(dataframe);

      var (whitelistedAddress, customerId, minETH, maxETH) = getKYCPayload(dataframe);

      // Check that the KYC data is signed by our server
      require(ecrecover(hash, v, r, s) == signerAddress);

      // Only whitelisted address can participate the transaction
      require(whitelistedAddress == msg.sender);

      _tokenAmount = investInternal(msg.sender, customerId);

    }

    if(!earlyParticipantWhitelist[msg.sender]) {
      // We assume there is no serious min and max fluctuations for the customer, unless
      // especially set in the server side per customer manual override.
      // Otherwise the customer can reuse old data payload with different min or max value
      // to work around the per customer cap.
      require(investedAmountOf[msg.sender] >= minETH * multiplier / 10000);
      require(investedAmountOf[msg.sender] <= maxETH * multiplier / 10000);
    }

    return _tokenAmount;
  }

  /// @dev This function can set the server side address
  /// @param _signerAddress The address derived from server's private key
  function setSignerAddress(address _signerAddress) onlyOwner {
    signerAddress = _signerAddress;
    SignerChanged(signerAddress);
  }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"ownerTestValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isPricingSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"endsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minimumFundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"setFinalizeAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"investedAmountOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finalizeAgent","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isCrowdsale","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_pricingStrategy","type":"address"}],"name":"setPricingStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"testState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"signerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRefunded","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"halt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"time","type":"uint256"}],"name":"setEndsAt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"dataframe","type":"bytes"}],"name":"getKYCPayload","outputs":[{"name":"whitelistedAddress","type":"address"},{"name":"customerId","type":"uint128"},{"name":"minEth","type":"uint32"},{"name":"maxEth","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pricingStrategy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"loadedRefund","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isMinimumGoalReached","outputs":[{"name":"reached","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"loadRefund","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"val","type":"uint256"}],"name":"setOwnerTestValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"multisigWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"tokenAmountOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"weiAmount","type":"uint256"},{"name":"tokenAmount","type":"uint256"},{"name":"weiRaisedTotal","type":"uint256"},{"name":"tokensSoldTotal","type":"uint256"}],"name":"isBreakingCap","outputs":[{"name":"limitBroken","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isFinalizerSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"halted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"earlyParticipantWhitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unhalt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isCrowdsaleFull","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dataframe","type":"bytes"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"buyWithKYCData","outputs":[{"name":"tokenAmount","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"investorCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTokensLeft","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"status","type":"bool"}],"name":"setEarlyParicipantWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"setMultisig","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"presaleWeiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_pricingStrategy","type":"address"},{"name":"_multisigWallet","type":"address"},{"name":"_start","type":"uint256"},{"name":"_end","type":"uint256"},{"name":"_minimumFundingGoal","type":"uint256"},{"name":"_beneficiary","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"signer","type":"address"}],"name":"SignerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"},{"indexed":false,"name":"tokenAmount","type":"uint256"},{"indexed":false,"name":"customerId","type":"uint128"}],"name":"Invested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequireCustomerId","type":"bool"},{"indexed":false,"name":"newRequiredSignedAddress","type":"bool"},{"indexed":false,"name":"newSignerAddress","type":"address"}],"name":"InvestmentPolicyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"status","type":"bool"}],"name":"Whitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newEndsAt","type":"uint256"}],"name":"EndsAtChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6060604052600560015560006009556000600a556000600b556000600c556000600d556000600e5534156200003357600080fd5b60405160e0806200252d833981016040528080519190602001805191906020018051919060200180519190602001805191906020018051919060200180519150505b805b8787878787875b5b60008054600160a060020a03191633600160a060020a03161790555b60008054600160a060020a03338116600160a060020a0319928316179092556002805492891692909116919091179055620000e48564010000000062000e806200018282021704565b60058054600160a060020a031916600160a060020a0386811691909117918290551615156200011257600080fd5b8215156200011f57600080fd5b60078390558115156200013157600080fd5b60088290556007548290106200014657600080fd5b60068190555b50506014805461010060a860020a031916610100600160a060020a03881602179055505050505b505b5050505050505062000243565b60005433600160a060020a039081169116146200019e57600080fd5b60038054600160a060020a031916600160a060020a038381169190911791829055166304bbc2556000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156200021657600080fd5b6102c65a03f115156200022857600080fd5b5050506040518051905015156200023e57600080fd5b5b5b50565b6122da80620002536000396000f3006060604052361561021f5763ffffffff60e060020a6000350416630226401d8114610227578063046dc1661461024c578063062b01ce1461026d5780630a09284a1461029457806313f4e977146102b95780631865c57d146102de57806319b667da146103155780631aae34601461033657806321d5c0f61461036757806338af3eed146103965780634042b66f146103c55780634551dd59146103ea5780634bb278f31461041157806350c6773414610426578063518ab2a814610447578063579506971461046c578063590e1ae3146104a35780635b7633d0146104b85780635da89ac0146104e75780635ed7ca5b1461050c5780636203f09f146105215780636e50eb3f1461054657806373752db41461055e57806378b99c24146105fd578063797d94371461062c5780637c2e08a31461065157806387612102146106785780638d51faec146106825780638da5cb5b1461069a5780639075becf146106c957806397b150ca146106f85780639d3c663f14610729578063a7ba44c31461075c578063af46868214610783578063b3f05b97146107a8578063b9b8af0b146107cf578063cb16e6d0146107f6578063cb3e64fd14610829578063d5d090211461083e578063d7c7159c14610865578063d7e64c00146108cd578063de5f9866146108f2578063eac2493214610917578063f2fde38b1461093d578063f3283fba1461095e578063f7c00e2f1461097f578063fc0c546a146109a4575b5b600080fd5b005b341561023257600080fd5b61023a6109d3565b60405190815260200160405180910390f35b341561025757600080fd5b610225600160a060020a03600435166109d9565b005b341561027857600080fd5b610280610a65565b604051901515815260200160405180910390f35b341561029f57600080fd5b61023a610ae0565b60405190815260200160405180910390f35b34156102c457600080fd5b61023a610ae6565b60405190815260200160405180910390f35b34156102e957600080fd5b6102f1610aec565b6040518082600781111561030157fe5b60ff16815260200191505060405180910390f35b341561032057600080fd5b610225600160a060020a0360043516610ca1565b005b341561034157600080fd5b61023a600160a060020a0360043516610d52565b60405190815260200160405180910390f35b341561037257600080fd5b61037a610d64565b604051600160a060020a03909116815260200160405180910390f35b34156103a157600080fd5b61037a610d73565b604051600160a060020a03909116815260200160405180910390f35b34156103d057600080fd5b61023a610d87565b60405190815260200160405180910390f35b34156103f557600080fd5b610280610d8d565b604051901515815260200160405180910390f35b341561041c57600080fd5b610225610d93565b005b341561043157600080fd5b610225600160a060020a0360043516610e80565b005b341561045257600080fd5b61023a610f31565b60405190815260200160405180910390f35b341561047757600080fd5b6102f1610f37565b6040518082600781111561030157fe5b60ff16815260200191505060405180910390f35b34156104ae57600080fd5b610225610f40565b005b34156104c357600080fd5b61037a61109e565b604051600160a060020a03909116815260200160405180910390f35b34156104f257600080fd5b61023a6110ad565b60405190815260200160405180910390f35b341561051757600080fd5b6102256110b3565b005b341561052c57600080fd5b61023a611107565b60405190815260200160405180910390f35b341561055157600080fd5b61022560043561110d565b005b341561056957600080fd5b6105af60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061118195505050505050565b604051600160a060020a0390941684526fffffffffffffffffffffffffffffffff909216602084015263ffffffff908116604080850191909152911660608301526080909101905180910390f35b341561060857600080fd5b61037a61154e565b604051600160a060020a03909116815260200160405180910390f35b341561063757600080fd5b61023a61155d565b60405190815260200160405180910390f35b341561065c57600080fd5b610280611563565b604051901515815260200160405180910390f35b61022561156f565b005b341561068d57600080fd5b610225600435611620565b005b34156106a557600080fd5b61037a611645565b604051600160a060020a03909116815260200160405180910390f35b34156106d457600080fd5b61037a611654565b604051600160a060020a03909116815260200160405180910390f35b341561070357600080fd5b61023a600160a060020a0360043516611663565b60405190815260200160405180910390f35b341561073457600080fd5b610280600435602435604435606435611675565b604051901515815260200160405180910390f35b341561076757600080fd5b61028061169b565b604051901515815260200160405180910390f35b341561078e57600080fd5b61023a611705565b60405190815260200160405180910390f35b34156107b357600080fd5b61028061170b565b604051901515815260200160405180910390f35b34156107da57600080fd5b610280611714565b604051901515815260200160405180910390f35b341561080157600080fd5b610280600160a060020a0360043516611735565b604051901515815260200160405180910390f35b341561083457600080fd5b61022561174a565b005b341561084957600080fd5b6102806117b1565b604051901515815260200160405180910390f35b61023a60046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496505060ff85351694602081013594506040013592506117c2915050565b60405190815260200160405180910390f35b34156108d857600080fd5b61023a611a02565b60405190815260200160405180910390f35b34156108fd57600080fd5b61023a611a08565b60405190815260200160405180910390f35b341561092257600080fd5b610225600160a060020a03600435166024351515611a92565b005b341561094857600080fd5b610225600160a060020a0360043516611b20565b005b341561096957600080fd5b610225600160a060020a0360043516611bb9565b005b341561098a57600080fd5b61023a611c12565b60405190815260200160405180910390f35b34156109af57600080fd5b61037a611c18565b604051600160a060020a03909116815260200160405180910390f35b60135481565b60005433600160a060020a039081169116146109f457600080fd5b6015805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290557f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d9116604051600160a060020a03909116815260200160405180910390a15b5b50565b600354600090600160a060020a0316638e76828830836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180519150505b90565b60085481565b60065481565b600f5460009060ff1615610b0257506006610add565b600454600160a060020a03161515610b1c57506001610add565b600454600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b6457600080fd5b6102c65a03f11515610b7557600080fd5b505050604051805190501515610b8d57506001610add565b600354600160a060020a0316638e7682883060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610be657600080fd5b6102c65a03f11515610bf757600080fd5b505050604051805190501515610c0f57506001610add565b600754421015610c2157506002610add565b6008544211158015610c385750610c366117b1565b155b15610c4557506003610add565b610c4d611563565b15610c5a57506004610add565b610c62611563565b158015610c7157506000600a54115b8015610c815750600a54600d5410155b15610c8e57506007610add565b506005610add565b5b5b5b5b5b5b5b5b90565b60005433600160a060020a03908116911614610cbc57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290551663614cb9046000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d2757600080fd5b6102c65a03f11515610d3857600080fd5b505050604051805190501515610a6157600080fd5b5b5b50565b60106020526000908152604090205481565b600454600160a060020a031681565b6014546101009004600160a060020a031681565b600a5481565b60015b90565b6004805b610d9f610aec565b6007811115610daa57fe5b14610db457600080fd5b60005433600160a060020a03908116911614610dcf57600080fd5b60005474010000000000000000000000000000000000000000900460ff1615610df757600080fd5b600f5460ff1615610e0757600080fd5b600454600160a060020a031615610e6c57600454600160a060020a0316630bf318a36040518163ffffffff1660e060020a028152600401600060405180830381600087803b1515610e5757600080fd5b6102c65a03f11515610e6857600080fd5b5050505b600f805460ff191660011790555b5b5b5b50565b60005433600160a060020a03908116911614610e9b57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055166304bbc2556000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d2757600080fd5b6102c65a03f11515610d3857600080fd5b505050604051805190501515610a6157600080fd5b5b5b50565b60095481565b60145460ff1681565b60006007805b610f4e610aec565b6007811115610f5957fe5b14610f6357600080fd5b600160a060020a0333166000908152601060205260409020549150811515610f8a57600080fd5b600160a060020a033316600090815260106020526040808220829055600e54739b3994937d5217c8fa3ed45cf06b5107ae9f78be926366098d4f92869190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561100657600080fd5b6102c65a03f4151561101757600080fd5b5050506040518051600e55507fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d3383604051600160a060020a03909216825260208201526040908101905180910390a1600160a060020a03331682156108fc0283604051600060405180830381858888f19350505050151561109857600080fd5b5b5b5050565b601554600160a060020a031681565b600e5481565b60005433600160a060020a039081169116146110ce57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790555b5b565b60015481565b60005433600160a060020a0390811691161461112857600080fd5b8042111561113557600080fd5b80600754111561114457600080fd5b60088190557fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3108160405190815260200160405180910390a15b5b50565b60008080808080808073d2ac8be3d27db796349ef314a6245460238d333b63b655e1388a8380604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156112045780820151818401525b6020016111eb565b50505050905090810190601f1680156112315780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561124e57600080fd5b6102c65a03f4151561125f57600080fd5b5050506040518051945073d2ac8be3d27db796349ef314a6245460238d333b90506316419aa78a60146000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156112e75780820151818401525b6020016112ce565b50505050905090810190601f1680156113145780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561133157600080fd5b6102c65a03f4151561134257600080fd5b50505060405180517001000000000000000000000000000000009004935073d2ac8be3d27db796349ef314a6245460238d333b905063d54dd8f98a60246000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156113de5780820151818401525b6020016113c5565b50505050905090810190601f16801561140b5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561142857600080fd5b6102c65a03f4151561143957600080fd5b505050604051805160e060020a9004925073d2ac8be3d27db796349ef314a6245460238d333b905063d54dd8f98a60286000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156114c85780820151818401525b6020016114af565b50505050905090810190601f1680156114f55780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561151257600080fd5b6102c65a03f4151561152357600080fd5b5050506040518051905060e060020a900490508383838397509750975097505b505050509193509193565b600354600160a060020a031681565b600d5481565b600654600a5410155b90565b6005805b61157b610aec565b600781111561158657fe5b1461159057600080fd5b34151561159c57600080fd5b600d54739b3994937d5217c8fa3ed45cf06b5107ae9f78be6366098d4f90913460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b15156115fe57600080fd5b6102c65a03f4151561160f57600080fd5b5050506040518051600d55505b5b50565b60005433600160a060020a0390811691161461163b57600080fd5b60138190555b5b50565b600054600160a060020a031681565b600554600160a060020a031681565b60116020526000908152604090205481565b600061167f611a08565b84111561168e57506001611692565b5060005b5b949350505050565b600454600090600160a060020a03166382771c8e82604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180519150505b90565b60075481565b600f5460ff1681565b60005474010000000000000000000000000000000000000000900460ff1681565b60126020526000908152604090205460ff1681565b60005433600160a060020a0390811691161461176557600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561178e57600080fd5b6000805474ff0000000000000000000000000000000000000000191690555b5b5b565b60006117bb611a08565b1590505b90565b600160a060020a0333166000908152601260205260408120548190670de0b6b3a7640000908290819081908190819060ff161561180c5761180533611000611c27565b9650611962565b60028c6000604051602001526040518082805190602001908083835b6020831061184857805182525b601f199092019160209182019101611828565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561188a57600080fd5b505060405180519050945061189e8c611181565b60155493975091955093509150600160a060020a03166001868d8d8d6040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561191957600080fd5b505060206040510351600160a060020a03161461193557600080fd5b33600160a060020a031684600160a060020a031614151561195557600080fd5b61195f3384611c27565b96505b600160a060020a03331660009081526012602052604090205460ff1615156119ee5761271063ffffffff831687025b600160a060020a0333166000908152601060205260409020549190049010156119b957600080fd5b61271063ffffffff821687025b600160a060020a0333166000908152601060205260409020549190049011156119ee57600080fd5b5b8697505b50505050505050949350505050565b600c5481565b600254600080549091600160a060020a039081169163dd62ed3e911630846040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614611aad57600080fd5b600160a060020a03821660009081526012602052604090819020805460ff19168315151790557fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440908390839051600160a060020a039092168252151560208201526040908101905180910390a15b5b5050565b60005433600160a060020a03908116911614611b3b57600080fd5b600160a060020a0381161515611b5057600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a03908116911614611bd457600080fd5b600154600c541115611be557600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600b5481565b600254600160a060020a031681565b600080548190819074010000000000000000000000000000000000000000900460ff1615611c5457600080fd5b60025b611c5f610aec565b6007811115611c6a57fe5b1415611c9c57600160a060020a03851660009081526012602052604090205460ff161515611c9757600080fd5b611cc2565b60035b611ca7610aec565b6007811115611cb257fe5b141561021f57611cc2565b600080fd5b5b600354600b54600a54600954600254349650600160a060020a03948516946318a4155e94889403929133911663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611d2b57600080fd5b6102c65a03f11515611d3c57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8816028152600481019590955260248501939093526044840191909152600160a060020a03166064830152608482015260a401602060405180830381600087803b1515611da857600080fd5b6102c65a03f11515611db957600080fd5b5050506040518051915050801515611dd057600080fd5b600160a060020a0385166000908152601060205260409020541515611df957600c805460010190555b600160a060020a03851660009081526010602052604080822054739b3994937d5217c8fa3ed45cf06b5107ae9f78be926366098d4f92869190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611e7057600080fd5b6102c65a03f41515611e8157600080fd5b5050506040518051600160a060020a0387166000908152601060209081526040808320939093556011905281812054739b3994937d5217c8fa3ed45cf06b5107ae9f78be93506366098d4f9290918591516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611f0f57600080fd5b6102c65a03f41515611f2057600080fd5b5050506040518051600160a060020a03871660009081526011602052604080822092909255600a54739b3994937d5217c8fa3ed45cf06b5107ae9f78be93506366098d4f9290918691516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611fa757600080fd5b6102c65a03f41515611fb857600080fd5b5050506040518051600a5550600954739b3994937d5217c8fa3ed45cf06b5107ae9f78be906366098d4f908360006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561202657600080fd5b6102c65a03f4151561203757600080fd5b505050604051805160095550600354600160a060020a031663f14ae17d8660006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561209c57600080fd5b6102c65a03f115156120ad57600080fd5b505050604051805190501561213c57600b54739b3994937d5217c8fa3ed45cf06b5107ae9f78be6366098d4f90918460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561211e57600080fd5b6102c65a03f4151561212f57600080fd5b5050506040518051600b55505b61214c8282600a54600954611675565b1561215657600080fd5b612160858261220b565b600554600160a060020a031682156108fc0283604051600060405180830381858888f19350505050151561219357600080fd5b7f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc4335085838387604051600160a060020a03909416845260208401929092526040808401919091526fffffffffffffffffffffffffffffffff90911660608301526080909101905180910390a18092505b5b505092915050565b600254601454600160a060020a03918216916323b872dd91610100900416848460006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561228357600080fd5b6102c65a03f1151561229457600080fd5b50505060405180519050151561109857600080fd5b5b50505600a165627a7a723058209353b542f73e6d527cfc3b09dff4e8cdb23d57b6f67a6b3fcaf98e9ce61af30e0029000000000000000000000000ca0e7269600d353f70b14ad118a49575455c0f2f00000000000000000000000071e01346e052c13b386e4baaa3070b6517304ed4000000000000000000000000519c5dcaa311ca31009a3fcc7e03f7b24a55ff42000000000000000000000000000000000000000000000000000000005a09cf90000000000000000000000000000000000000000000000000000000005a4917900000000000000000000000000000000000000000000000000000000000000001000000000000000000000000083f24c0e1220179da4a752363871f3a88479624

Deployed Bytecode

0x6060604052361561021f5763ffffffff60e060020a6000350416630226401d8114610227578063046dc1661461024c578063062b01ce1461026d5780630a09284a1461029457806313f4e977146102b95780631865c57d146102de57806319b667da146103155780631aae34601461033657806321d5c0f61461036757806338af3eed146103965780634042b66f146103c55780634551dd59146103ea5780634bb278f31461041157806350c6773414610426578063518ab2a814610447578063579506971461046c578063590e1ae3146104a35780635b7633d0146104b85780635da89ac0146104e75780635ed7ca5b1461050c5780636203f09f146105215780636e50eb3f1461054657806373752db41461055e57806378b99c24146105fd578063797d94371461062c5780637c2e08a31461065157806387612102146106785780638d51faec146106825780638da5cb5b1461069a5780639075becf146106c957806397b150ca146106f85780639d3c663f14610729578063a7ba44c31461075c578063af46868214610783578063b3f05b97146107a8578063b9b8af0b146107cf578063cb16e6d0146107f6578063cb3e64fd14610829578063d5d090211461083e578063d7c7159c14610865578063d7e64c00146108cd578063de5f9866146108f2578063eac2493214610917578063f2fde38b1461093d578063f3283fba1461095e578063f7c00e2f1461097f578063fc0c546a146109a4575b5b600080fd5b005b341561023257600080fd5b61023a6109d3565b60405190815260200160405180910390f35b341561025757600080fd5b610225600160a060020a03600435166109d9565b005b341561027857600080fd5b610280610a65565b604051901515815260200160405180910390f35b341561029f57600080fd5b61023a610ae0565b60405190815260200160405180910390f35b34156102c457600080fd5b61023a610ae6565b60405190815260200160405180910390f35b34156102e957600080fd5b6102f1610aec565b6040518082600781111561030157fe5b60ff16815260200191505060405180910390f35b341561032057600080fd5b610225600160a060020a0360043516610ca1565b005b341561034157600080fd5b61023a600160a060020a0360043516610d52565b60405190815260200160405180910390f35b341561037257600080fd5b61037a610d64565b604051600160a060020a03909116815260200160405180910390f35b34156103a157600080fd5b61037a610d73565b604051600160a060020a03909116815260200160405180910390f35b34156103d057600080fd5b61023a610d87565b60405190815260200160405180910390f35b34156103f557600080fd5b610280610d8d565b604051901515815260200160405180910390f35b341561041c57600080fd5b610225610d93565b005b341561043157600080fd5b610225600160a060020a0360043516610e80565b005b341561045257600080fd5b61023a610f31565b60405190815260200160405180910390f35b341561047757600080fd5b6102f1610f37565b6040518082600781111561030157fe5b60ff16815260200191505060405180910390f35b34156104ae57600080fd5b610225610f40565b005b34156104c357600080fd5b61037a61109e565b604051600160a060020a03909116815260200160405180910390f35b34156104f257600080fd5b61023a6110ad565b60405190815260200160405180910390f35b341561051757600080fd5b6102256110b3565b005b341561052c57600080fd5b61023a611107565b60405190815260200160405180910390f35b341561055157600080fd5b61022560043561110d565b005b341561056957600080fd5b6105af60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061118195505050505050565b604051600160a060020a0390941684526fffffffffffffffffffffffffffffffff909216602084015263ffffffff908116604080850191909152911660608301526080909101905180910390f35b341561060857600080fd5b61037a61154e565b604051600160a060020a03909116815260200160405180910390f35b341561063757600080fd5b61023a61155d565b60405190815260200160405180910390f35b341561065c57600080fd5b610280611563565b604051901515815260200160405180910390f35b61022561156f565b005b341561068d57600080fd5b610225600435611620565b005b34156106a557600080fd5b61037a611645565b604051600160a060020a03909116815260200160405180910390f35b34156106d457600080fd5b61037a611654565b604051600160a060020a03909116815260200160405180910390f35b341561070357600080fd5b61023a600160a060020a0360043516611663565b60405190815260200160405180910390f35b341561073457600080fd5b610280600435602435604435606435611675565b604051901515815260200160405180910390f35b341561076757600080fd5b61028061169b565b604051901515815260200160405180910390f35b341561078e57600080fd5b61023a611705565b60405190815260200160405180910390f35b34156107b357600080fd5b61028061170b565b604051901515815260200160405180910390f35b34156107da57600080fd5b610280611714565b604051901515815260200160405180910390f35b341561080157600080fd5b610280600160a060020a0360043516611735565b604051901515815260200160405180910390f35b341561083457600080fd5b61022561174a565b005b341561084957600080fd5b6102806117b1565b604051901515815260200160405180910390f35b61023a60046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496505060ff85351694602081013594506040013592506117c2915050565b60405190815260200160405180910390f35b34156108d857600080fd5b61023a611a02565b60405190815260200160405180910390f35b34156108fd57600080fd5b61023a611a08565b60405190815260200160405180910390f35b341561092257600080fd5b610225600160a060020a03600435166024351515611a92565b005b341561094857600080fd5b610225600160a060020a0360043516611b20565b005b341561096957600080fd5b610225600160a060020a0360043516611bb9565b005b341561098a57600080fd5b61023a611c12565b60405190815260200160405180910390f35b34156109af57600080fd5b61037a611c18565b604051600160a060020a03909116815260200160405180910390f35b60135481565b60005433600160a060020a039081169116146109f457600080fd5b6015805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290557f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d9116604051600160a060020a03909116815260200160405180910390a15b5b50565b600354600090600160a060020a0316638e76828830836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180519150505b90565b60085481565b60065481565b600f5460009060ff1615610b0257506006610add565b600454600160a060020a03161515610b1c57506001610add565b600454600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b6457600080fd5b6102c65a03f11515610b7557600080fd5b505050604051805190501515610b8d57506001610add565b600354600160a060020a0316638e7682883060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515610be657600080fd5b6102c65a03f11515610bf757600080fd5b505050604051805190501515610c0f57506001610add565b600754421015610c2157506002610add565b6008544211158015610c385750610c366117b1565b155b15610c4557506003610add565b610c4d611563565b15610c5a57506004610add565b610c62611563565b158015610c7157506000600a54115b8015610c815750600a54600d5410155b15610c8e57506007610add565b506005610add565b5b5b5b5b5b5b5b5b90565b60005433600160a060020a03908116911614610cbc57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290551663614cb9046000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d2757600080fd5b6102c65a03f11515610d3857600080fd5b505050604051805190501515610a6157600080fd5b5b5b50565b60106020526000908152604090205481565b600454600160a060020a031681565b6014546101009004600160a060020a031681565b600a5481565b60015b90565b6004805b610d9f610aec565b6007811115610daa57fe5b14610db457600080fd5b60005433600160a060020a03908116911614610dcf57600080fd5b60005474010000000000000000000000000000000000000000900460ff1615610df757600080fd5b600f5460ff1615610e0757600080fd5b600454600160a060020a031615610e6c57600454600160a060020a0316630bf318a36040518163ffffffff1660e060020a028152600401600060405180830381600087803b1515610e5757600080fd5b6102c65a03f11515610e6857600080fd5b5050505b600f805460ff191660011790555b5b5b5b50565b60005433600160a060020a03908116911614610e9b57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055166304bbc2556000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d2757600080fd5b6102c65a03f11515610d3857600080fd5b505050604051805190501515610a6157600080fd5b5b5b50565b60095481565b60145460ff1681565b60006007805b610f4e610aec565b6007811115610f5957fe5b14610f6357600080fd5b600160a060020a0333166000908152601060205260409020549150811515610f8a57600080fd5b600160a060020a033316600090815260106020526040808220829055600e54739b3994937d5217c8fa3ed45cf06b5107ae9f78be926366098d4f92869190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561100657600080fd5b6102c65a03f4151561101757600080fd5b5050506040518051600e55507fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d3383604051600160a060020a03909216825260208201526040908101905180910390a1600160a060020a03331682156108fc0283604051600060405180830381858888f19350505050151561109857600080fd5b5b5b5050565b601554600160a060020a031681565b600e5481565b60005433600160a060020a039081169116146110ce57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790555b5b565b60015481565b60005433600160a060020a0390811691161461112857600080fd5b8042111561113557600080fd5b80600754111561114457600080fd5b60088190557fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3108160405190815260200160405180910390a15b5b50565b60008080808080808073d2ac8be3d27db796349ef314a6245460238d333b63b655e1388a8380604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156112045780820151818401525b6020016111eb565b50505050905090810190601f1680156112315780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561124e57600080fd5b6102c65a03f4151561125f57600080fd5b5050506040518051945073d2ac8be3d27db796349ef314a6245460238d333b90506316419aa78a60146000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156112e75780820151818401525b6020016112ce565b50505050905090810190601f1680156113145780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561133157600080fd5b6102c65a03f4151561134257600080fd5b50505060405180517001000000000000000000000000000000009004935073d2ac8be3d27db796349ef314a6245460238d333b905063d54dd8f98a60246000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156113de5780820151818401525b6020016113c5565b50505050905090810190601f16801561140b5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561142857600080fd5b6102c65a03f4151561143957600080fd5b505050604051805160e060020a9004925073d2ac8be3d27db796349ef314a6245460238d333b905063d54dd8f98a60286000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156114c85780820151818401525b6020016114af565b50505050905090810190601f1680156114f55780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561151257600080fd5b6102c65a03f4151561152357600080fd5b5050506040518051905060e060020a900490508383838397509750975097505b505050509193509193565b600354600160a060020a031681565b600d5481565b600654600a5410155b90565b6005805b61157b610aec565b600781111561158657fe5b1461159057600080fd5b34151561159c57600080fd5b600d54739b3994937d5217c8fa3ed45cf06b5107ae9f78be6366098d4f90913460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b15156115fe57600080fd5b6102c65a03f4151561160f57600080fd5b5050506040518051600d55505b5b50565b60005433600160a060020a0390811691161461163b57600080fd5b60138190555b5b50565b600054600160a060020a031681565b600554600160a060020a031681565b60116020526000908152604090205481565b600061167f611a08565b84111561168e57506001611692565b5060005b5b949350505050565b600454600090600160a060020a03166382771c8e82604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180519150505b90565b60075481565b600f5460ff1681565b60005474010000000000000000000000000000000000000000900460ff1681565b60126020526000908152604090205460ff1681565b60005433600160a060020a0390811691161461176557600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561178e57600080fd5b6000805474ff0000000000000000000000000000000000000000191690555b5b5b565b60006117bb611a08565b1590505b90565b600160a060020a0333166000908152601260205260408120548190670de0b6b3a7640000908290819081908190819060ff161561180c5761180533611000611c27565b9650611962565b60028c6000604051602001526040518082805190602001908083835b6020831061184857805182525b601f199092019160209182019101611828565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561188a57600080fd5b505060405180519050945061189e8c611181565b60155493975091955093509150600160a060020a03166001868d8d8d6040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561191957600080fd5b505060206040510351600160a060020a03161461193557600080fd5b33600160a060020a031684600160a060020a031614151561195557600080fd5b61195f3384611c27565b96505b600160a060020a03331660009081526012602052604090205460ff1615156119ee5761271063ffffffff831687025b600160a060020a0333166000908152601060205260409020549190049010156119b957600080fd5b61271063ffffffff821687025b600160a060020a0333166000908152601060205260409020549190049011156119ee57600080fd5b5b8697505b50505050505050949350505050565b600c5481565b600254600080549091600160a060020a039081169163dd62ed3e911630846040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614611aad57600080fd5b600160a060020a03821660009081526012602052604090819020805460ff19168315151790557fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440908390839051600160a060020a039092168252151560208201526040908101905180910390a15b5b5050565b60005433600160a060020a03908116911614611b3b57600080fd5b600160a060020a0381161515611b5057600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a03908116911614611bd457600080fd5b600154600c541115611be557600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600b5481565b600254600160a060020a031681565b600080548190819074010000000000000000000000000000000000000000900460ff1615611c5457600080fd5b60025b611c5f610aec565b6007811115611c6a57fe5b1415611c9c57600160a060020a03851660009081526012602052604090205460ff161515611c9757600080fd5b611cc2565b60035b611ca7610aec565b6007811115611cb257fe5b141561021f57611cc2565b600080fd5b5b600354600b54600a54600954600254349650600160a060020a03948516946318a4155e94889403929133911663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611d2b57600080fd5b6102c65a03f11515611d3c57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8816028152600481019590955260248501939093526044840191909152600160a060020a03166064830152608482015260a401602060405180830381600087803b1515611da857600080fd5b6102c65a03f11515611db957600080fd5b5050506040518051915050801515611dd057600080fd5b600160a060020a0385166000908152601060205260409020541515611df957600c805460010190555b600160a060020a03851660009081526010602052604080822054739b3994937d5217c8fa3ed45cf06b5107ae9f78be926366098d4f92869190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611e7057600080fd5b6102c65a03f41515611e8157600080fd5b5050506040518051600160a060020a0387166000908152601060209081526040808320939093556011905281812054739b3994937d5217c8fa3ed45cf06b5107ae9f78be93506366098d4f9290918591516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611f0f57600080fd5b6102c65a03f41515611f2057600080fd5b5050506040518051600160a060020a03871660009081526011602052604080822092909255600a54739b3994937d5217c8fa3ed45cf06b5107ae9f78be93506366098d4f9290918691516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611fa757600080fd5b6102c65a03f41515611fb857600080fd5b5050506040518051600a5550600954739b3994937d5217c8fa3ed45cf06b5107ae9f78be906366098d4f908360006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561202657600080fd5b6102c65a03f4151561203757600080fd5b505050604051805160095550600354600160a060020a031663f14ae17d8660006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561209c57600080fd5b6102c65a03f115156120ad57600080fd5b505050604051805190501561213c57600b54739b3994937d5217c8fa3ed45cf06b5107ae9f78be6366098d4f90918460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561211e57600080fd5b6102c65a03f4151561212f57600080fd5b5050506040518051600b55505b61214c8282600a54600954611675565b1561215657600080fd5b612160858261220b565b600554600160a060020a031682156108fc0283604051600060405180830381858888f19350505050151561219357600080fd5b7f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc4335085838387604051600160a060020a03909416845260208401929092526040808401919091526fffffffffffffffffffffffffffffffff90911660608301526080909101905180910390a18092505b5b505092915050565b600254601454600160a060020a03918216916323b872dd91610100900416848460006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561228357600080fd5b6102c65a03f1151561229457600080fd5b50505060405180519050151561109857600080fd5b5b50505600a165627a7a723058209353b542f73e6d527cfc3b09dff4e8cdb23d57b6f67a6b3fcaf98e9ce61af30e0029

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

000000000000000000000000ca0e7269600d353f70b14ad118a49575455c0f2f00000000000000000000000071e01346e052c13b386e4baaa3070b6517304ed4000000000000000000000000519c5dcaa311ca31009a3fcc7e03f7b24a55ff42000000000000000000000000000000000000000000000000000000005a09cf90000000000000000000000000000000000000000000000000000000005a4917900000000000000000000000000000000000000000000000000000000000000001000000000000000000000000083f24c0e1220179da4a752363871f3a88479624

-----Decoded View---------------
Arg [0] : _token (address): 0xCA0e7269600d353F70b14Ad118A49575455C0f2f
Arg [1] : _pricingStrategy (address): 0x71e01346e052C13B386e4baAA3070b6517304eD4
Arg [2] : _multisigWallet (address): 0x519c5DcAa311Ca31009A3fcC7E03F7B24A55Ff42
Arg [3] : _start (uint256): 1510592400
Arg [4] : _end (uint256): 1514739600
Arg [5] : _minimumFundingGoal (uint256): 1
Arg [6] : _beneficiary (address): 0x083f24C0E1220179Da4a752363871f3a88479624

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000ca0e7269600d353f70b14ad118a49575455c0f2f
Arg [1] : 00000000000000000000000071e01346e052c13b386e4baaa3070b6517304ed4
Arg [2] : 000000000000000000000000519c5dcaa311ca31009a3fcc7e03f7b24a55ff42
Arg [3] : 000000000000000000000000000000000000000000000000000000005a09cf90
Arg [4] : 000000000000000000000000000000000000000000000000000000005a491790
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 000000000000000000000000083f24c0e1220179da4a752363871f3a88479624


Libraries Used

BytesDeserializer : 0xd2ac8be3d27db796349ef314a6245460238d333bUnverified

Swarm Source

bzzr://9353b542f73e6d527cfc3b09dff4e8cdb23d57b6f67a6b3fcaf98e9ce61af30e

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.