ETH Price: $1,925.07 (+1.60%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer64462292018-10-03 14:39:232351 days ago1538577563IN
0xD5c059c0...24A64a9a5
0.04 ETH0.0008839641
Transfer64458972018-10-03 13:14:352351 days ago1538572475IN
0xD5c059c0...24A64a9a5
0.00017 ETH0.0008839641
Transfer64458772018-10-03 13:09:402351 days ago1538572180IN
0xD5c059c0...24A64a9a5
0.001 ETH0.0008839641
Transfer64458652018-10-03 13:06:232351 days ago1538571983IN
0xD5c059c0...24A64a9a5
0.001 ETH0.00086141
Transfer62901862018-09-07 20:20:452377 days ago1536351645IN
0xD5c059c0...24A64a9a5
0.08311847 ETH0.0053800241
Transfer62896542018-09-07 18:11:422377 days ago1536343902IN
0xD5c059c0...24A64a9a5
0.04 ETH0.0053800241
Transfer62896292018-09-07 18:07:102377 days ago1536343630IN
0xD5c059c0...24A64a9a5
0.05 ETH0.0020541
Transfer62759502018-09-05 11:17:432380 days ago1536146263IN
0xD5c059c0...24A64a9a5
0.025 ETH0.0053800241
Transfer62573972018-09-02 8:36:012383 days ago1535877361IN
0xD5c059c0...24A64a9a5
0.141838 ETH0.0053800241
0x0619de7760111912018-07-22 17:50:222424 days ago1532281822IN
0xD5c059c0...24A64a9a5
0.04105783 ETH0.0088505441
0x0619de7759440762018-07-11 9:52:162436 days ago1531302736IN
0xD5c059c0...24A64a9a5
0.04866454 ETH0.0088505441
0x0619de7759396192018-07-10 15:20:482436 days ago1531236048IN
0xD5c059c0...24A64a9a5
0.02019425 ETH0.0129967941
Transfer59272332018-07-08 12:07:152439 days ago1531051635IN
0xD5c059c0...24A64a9a5
0.5 ETH0.007064458
Transfer59272312018-07-08 12:06:342439 days ago1531051594IN
0xD5c059c0...24A64a9a5
0.04 ETH0.001162210
Transfer58824692018-06-30 19:49:392446 days ago1530388179IN
0xD5c059c0...24A64a9a5
0.03 ETH0.001162210
Transfer58733872018-06-29 6:26:072448 days ago1530253567IN
0xD5c059c0...24A64a9a5
0.05 ETH0.001045989
Transfer58676712018-06-28 6:47:452449 days ago1530168465IN
0xD5c059c0...24A64a9a5
0.01 ETH0.0047650241
Transfer58648652018-06-27 19:02:152449 days ago1530126135IN
0xD5c059c0...24A64a9a5
0.05 ETH0.001045989
Transfer58526062018-06-25 15:57:112451 days ago1529942231IN
0xD5c059c0...24A64a9a5
0.002 ETH0.0047650241
Transfer58525252018-06-25 15:39:212451 days ago1529941161IN
0xD5c059c0...24A64a9a5
0.1 ETH0.0053800241
Transfer58519922018-06-25 13:28:482451 days ago1529933328IN
0xD5c059c0...24A64a9a5
0.97 ETH0.003347120
Transfer58519362018-06-25 13:14:442451 days ago1529932484IN
0xD5c059c0...24A64a9a5
0.03 ETH0.001162210
Transfer58517892018-06-25 12:39:162452 days ago1529930356IN
0xD5c059c0...24A64a9a5
0.9 ETH0.00320
Transfer58517692018-06-25 12:33:552452 days ago1529930035IN
0xD5c059c0...24A64a9a5
0.9 ETH0.0012458249.4375
Transfer58517262018-06-25 12:23:022452 days ago1529929382IN
0xD5c059c0...24A64a9a5
1 ETH0.0009505137.71875
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer62901862018-09-07 20:20:452377 days ago1536351645
0xD5c059c0...24A64a9a5
0.08311847 ETH
Transfer62896542018-09-07 18:11:422377 days ago1536343902
0xD5c059c0...24A64a9a5
0.04 ETH
Transfer62759502018-09-05 11:17:432380 days ago1536146263
0xD5c059c0...24A64a9a5
0.025 ETH
Transfer62573972018-09-02 8:36:012383 days ago1535877361
0xD5c059c0...24A64a9a5
0.141838 ETH
Transfer60111912018-07-22 17:50:222424 days ago1532281822
0xD5c059c0...24A64a9a5
0.04105783 ETH
Transfer59440762018-07-11 9:52:162436 days ago1531302736
0xD5c059c0...24A64a9a5
0.04866454 ETH
Transfer59396192018-07-10 15:20:482436 days ago1531236048
0xD5c059c0...24A64a9a5
0.02019425 ETH
Transfer59272332018-07-08 12:07:152439 days ago1531051635
0xD5c059c0...24A64a9a5
0.5 ETH
Transfer59272312018-07-08 12:06:342439 days ago1531051594
0xD5c059c0...24A64a9a5
0.04 ETH
Transfer58824692018-06-30 19:49:392446 days ago1530388179
0xD5c059c0...24A64a9a5
0.03 ETH
Transfer58733872018-06-29 6:26:072448 days ago1530253567
0xD5c059c0...24A64a9a5
0.05 ETH
Transfer58676712018-06-28 6:47:452449 days ago1530168465
0xD5c059c0...24A64a9a5
0.01 ETH
Transfer58648652018-06-27 19:02:152449 days ago1530126135
0xD5c059c0...24A64a9a5
0.05 ETH
Transfer58526062018-06-25 15:57:112451 days ago1529942231
0xD5c059c0...24A64a9a5
0.002 ETH
Transfer58525252018-06-25 15:39:212451 days ago1529941161
0xD5c059c0...24A64a9a5
0.1 ETH
Transfer58519922018-06-25 13:28:482451 days ago1529933328
0xD5c059c0...24A64a9a5
0.97 ETH
Transfer58519362018-06-25 13:14:442451 days ago1529932484
0xD5c059c0...24A64a9a5
0.03 ETH
Transfer58188622018-06-19 21:23:372457 days ago1529443417
0xD5c059c0...24A64a9a5
0.02754508 ETH
Transfer58185432018-06-19 20:01:342457 days ago1529438494
0xD5c059c0...24A64a9a5
0.03679548 ETH
Transfer58184262018-06-19 19:29:522457 days ago1529436592
0xD5c059c0...24A64a9a5
0.0008 ETH
Transfer58153052018-06-19 6:33:052458 days ago1529389985
0xD5c059c0...24A64a9a5
0.03 ETH
Transfer58128592018-06-18 20:44:462458 days ago1529354686
0xD5c059c0...24A64a9a5
0.0008 ETH
Transfer58109442018-06-18 12:57:422458 days ago1529326662
0xD5c059c0...24A64a9a5
0.0008 ETH
Transfer58090262018-06-18 4:57:032459 days ago1529297823
0xD5c059c0...24A64a9a5
0.0731452 ETH
Transfer57974882018-06-16 6:21:042461 days ago1529130064
0xD5c059c0...24A64a9a5
0.05919075 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FTICrowdsale

Compiler Version
v0.4.23+commit.124ca40d

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

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

pragma solidity ^0.4.23;



/**
 * @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 c) {
    if (a == 0) {
      return 0;
    }
    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 a / b;
  }

  /**
  * @dev Subtracts 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 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}





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


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


/**
 * @title Crowdsale
 * @dev Crowdsale is a base contract for managing a token crowdsale,
 * allowing investors to purchase tokens with ether. This contract implements
 * such functionality in its most fundamental form and can be extended to provide additional
 * functionality and/or custom behavior.
 * The external interface represents the basic interface for purchasing tokens, and conform
 * the base architecture for crowdsales. They are *not* intended to be modified / overriden.
 * The internal interface conforms the extensible and modifiable surface of crowdsales. Override
 * the methods to add functionality. Consider using 'super' where appropiate to concatenate
 * behavior.
 */
contract Crowdsale {
  using SafeMath for uint256;

  // The token being sold
  ERC20 public token;

  // Address where funds are collected
  address public wallet;

  // How many token units a buyer gets per wei
  uint256 public rate;

  // Amount of wei raised
  uint256 public weiRaised;

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

  /**
   * @param _rate Number of token units a buyer gets per wei
   * @param _wallet Address where collected funds will be forwarded to
   * @param _token Address of the token being sold
   */
  constructor(uint256 _rate, address _wallet, ERC20 _token) public {
    require(_rate > 0);
    require(_wallet != address(0));
    require(_token != address(0));

    rate = _rate;
    wallet = _wallet;
    token = _token;
  }

  // -----------------------------------------
  // Crowdsale external interface
  // -----------------------------------------

  /**
   * @dev fallback function ***DO NOT OVERRIDE***
   */
  function () external payable {
    buyTokens(msg.sender);
  }

  /**
   * @dev low level token purchase ***DO NOT OVERRIDE***
   * @param _beneficiary Address performing the token purchase
   */
  function buyTokens(address _beneficiary) public payable {

    uint256 weiAmount = msg.value;
    _preValidatePurchase(_beneficiary, weiAmount);

    // calculate token amount to be created
    uint256 tokens = _getTokenAmount(weiAmount);

    // update state
    weiRaised = weiRaised.add(weiAmount);

    _processPurchase(_beneficiary, tokens);
    emit TokenPurchase(
      msg.sender,
      _beneficiary,
      weiAmount,
      tokens
    );

    _updatePurchasingState(_beneficiary, weiAmount);

    _forwardFunds();
    _postValidatePurchase(_beneficiary, weiAmount);
  }

  // -----------------------------------------
  // Internal interface (extensible)
  // -----------------------------------------

  /**
   * @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use super to concatenate validations.
   * @param _beneficiary Address performing the token purchase
   * @param _weiAmount Value in wei involved in the purchase
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
    require(_beneficiary != address(0));
    require(_weiAmount != 0);
  }

  /**
   * @dev Validation of an executed purchase. Observe state and use revert statements to undo rollback when valid conditions are not met.
   * @param _beneficiary Address performing the token purchase
   * @param _weiAmount Value in wei involved in the purchase
   */
  function _postValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
    // optional override
  }

  /**
   * @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends its tokens.
   * @param _beneficiary Address performing the token purchase
   * @param _tokenAmount Number of tokens to be emitted
   */
  function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal {
    token.transfer(_beneficiary, _tokenAmount);
  }

  /**
   * @dev Executed when a purchase has been validated and is ready to be executed. Not necessarily emits/sends tokens.
   * @param _beneficiary Address receiving the tokens
   * @param _tokenAmount Number of tokens to be purchased
   */
  function _processPurchase(address _beneficiary, uint256 _tokenAmount) internal {
    _deliverTokens(_beneficiary, _tokenAmount);
  }

  /**
   * @dev Override for extensions that require an internal state to check for validity (current user contributions, etc.)
   * @param _beneficiary Address receiving the tokens
   * @param _weiAmount Value in wei involved in the purchase
   */
  function _updatePurchasingState(address _beneficiary, uint256 _weiAmount) internal {
    // optional override
  }

  /**
   * @dev Override to extend the way in which ether is converted to tokens.
   * @param _weiAmount Value in wei to be converted into tokens
   * @return Number of tokens that can be purchased with the specified _weiAmount
   */
  function _getTokenAmount(uint256 _weiAmount) internal view returns (uint256) {
    return _weiAmount.mul(rate);
  }

  /**
   * @dev Determines how ETH is stored/forwarded on purchases.
   */
  function _forwardFunds() internal {
    wallet.transfer(msg.value);
  }
}


/**
 * @title CappedCrowdsale
 * @dev Crowdsale with a limit for total contributions.
 */
contract CappedCrowdsale is Crowdsale {
  using SafeMath for uint256;

  uint256 public cap;

  /**
   * @dev Constructor, takes maximum amount of wei accepted in the crowdsale.
   * @param _cap Max amount of wei to be contributed
   */
  constructor(uint256 _cap) public {
    require(_cap > 0);
    cap = _cap;
  }

  /**
   * @dev Checks whether the cap has been reached.
   * @return Whether the cap was reached
   */
  function capReached() public view returns (bool) {
    return weiRaised >= cap;
  }

  /**
   * @dev Extend parent behavior requiring purchase to respect the funding cap.
   * @param _beneficiary Token purchaser
   * @param _weiAmount Amount of wei contributed
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
    super._preValidatePurchase(_beneficiary, _weiAmount);
    require(weiRaised.add(_weiAmount) <= cap);
  }

}







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

    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit 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) {
    return balances[_owner];
  }

}


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

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


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

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit 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;
    emit 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);
    emit 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);
    }
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}


/**
 * @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 OwnershipRenounced(address indexed previousOwner);
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() 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));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }
}


/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/openzeppelin-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);
    _;
  }

  modifier hasMintPermission() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @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) hasMintPermission canMint public returns (bool) {
    totalSupply_ = totalSupply_.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    emit Mint(_to, _amount);
    emit 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;
    emit MintFinished();
    return true;
  }
}


/**
 * @title MintedCrowdsale
 * @dev Extension of Crowdsale contract whose tokens are minted in each purchase.
 * Token ownership should be transferred to MintedCrowdsale for minting.
 */
contract MintedCrowdsale is Crowdsale {

  /**
   * @dev Overrides delivery by minting tokens upon purchase.
   * @param _beneficiary Token purchaser
   * @param _tokenAmount Number of tokens to be minted
   */
  function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal {
    require(MintableToken(token).mint(_beneficiary, _tokenAmount));
  }
}




/**
 * @title TimedCrowdsale
 * @dev Crowdsale accepting contributions only within a time frame.
 */
contract TimedCrowdsale is Crowdsale {
  using SafeMath for uint256;

  uint256 public openingTime;
  uint256 public closingTime;

  /**
   * @dev Reverts if not in crowdsale time range.
   */
  modifier onlyWhileOpen {
    // solium-disable-next-line security/no-block-members
    require(block.timestamp >= openingTime && block.timestamp <= closingTime);
    _;
  }

  /**
   * @dev Constructor, takes crowdsale opening and closing times.
   * @param _openingTime Crowdsale opening time
   * @param _closingTime Crowdsale closing time
   */
  constructor(uint256 _openingTime, uint256 _closingTime) public {
    // solium-disable-next-line security/no-block-members
    require(_openingTime >= block.timestamp);
    require(_closingTime >= _openingTime);

    openingTime = _openingTime;
    closingTime = _closingTime;
  }

  /**
   * @dev Checks whether the period in which the crowdsale is open has already elapsed.
   * @return Whether crowdsale period has elapsed
   */
  function hasClosed() public view returns (bool) {
    // solium-disable-next-line security/no-block-members
    return block.timestamp > closingTime;
  }

  /**
   * @dev Extend parent behavior requiring to be within contributing period
   * @param _beneficiary Token purchaser
   * @param _weiAmount Amount of wei contributed
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal onlyWhileOpen {
    super._preValidatePurchase(_beneficiary, _weiAmount);
  }

}

/**
 * @title FTICrowdsale
 * @dev This is FTICrowdsale contract.
 * In this crowdsale we are providing following extensions:
 * CappedCrowdsale - sets a max boundary for raised funds
 * MintedCrowdsale - set a min goal to be reached and returns funds if it's not met
 *
 * After adding multiple features it's good practice to run integration tests
 * to ensure that subcontracts works together as intended.
 */
contract ClosedPeriod is TimedCrowdsale {
    uint256 startClosePeriod;
    uint256 stopClosePeriod;
  
    modifier onlyWhileOpen {
        require(block.timestamp >= openingTime && block.timestamp <= closingTime);
        require(block.timestamp < startClosePeriod || block.timestamp > stopClosePeriod);
        _;
    }

    constructor(
        uint256 _openingTime,
        uint256 _closingTime,
        uint256 _openClosePeriod,
        uint256 _endClosePeriod
    ) public
        TimedCrowdsale(_openingTime, _closingTime)
    {
        require(_openClosePeriod > 0);
        require(_endClosePeriod > _openClosePeriod);
        startClosePeriod = _openClosePeriod;
        stopClosePeriod = _endClosePeriod;
    }
}





/**
 * @title ContractableToken
 * @dev The Ownable contract has an ownerncontract address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract OptionsToken is StandardToken, Ownable {
    using SafeMath for uint256;
    bool revertable = true;
    mapping (address => uint256) public optionsOwner;
    
    modifier hasOptionPermision() {
        require(msg.sender == owner);
        _;
    }  

    function storeOptions(address recipient, uint256 amount) public hasOptionPermision() {
        optionsOwner[recipient] += amount;
    }

    function refundOptions(address discharged) public onlyOwner() returns (bool) {
        require(revertable);
        require(optionsOwner[discharged] > 0);
        require(optionsOwner[discharged] <= balances[discharged]);

        uint256 revertTokens = optionsOwner[discharged];
        optionsOwner[discharged] = 0;

        balances[discharged] = balances[discharged].sub(revertTokens);
        balances[owner] = balances[owner].add(revertTokens);
        emit Transfer(discharged, owner, revertTokens);
        return true;
    }

    function doneOptions() public onlyOwner() {
        require(revertable);
        revertable = false;
    }
}



/**
 * @title ContractableToken
 * @dev The Contractable contract has an ownerncontract address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract ContractableToken is MintableToken, OptionsToken {
    address[5] public contract_addr;
    uint8 public contract_num = 0;

    function existsContract(address sender) public view returns(bool) {
        bool found = false;
        for (uint8 i = 0; i < contract_num; i++) {
            if (sender == contract_addr[i]) {
                found = true;
            }
        }
        return found;
    }

    modifier onlyContract() {
        require(existsContract(msg.sender));
        _;
    }

    modifier hasMintPermission() {
        require(existsContract(msg.sender));
        _;
    }
    
    modifier hasOptionPermision() {
        require(existsContract(msg.sender));
        _;
    }  
  
    event ContractRenounced();
    event ContractTransferred(address indexed newContract);
  
    /**
     * @dev Allows the current owner to transfer control of the contract to a newContract.
     * @param newContract The address to transfer ownership to.
     */
    function setContract(address newContract) public onlyOwner() {
        require(newContract != address(0));
        contract_num++;
        require(contract_num <= 5);
        emit ContractTransferred(newContract);
        contract_addr[contract_num-1] = newContract;
    }
  
    function renounceContract() public onlyOwner() {
        emit ContractRenounced();
        contract_num = 0;
    }
  
}



/**
 * @title FTIToken
 * @dev Very simple ERC20 Token that can be minted.
 * It is meant to be used in a crowdsale contract.
 */
contract FTIToken is ContractableToken {

    string public constant name = "GlobalCarService Token";
    string public constant symbol = "FTI";
    uint8 public constant decimals = 18;

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
        require(msg.sender == owner || mintingFinished);
        super.transferFrom(_from, _to, _value);
        return true;
    }
  
    function transfer(address _to, uint256 _value) public returns (bool) {
        require(msg.sender == owner || mintingFinished);
        super.transfer(_to, _value);
        return true;
    }
}


/**
 * @title FTICrowdsale
 * @dev This is FTICrowdsale contract.
 * In this crowdsale we are providing following extensions:
 * CappedCrowdsale - sets a max boundary for raised funds
 * MintedCrowdsale - set a min goal to be reached and returns funds if it's not met
 *
 * After adding multiple features it's good practice to run integration tests
 * to ensure that subcontracts works together as intended.
 */
contract FTICrowdsale is CappedCrowdsale, MintedCrowdsale, ClosedPeriod, Ownable {
    using SafeMath for uint256;
    uint256 public referralMinimum;
    uint8 public additionalTokenRate; 
    uint8 public referralPercent;
    uint8 public referralOwnerPercent;
    bool public openingManualyMining = true;
     
    modifier onlyOpeningManualyMinig() {
        require(openingManualyMining);
        _;
    }
   
    struct Pay {
        address payer;
        uint256 amount;
    }
    
    struct ReferalUser {
        uint256 fundsTotal;
        uint32 numReferrals;
        uint256 amountWEI;
        uint32 paysCount;
        mapping (uint32 => Pay) pays;
        mapping (uint32 => address) paysUniq;
        mapping (address => uint256) referral;
    }
    mapping (address => ReferalUser) public referralAddresses;

    uint8 constant maxGlobInvestor = 5;
    struct BonusPeriod {
        uint64 from;
        uint64 to;
        uint256 min_amount;
        uint256 max_amount;
        uint8 bonus;
        uint8 index_global_investor;
    }
    BonusPeriod[] public bonus_periods;

    mapping (uint8 => address[]) public globalInvestor;

    constructor(
        uint256 _openingTime,
        uint256 _closingTime,
        uint256 _openClosePeriod,
        uint256 _endClosePeriod,
        uint256 _rate,
        address _wallet,
        uint256 _cap,
        FTIToken _token,
        uint8 _additionalTokenRate,
        uint8 _referralPercent,
        uint256 _referralMinimum,
        uint8 _referralOwnerPercent,
        uint256 _startWeiAmount
    ) public
        Crowdsale(_rate, _wallet, _token)
        CappedCrowdsale(_cap)
        ClosedPeriod(_openingTime, _closingTime, _openClosePeriod, _endClosePeriod)
    {
        require(_additionalTokenRate > 0);
        require(_referralPercent > 0);
        require(_referralMinimum > 0);
        require(_referralOwnerPercent > 0);
        additionalTokenRate = _additionalTokenRate;
        referralPercent = _referralPercent;
        referralMinimum = _referralMinimum;
        referralOwnerPercent = _referralOwnerPercent;
        weiRaised = _startWeiAmount;
    }

    function manualyAddReferral(address ref, uint256 amount) public onlyOwner() {
        referralAddresses[ref] = ReferalUser(0,0,amount,0);
    }

    function manualyAddReferralPayer(address ref, address _beneficiary, uint256 _weiAmount) public onlyOwner() {
        ReferalUser storage rr = referralAddresses[ref];
        if (rr.amountWEI > 0) {
            uint mintTokens = _weiAmount.mul(rate);
            uint256 ownerToken = mintTokens.mul(referralOwnerPercent).div(100);
            rr.fundsTotal += ownerToken;
            if (rr.referral[_beneficiary] == 0){
                rr.paysUniq[rr.numReferrals] = _beneficiary;
                rr.numReferrals += 1;
            }
            rr.referral[_beneficiary] += _weiAmount;
            rr.pays[rr.paysCount] = Pay(_beneficiary, _weiAmount);
            rr.paysCount += 1;
        }
    }

    function bytesToAddress(bytes source) internal constant returns(address parsedReferer) {
        assembly {
            parsedReferer := mload(add(source,0x14))
        }
        require(parsedReferer != msg.sender);
        return parsedReferer;
    }

    function processReferral(address owner, address _beneficiary, uint256 _weiAmount) internal {
        require(owner != address(0));
        require(_beneficiary != address(0));
        require(_weiAmount != 0);
        ReferalUser storage rr = referralAddresses[owner];
        if (rr.amountWEI > 0) {
            uint mintTokens = _weiAmount.mul(rate);
            uint256 ownerToken = mintTokens.mul(referralOwnerPercent).div(100);
            rr.fundsTotal += ownerToken;
            if (rr.referral[_beneficiary] == 0){
                rr.paysUniq[rr.numReferrals] = _beneficiary;
                rr.numReferrals += 1;
            }
            rr.referral[_beneficiary] += _weiAmount;
            rr.pays[rr.paysCount] = Pay(_beneficiary, _weiAmount);
            rr.paysCount += 1;
            FTIToken(token).mint(owner, ownerToken);
            FTIToken(token).mint(_beneficiary, mintTokens.mul(referralPercent).div(100));
        }
    }

    function addReferral(address _beneficiary, uint256 _weiAmount) internal {
        if (_weiAmount > referralMinimum) {
            ReferalUser storage r = referralAddresses[_beneficiary];
            if (r.amountWEI > 0 ) {
                r.amountWEI += _weiAmount;
            }
            else {
                referralAddresses[_beneficiary] = ReferalUser(0, 0, _weiAmount, 0);
            }
        }
    }

    function _updatePurchasingState(address _beneficiary, uint256 _weiAmount) internal {
        if (msg.data.length == 20) {
            address ref = bytesToAddress(msg.data);
            processReferral(ref, _beneficiary, _weiAmount);
        }

        addReferral(_beneficiary, _weiAmount);

        uint8 index = indexSuperInvestor(_weiAmount);
        if (index > 0 && globalInvestor[index].length < maxGlobInvestor) {
            bool found = false;
            for (uint8 iter = 0; iter < globalInvestor[index].length; iter++) {
                if (globalInvestor[index][iter] == _beneficiary) {
                    found = true;
                }
            }
            if (!found) { 
                globalInvestor[index].push(_beneficiary);
            }
        }
    }
    
    function addBonusPeriod (uint64 from, uint64 to, uint256 min_amount, uint8 bonus, uint256 max_amount, uint8 index_glob_inv) public onlyOwner {
        bonus_periods.push(BonusPeriod(from, to, min_amount, max_amount, bonus, index_glob_inv));
    }


    function referalCount (address addr) public view returns(uint64 len) {
        len = referralAddresses[addr].numReferrals;
    } 

    function referalAddrByNum (address ref_owner, uint32 num) public view returns(address addr) {
        addr = referralAddresses[ref_owner].paysUniq[num];
    } 

    function referalPayCount (address addr) public view returns(uint64 len) {
        len = referralAddresses[addr].paysCount;
    } 

    function referalPayByNum (address ref_owner, uint32 num) public view returns(address addr, uint256 amount) {
        addr = referralAddresses[ref_owner].pays[num].payer;
        amount = referralAddresses[ref_owner].pays[num].amount;
    } 

    function getBonusRate (uint256 amount) public constant returns(uint8) {
        for (uint i = 0; i < bonus_periods.length; i++) {
            BonusPeriod storage bonus_period = bonus_periods[i];
            if (bonus_period.from <= now && bonus_period.to > now && bonus_period.min_amount <= amount && bonus_period.max_amount > amount) {
                return bonus_period.bonus;
            } 
        }
        return 0;
    }
    
    function indexSuperInvestor (uint256 amount) internal view returns(uint8) {
        for (uint8 i = 0; i < bonus_periods.length; i++) {
            BonusPeriod storage bonus_period = bonus_periods[i];
            if (bonus_period.from <= now && bonus_period.to > now && bonus_period.min_amount <= amount && bonus_period.max_amount > amount) {
                return bonus_period.index_global_investor;
            } 
        }
        return 0;
    }

    function _getTokenAmount(uint256 _weiAmount) internal view returns (uint256) {
        uint8 bonusPercent = 100 + getBonusRate(_weiAmount);
        uint256 amountTokens = _weiAmount.mul(rate).mul(bonusPercent).div(100);
        return amountTokens;
    }

    function _processPurchase(address _beneficiary, uint256 _tokenAmount) internal {
        super._processPurchase(_beneficiary, _tokenAmount);
        FTIToken(token).mint(wallet, _tokenAmount.mul(additionalTokenRate).div(100));
    }

    function closeManualyMining() public onlyOwner() {
        openingManualyMining = false;
    }

    function manualyMintTokens(uint256 _weiAmount, address _beneficiary, uint256 mintTokens) public onlyOwner() onlyOpeningManualyMinig() {
        require(_beneficiary != address(0));
        require(_weiAmount != 0);
        require(mintTokens != 0);
        weiRaised = weiRaised.add(_weiAmount);
        _processPurchase(_beneficiary, mintTokens);
        emit TokenPurchase(
            msg.sender,
            _beneficiary,
            _weiAmount,
            mintTokens
        );
        addReferral(_beneficiary, _weiAmount);
    }


}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"ref","type":"address"},{"name":"_beneficiary","type":"address"},{"name":"_weiAmount","type":"uint256"}],"name":"manualyAddReferralPayer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"hasClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"closeManualyMining","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_weiAmount","type":"uint256"},{"name":"_beneficiary","type":"address"},{"name":"mintTokens","type":"uint256"}],"name":"manualyMintTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"referralPercent","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"name":"","type":"uint256"}],"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":"openingManualyMining","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"closingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"capReached","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"bonus_periods","outputs":[{"name":"from","type":"uint64"},{"name":"to","type":"uint64"},{"name":"min_amount","type":"uint256"},{"name":"max_amount","type":"uint256"},{"name":"bonus","type":"uint8"},{"name":"index_global_investor","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"ref_owner","type":"address"},{"name":"num","type":"uint32"}],"name":"referalPayByNum","outputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"referralOwnerPercent","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"referalPayCount","outputs":[{"name":"len","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"referralMinimum","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"ref_owner","type":"address"},{"name":"num","type":"uint32"}],"name":"referalAddrByNum","outputs":[{"name":"addr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"openingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint8"},{"name":"","type":"uint256"}],"name":"globalInvestor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"additionalTokenRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"uint64"},{"name":"to","type":"uint64"},{"name":"min_amount","type":"uint256"},{"name":"bonus","type":"uint8"},{"name":"max_amount","type":"uint256"},{"name":"index_glob_inv","type":"uint8"}],"name":"addBonusPeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"ref","type":"address"},{"name":"amount","type":"uint256"}],"name":"manualyAddReferral","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"amount","type":"uint256"}],"name":"getBonusRate","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"referalCount","outputs":[{"name":"len","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"referralAddresses","outputs":[{"name":"fundsTotal","type":"uint256"},{"name":"numReferrals","type":"uint32"},{"name":"amountWEI","type":"uint256"},{"name":"paysCount","type":"uint32"}],"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":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_openingTime","type":"uint256"},{"name":"_closingTime","type":"uint256"},{"name":"_openClosePeriod","type":"uint256"},{"name":"_endClosePeriod","type":"uint256"},{"name":"_rate","type":"uint256"},{"name":"_wallet","type":"address"},{"name":"_cap","type":"uint256"},{"name":"_token","type":"address"},{"name":"_additionalTokenRate","type":"uint8"},{"name":"_referralPercent","type":"uint8"},{"name":"_referralMinimum","type":"uint256"},{"name":"_referralOwnerPercent","type":"uint8"},{"name":"_startWeiAmount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"}]

60806040526001600b60036101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516101a08062002d85833981018060405281019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050508c8c8c8c83838c8f8f8e600083111515620000e357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200012057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200015d57600080fd5b8260028190555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050600081111515620001f857600080fd5b80600481905550504282101515156200021057600080fd5b8181101515156200022057600080fd5b816005819055508060068190555050506000821115156200024057600080fd5b81811115156200024f57600080fd5b81600781905550806008819055505050505033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008560ff16111515620002b557600080fd5b60008460ff16111515620002c857600080fd5b600083111515620002d857600080fd5b60008260ff16111515620002eb57600080fd5b84600b60006101000a81548160ff021916908360ff16021790555083600b60016101000a81548160ff021916908360ff16021790555082600a8190555081600b60026101000a81548160ff021916908360ff1602179055508060038190555050505050505050505050505050612a1e80620003676000396000f30060806040526004361061018b576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806313f73570146101965780631515bc2b146102035780631588ce0914610232578063178b9929146102495780632c4e722e146102a0578063343dfb7e146102cb578063355274ea146102fc5780634042b66f146103275780634a1311f9146103525780634b6753bc146103815780634f935945146103ac578063521eb273146103db5780635ad3cd6014610432578063715018a6146104ca578063887ffc9c146104e157806389edf1141461057b5780638da5cb5b146105ac57806397173a7a146106035780639b12664f1461066e578063aee338ef14610699578063b7a8807c1461072c578063bdd9cb4614610757578063d81849b8146107d1578063dab30ccc14610802578063def595751461087b578063e37cd202146108c8578063e827653c1461090f578063ec5c48691461097a578063ec8ac4d8146109fe578063f2fde38b14610a34578063fc0c546a14610a77575b61019433610ace565b005b3480156101a257600080fd5b50610201600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b9c565b005b34801561020f57600080fd5b50610218610eeb565b604051808215151515815260200191505060405180910390f35b34801561023e57600080fd5b50610247610ef7565b005b34801561025557600080fd5b5061029e60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f70565b005b3480156102ac57600080fd5b506102b56110e4565b6040518082815260200191505060405180910390f35b3480156102d757600080fd5b506102e06110ea565b604051808260ff1660ff16815260200191505060405180910390f35b34801561030857600080fd5b506103116110fd565b6040518082815260200191505060405180910390f35b34801561033357600080fd5b5061033c611103565b6040518082815260200191505060405180910390f35b34801561035e57600080fd5b50610367611109565b604051808215151515815260200191505060405180910390f35b34801561038d57600080fd5b5061039661111c565b6040518082815260200191505060405180910390f35b3480156103b857600080fd5b506103c1611122565b604051808215151515815260200191505060405180910390f35b3480156103e757600080fd5b506103f0611131565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561043e57600080fd5b5061045d60048036038101908080359060200190929190505050611157565b604051808767ffffffffffffffff1667ffffffffffffffff1681526020018667ffffffffffffffff1667ffffffffffffffff1681526020018581526020018481526020018360ff1660ff1681526020018260ff1660ff168152602001965050505050505060405180910390f35b3480156104d657600080fd5b506104df6111e4565b005b3480156104ed57600080fd5b50610532600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803563ffffffff1690602001909291905050506112e9565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561058757600080fd5b506105906113dd565b604051808260ff1660ff16815260200191505060405180910390f35b3480156105b857600080fd5b506105c16113f0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561060f57600080fd5b50610644600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611416565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b34801561067a57600080fd5b50610683611478565b6040518082815260200191505060405180910390f35b3480156106a557600080fd5b506106ea600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803563ffffffff16906020019092919050505061147e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561073857600080fd5b50610741611508565b6040518082815260200191505060405180910390f35b34801561076357600080fd5b5061078f600480360381019080803560ff1690602001909291908035906020019092919050505061150e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156107dd57600080fd5b506107e661155b565b604051808260ff1660ff16815260200191505060405180910390f35b34801561080e57600080fd5b50610879600480360381019080803567ffffffffffffffff169060200190929190803567ffffffffffffffff16906020019092919080359060200190929190803560ff16906020019092919080359060200190929190803560ff16906020019092919050505061156e565b005b34801561088757600080fd5b506108c6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116fe565b005b3480156108d457600080fd5b506108f360048036038101908080359060200190929190505050611833565b604051808260ff1660ff16815260200191505060405180910390f35b34801561091b57600080fd5b50610950600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611911565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b34801561098657600080fd5b506109bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611973565b604051808581526020018463ffffffff1663ffffffff1681526020018381526020018263ffffffff1663ffffffff16815260200194505050505060405180910390f35b610a32600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ace565b005b348015610a4057600080fd5b50610a75600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119c3565b005b348015610a8357600080fd5b50610a8c611b1b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080349150610ade8383611b40565b610ae782611b89565b9050610afe82600354611be590919063ffffffff16565b600381905550610b0e8382611c01565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a3610b858383611d68565b610b8d611f68565b610b978383611fd3565b505050565b6000806000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bfd57600080fd5b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209250600083600201541115610ee357610c6060025485611fd790919063ffffffff16565b9150610c9a6064610c8c600b60029054906101000a900460ff1660ff1685611fd790919063ffffffff16565b61200f90919063ffffffff16565b905080836000016000828254019250508190555060008360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610da657848360050160008560010160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018360010160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055505b838360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060408051908101604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152508360040160008560030160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015590505060018360030160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055505b505050505050565b60006006544211905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f5357600080fd5b6000600b60036101000a81548160ff021916908315150217905550565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610fcc57600080fd5b600b60039054906101000a900460ff161515610fe757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561102357600080fd5b6000831415151561103357600080fd5b6000811415151561104357600080fd5b61105883600354611be590919063ffffffff16565b6003819055506110688282611c01565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188584604051808381526020018281526020019250505060405180910390a36110df8284612025565b505050565b60025481565b600b60019054906101000a900460ff1681565b60045481565b60035481565b600b60039054906101000a900460ff1681565b60065481565b60006004546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d8181548110151561116657fe5b90600052602060002090600402016000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060010154908060020154908060030160009054906101000a900460ff16908060030160019054906101000a900460ff16905086565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561124057600080fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600080600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160008463ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160008463ffffffff1663ffffffff1681526020019081526020016000206001015490509250929050565b600b60029054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160009054906101000a900463ffffffff1663ffffffff169050919050565b600a5481565b6000600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050160008363ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905092915050565b60055481565b600e6020528160005260406000208181548110151561152957fe5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115ca57600080fd5b600d60c0604051908101604052808867ffffffffffffffff1681526020018767ffffffffffffffff1681526020018681526020018481526020018560ff1681526020018360ff168152509080600181540180825580915050906001820390600052602060002090600402016000909192909190915060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550604082015181600101556060820151816002015560808201518160030160006101000a81548160ff021916908360ff16021790555060a08201518160030160016101000a81548160ff021916908360ff160217905550505050505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561175a57600080fd5b60806040519081016040528060008152602001600063ffffffff168152602001828152602001600063ffffffff16815250600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548163ffffffff021916908363ffffffff1602179055506040820151816002015560608201518160030160006101000a81548163ffffffff021916908363ffffffff1602179055509050505050565b60008060008091505b600d8054905082101561190557600d8281548110151561185857fe5b90600052602060002090600402019050428160000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16111580156118bb5750428160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b80156118cb575083816001015411155b80156118da5750838160020154115b156118f8578060030160009054906101000a900460ff16925061190a565b818060010192505061183c565b600092505b5050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1663ffffffff169050919050565b600c6020528060005260406000206000915090508060000154908060010160009054906101000a900463ffffffff16908060020154908060030160009054906101000a900463ffffffff16905084565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a1f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611a5b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6005544210158015611b5457506006544211155b1515611b5f57600080fd5b600754421080611b70575060085442115b1515611b7b57600080fd5b611b858282612172565b5050565b6000806000611b9784611833565b6064019150611bd96064611bcb8460ff16611bbd60025489611fd790919063ffffffff16565b611fd790919063ffffffff16565b61200f90919063ffffffff16565b90508092505050919050565b60008183019050828110151515611bf857fe5b80905092915050565b611c0b82826121a5565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611ca36064611c95600b60009054906101000a900460ff1660ff1687611fd790919063ffffffff16565b61200f90919063ffffffff16565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611d2857600080fd5b505af1158015611d3c573d6000803e3d6000fd5b505050506040513d6020811015611d5257600080fd5b8101908080519060200190929190505050505050565b600080600080601460003690501415611dc557611db76000368080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506121b3565b9350611dc48487876121ff565b5b611dcf8686612025565b611dd8856127b0565b925060008360ff16118015611e0c5750600560ff16600e60008560ff1660ff16815260200190815260200160002080549050105b15611f605760009150600090505b600e60008460ff1660ff168152602001908152602001600020805490508160ff161015611eda578573ffffffffffffffffffffffffffffffffffffffff16600e60008560ff1660ff1681526020019081526020016000208260ff16815481101515611e8157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611ecd57600191505b8080600101915050611e1a565b811515611f5f57600e60008460ff1660ff1681526020019081526020016000208690806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5b505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611fd0573d6000803e3d6000fd5b50565b5050565b600080831415611fea5760009050612009565b8183029050818382811515611ffb57fe5b0414151561200557fe5b8090505b92915050565b6000818381151561201c57fe5b04905092915050565b6000600a5482111561216d57600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816002015411156120965781816002016000828254019250508190555061216c565b60806040519081016040528060008152602001600063ffffffff168152602001838152602001600063ffffffff16815250600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548163ffffffff021916908363ffffffff1602179055506040820151816002015560608201518160030160006101000a81548163ffffffff021916908363ffffffff1602179055509050505b5b505050565b61217c8282612894565b60045461219482600354611be590919063ffffffff16565b111515156121a157600080fd5b5050565b6121af82826128e4565b5050565b6000601482015190503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156121f757600080fd5b809050919050565b60008060008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415151561223f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415151561227b57600080fd5b6000841415151561228b57600080fd5b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002092506000836002015411156127a8576122ee60025485611fd790919063ffffffff16565b9150612328606461231a600b60029054906101000a900460ff1660ff1685611fd790919063ffffffff16565b61200f90919063ffffffff16565b905080836000016000828254019250508190555060008360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561243457848360050160008560010160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018360010160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055505b838360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060408051908101604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152508360040160008560030160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015590505060018360030160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1987836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561263457600080fd5b505af1158015612648573d6000803e3d6000fd5b505050506040513d602081101561265e57600080fd5b8101908080519060200190929190505050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19866126e660646126d8600b60019054906101000a900460ff1660ff1688611fd790919063ffffffff16565b61200f90919063ffffffff16565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561276b57600080fd5b505af115801561277f573d6000803e3d6000fd5b505050506040513d602081101561279557600080fd5b8101908080519060200190929190505050505b505050505050565b60008060008091505b600d805490508260ff16101561288857600d8260ff168154811015156127db57fe5b90600052602060002090600402019050428160000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff161115801561283e5750428160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b801561284e575083816001015411155b801561285d5750838160020154115b1561287b578060030160019054906101000a900460ff16925061288d565b81806001019250506127b9565b600092505b5050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156128d057600080fd5b600081141515156128e057600080fd5b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156129a857600080fd5b505af11580156129bc573d6000803e3d6000fd5b505050506040513d60208110156129d257600080fd5b810190808051906020019092919050505015156129ee57600080fd5b50505600a165627a7a723058201faa05c31db6a516867cfc0929627d36eca24ff9e9ac0da572cc1e791b81fac50029000000000000000000000000000000000000000000000000000000005b1472f0000000000000000000000000000000000000000000000000000000005b93b9c0000000000000000000000000000000000000000000000000000000005b2a41c0000000000000000000000000000000000000000000000000000000005b30d9400000000000000000000000000000000000000000000000000000000000001770000000000000000000000000f99c913bea828369ea5c8d2ed8a270f9fd9168a300000000000000000000000000000000000000000000054b40b1f852bda0000000000000000000000000000077a660753874723fa48460a179992cd29a5e617a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000019566ffc2f6abe6200

Deployed Bytecode

0x60806040526004361061018b576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806313f73570146101965780631515bc2b146102035780631588ce0914610232578063178b9929146102495780632c4e722e146102a0578063343dfb7e146102cb578063355274ea146102fc5780634042b66f146103275780634a1311f9146103525780634b6753bc146103815780634f935945146103ac578063521eb273146103db5780635ad3cd6014610432578063715018a6146104ca578063887ffc9c146104e157806389edf1141461057b5780638da5cb5b146105ac57806397173a7a146106035780639b12664f1461066e578063aee338ef14610699578063b7a8807c1461072c578063bdd9cb4614610757578063d81849b8146107d1578063dab30ccc14610802578063def595751461087b578063e37cd202146108c8578063e827653c1461090f578063ec5c48691461097a578063ec8ac4d8146109fe578063f2fde38b14610a34578063fc0c546a14610a77575b61019433610ace565b005b3480156101a257600080fd5b50610201600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b9c565b005b34801561020f57600080fd5b50610218610eeb565b604051808215151515815260200191505060405180910390f35b34801561023e57600080fd5b50610247610ef7565b005b34801561025557600080fd5b5061029e60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f70565b005b3480156102ac57600080fd5b506102b56110e4565b6040518082815260200191505060405180910390f35b3480156102d757600080fd5b506102e06110ea565b604051808260ff1660ff16815260200191505060405180910390f35b34801561030857600080fd5b506103116110fd565b6040518082815260200191505060405180910390f35b34801561033357600080fd5b5061033c611103565b6040518082815260200191505060405180910390f35b34801561035e57600080fd5b50610367611109565b604051808215151515815260200191505060405180910390f35b34801561038d57600080fd5b5061039661111c565b6040518082815260200191505060405180910390f35b3480156103b857600080fd5b506103c1611122565b604051808215151515815260200191505060405180910390f35b3480156103e757600080fd5b506103f0611131565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561043e57600080fd5b5061045d60048036038101908080359060200190929190505050611157565b604051808767ffffffffffffffff1667ffffffffffffffff1681526020018667ffffffffffffffff1667ffffffffffffffff1681526020018581526020018481526020018360ff1660ff1681526020018260ff1660ff168152602001965050505050505060405180910390f35b3480156104d657600080fd5b506104df6111e4565b005b3480156104ed57600080fd5b50610532600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803563ffffffff1690602001909291905050506112e9565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561058757600080fd5b506105906113dd565b604051808260ff1660ff16815260200191505060405180910390f35b3480156105b857600080fd5b506105c16113f0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561060f57600080fd5b50610644600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611416565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b34801561067a57600080fd5b50610683611478565b6040518082815260200191505060405180910390f35b3480156106a557600080fd5b506106ea600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803563ffffffff16906020019092919050505061147e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561073857600080fd5b50610741611508565b6040518082815260200191505060405180910390f35b34801561076357600080fd5b5061078f600480360381019080803560ff1690602001909291908035906020019092919050505061150e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156107dd57600080fd5b506107e661155b565b604051808260ff1660ff16815260200191505060405180910390f35b34801561080e57600080fd5b50610879600480360381019080803567ffffffffffffffff169060200190929190803567ffffffffffffffff16906020019092919080359060200190929190803560ff16906020019092919080359060200190929190803560ff16906020019092919050505061156e565b005b34801561088757600080fd5b506108c6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116fe565b005b3480156108d457600080fd5b506108f360048036038101908080359060200190929190505050611833565b604051808260ff1660ff16815260200191505060405180910390f35b34801561091b57600080fd5b50610950600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611911565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b34801561098657600080fd5b506109bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611973565b604051808581526020018463ffffffff1663ffffffff1681526020018381526020018263ffffffff1663ffffffff16815260200194505050505060405180910390f35b610a32600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ace565b005b348015610a4057600080fd5b50610a75600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119c3565b005b348015610a8357600080fd5b50610a8c611b1b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080349150610ade8383611b40565b610ae782611b89565b9050610afe82600354611be590919063ffffffff16565b600381905550610b0e8382611c01565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a3610b858383611d68565b610b8d611f68565b610b978383611fd3565b505050565b6000806000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bfd57600080fd5b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209250600083600201541115610ee357610c6060025485611fd790919063ffffffff16565b9150610c9a6064610c8c600b60029054906101000a900460ff1660ff1685611fd790919063ffffffff16565b61200f90919063ffffffff16565b905080836000016000828254019250508190555060008360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610da657848360050160008560010160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018360010160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055505b838360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060408051908101604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152508360040160008560030160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015590505060018360030160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055505b505050505050565b60006006544211905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f5357600080fd5b6000600b60036101000a81548160ff021916908315150217905550565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610fcc57600080fd5b600b60039054906101000a900460ff161515610fe757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561102357600080fd5b6000831415151561103357600080fd5b6000811415151561104357600080fd5b61105883600354611be590919063ffffffff16565b6003819055506110688282611c01565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188584604051808381526020018281526020019250505060405180910390a36110df8284612025565b505050565b60025481565b600b60019054906101000a900460ff1681565b60045481565b60035481565b600b60039054906101000a900460ff1681565b60065481565b60006004546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d8181548110151561116657fe5b90600052602060002090600402016000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060010154908060020154908060030160009054906101000a900460ff16908060030160019054906101000a900460ff16905086565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561124057600080fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600080600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160008463ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160008463ffffffff1663ffffffff1681526020019081526020016000206001015490509250929050565b600b60029054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160009054906101000a900463ffffffff1663ffffffff169050919050565b600a5481565b6000600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060050160008363ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905092915050565b60055481565b600e6020528160005260406000208181548110151561152957fe5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115ca57600080fd5b600d60c0604051908101604052808867ffffffffffffffff1681526020018767ffffffffffffffff1681526020018681526020018481526020018560ff1681526020018360ff168152509080600181540180825580915050906001820390600052602060002090600402016000909192909190915060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550604082015181600101556060820151816002015560808201518160030160006101000a81548160ff021916908360ff16021790555060a08201518160030160016101000a81548160ff021916908360ff160217905550505050505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561175a57600080fd5b60806040519081016040528060008152602001600063ffffffff168152602001828152602001600063ffffffff16815250600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548163ffffffff021916908363ffffffff1602179055506040820151816002015560608201518160030160006101000a81548163ffffffff021916908363ffffffff1602179055509050505050565b60008060008091505b600d8054905082101561190557600d8281548110151561185857fe5b90600052602060002090600402019050428160000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16111580156118bb5750428160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b80156118cb575083816001015411155b80156118da5750838160020154115b156118f8578060030160009054906101000a900460ff16925061190a565b818060010192505061183c565b600092505b5050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1663ffffffff169050919050565b600c6020528060005260406000206000915090508060000154908060010160009054906101000a900463ffffffff16908060020154908060030160009054906101000a900463ffffffff16905084565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a1f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611a5b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6005544210158015611b5457506006544211155b1515611b5f57600080fd5b600754421080611b70575060085442115b1515611b7b57600080fd5b611b858282612172565b5050565b6000806000611b9784611833565b6064019150611bd96064611bcb8460ff16611bbd60025489611fd790919063ffffffff16565b611fd790919063ffffffff16565b61200f90919063ffffffff16565b90508092505050919050565b60008183019050828110151515611bf857fe5b80905092915050565b611c0b82826121a5565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611ca36064611c95600b60009054906101000a900460ff1660ff1687611fd790919063ffffffff16565b61200f90919063ffffffff16565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611d2857600080fd5b505af1158015611d3c573d6000803e3d6000fd5b505050506040513d6020811015611d5257600080fd5b8101908080519060200190929190505050505050565b600080600080601460003690501415611dc557611db76000368080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506121b3565b9350611dc48487876121ff565b5b611dcf8686612025565b611dd8856127b0565b925060008360ff16118015611e0c5750600560ff16600e60008560ff1660ff16815260200190815260200160002080549050105b15611f605760009150600090505b600e60008460ff1660ff168152602001908152602001600020805490508160ff161015611eda578573ffffffffffffffffffffffffffffffffffffffff16600e60008560ff1660ff1681526020019081526020016000208260ff16815481101515611e8157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611ecd57600191505b8080600101915050611e1a565b811515611f5f57600e60008460ff1660ff1681526020019081526020016000208690806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5b505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611fd0573d6000803e3d6000fd5b50565b5050565b600080831415611fea5760009050612009565b8183029050818382811515611ffb57fe5b0414151561200557fe5b8090505b92915050565b6000818381151561201c57fe5b04905092915050565b6000600a5482111561216d57600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816002015411156120965781816002016000828254019250508190555061216c565b60806040519081016040528060008152602001600063ffffffff168152602001838152602001600063ffffffff16815250600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548163ffffffff021916908363ffffffff1602179055506040820151816002015560608201518160030160006101000a81548163ffffffff021916908363ffffffff1602179055509050505b5b505050565b61217c8282612894565b60045461219482600354611be590919063ffffffff16565b111515156121a157600080fd5b5050565b6121af82826128e4565b5050565b6000601482015190503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156121f757600080fd5b809050919050565b60008060008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415151561223f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415151561227b57600080fd5b6000841415151561228b57600080fd5b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002092506000836002015411156127a8576122ee60025485611fd790919063ffffffff16565b9150612328606461231a600b60029054906101000a900460ff1660ff1685611fd790919063ffffffff16565b61200f90919063ffffffff16565b905080836000016000828254019250508190555060008360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561243457848360050160008560010160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018360010160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055505b838360060160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060408051908101604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152508360040160008560030160009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015590505060018360030160008282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1987836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561263457600080fd5b505af1158015612648573d6000803e3d6000fd5b505050506040513d602081101561265e57600080fd5b8101908080519060200190929190505050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19866126e660646126d8600b60019054906101000a900460ff1660ff1688611fd790919063ffffffff16565b61200f90919063ffffffff16565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561276b57600080fd5b505af115801561277f573d6000803e3d6000fd5b505050506040513d602081101561279557600080fd5b8101908080519060200190929190505050505b505050505050565b60008060008091505b600d805490508260ff16101561288857600d8260ff168154811015156127db57fe5b90600052602060002090600402019050428160000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff161115801561283e5750428160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16115b801561284e575083816001015411155b801561285d5750838160020154115b1561287b578060030160019054906101000a900460ff16925061288d565b81806001019250506127b9565b600092505b5050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156128d057600080fd5b600081141515156128e057600080fd5b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156129a857600080fd5b505af11580156129bc573d6000803e3d6000fd5b505050506040513d60208110156129d257600080fd5b810190808051906020019092919050505015156129ee57600080fd5b50505600a165627a7a723058201faa05c31db6a516867cfc0929627d36eca24ff9e9ac0da572cc1e791b81fac50029

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

000000000000000000000000000000000000000000000000000000005b1472f0000000000000000000000000000000000000000000000000000000005b93b9c0000000000000000000000000000000000000000000000000000000005b2a41c0000000000000000000000000000000000000000000000000000000005b30d9400000000000000000000000000000000000000000000000000000000000001770000000000000000000000000f99c913bea828369ea5c8d2ed8a270f9fd9168a300000000000000000000000000000000000000000000054b40b1f852bda0000000000000000000000000000077a660753874723fa48460a179992cd29a5e617a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000019566ffc2f6abe6200

-----Decoded View---------------
Arg [0] : _openingTime (uint256): 1528066800
Arg [1] : _closingTime (uint256): 1536408000
Arg [2] : _openClosePeriod (uint256): 1529496000
Arg [3] : _endClosePeriod (uint256): 1529928000
Arg [4] : _rate (uint256): 6000
Arg [5] : _wallet (address): 0xf99c913BEa828369EA5c8d2ed8a270f9FD9168a3
Arg [6] : _cap (uint256): 25000000000000000000000
Arg [7] : _token (address): 0x77A660753874723fA48460a179992cD29A5E617A
Arg [8] : _additionalTokenRate (uint8): 14
Arg [9] : _referralPercent (uint8): 3
Arg [10] : _referralMinimum (uint256): 250000000000000000
Arg [11] : _referralOwnerPercent (uint8): 5
Arg [12] : _startWeiAmount (uint256): 467397075933000000000

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005b1472f0
Arg [1] : 000000000000000000000000000000000000000000000000000000005b93b9c0
Arg [2] : 000000000000000000000000000000000000000000000000000000005b2a41c0
Arg [3] : 000000000000000000000000000000000000000000000000000000005b30d940
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001770
Arg [5] : 000000000000000000000000f99c913bea828369ea5c8d2ed8a270f9fd9168a3
Arg [6] : 00000000000000000000000000000000000000000000054b40b1f852bda00000
Arg [7] : 00000000000000000000000077a660753874723fa48460a179992cd29a5e617a
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 00000000000000000000000000000000000000000000000003782dace9d90000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 000000000000000000000000000000000000000000000019566ffc2f6abe6200


Swarm Source

bzzr://1faa05c31db6a516867cfc0929627d36eca24ff9e9ac0da572cc1e791b81fac5

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.