ETH Price: $3,280.93 (+0.33%)

Contract

0x1474943300E182B35211E9Ee9B6a00Cd71584451
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Locked Bon...68160442018-12-03 2:52:202232 days ago1543805540IN
Rate3: Token Sale
0 ETH0.0003912615
Claim Locked Bon...68160352018-12-03 2:49:512232 days ago1543805391IN
Rate3: Token Sale
0 ETH0.000782515
Claim Locked Bon...68160272018-12-03 2:47:212232 days ago1543805241IN
Rate3: Token Sale
0 ETH0.000557515
Claim Locked Bon...68160222018-12-03 2:46:222232 days ago1543805182IN
Rate3: Token Sale
0 ETH0.000782515
Claim Locked Bon...68160122018-12-03 2:44:162232 days ago1543805056IN
Rate3: Token Sale
0 ETH0.000557515
Claim Locked Bon...68160012018-12-03 2:42:342232 days ago1543804954IN
Rate3: Token Sale
0 ETH0.000782515
Claim Locked Bon...68159962018-12-03 2:41:152232 days ago1543804875IN
Rate3: Token Sale
0 ETH0.000557515
Claim Locked Bon...68159862018-12-03 2:38:282232 days ago1543804708IN
Rate3: Token Sale
0 ETH0.000557515
Claim Bonus Toke...68076062018-12-01 17:16:452233 days ago1543684605IN
Rate3: Token Sale
0 ETH0.0002638810
Claim Bonus Toke...68075962018-12-01 17:14:112233 days ago1543684451IN
Rate3: Token Sale
0 ETH0.0002510810
Claim Locked Bon...68075652018-12-01 17:08:322233 days ago1543684112IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075652018-12-01 17:08:322233 days ago1543684112IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075652018-12-01 17:08:322233 days ago1543684112IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075632018-12-01 17:08:202233 days ago1543684100IN
Rate3: Token Sale
0 ETH0.0005216710
Claim Locked Bon...68075512018-12-01 17:05:502233 days ago1543683950IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075422018-12-01 17:02:232233 days ago1543683743IN
Rate3: Token Sale
0 ETH0.0005216710
Claim Locked Bon...68075352018-12-01 17:00:012233 days ago1543683601IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075352018-12-01 17:00:012233 days ago1543683601IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075322018-12-01 16:59:302233 days ago1543683570IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075242018-12-01 16:56:562233 days ago1543683416IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075242018-12-01 16:56:562233 days ago1543683416IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68075152018-12-01 16:54:192233 days ago1543683259IN
Rate3: Token Sale
0 ETH0.0005216710
Claim Locked Bon...68075102018-12-01 16:51:572233 days ago1543683117IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68074982018-12-01 16:49:172233 days ago1543682957IN
Rate3: Token Sale
0 ETH0.0003716710
Claim Locked Bon...68074982018-12-01 16:49:172233 days ago1543682957IN
Rate3: Token Sale
0 ETH0.0003716710
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
56528672018-05-21 16:47:362427 days ago1526921256
Rate3: Token Sale
0.5 ETH
56528652018-05-21 16:46:382427 days ago1526921198
Rate3: Token Sale
3 ETH
56528562018-05-21 16:43:492427 days ago1526921029
Rate3: Token Sale
0.5 ETH
56528472018-05-21 16:40:362427 days ago1526920836
Rate3: Token Sale
1 ETH
56528382018-05-21 16:38:412427 days ago1526920721
Rate3: Token Sale
86 ETH
56528362018-05-21 16:38:182427 days ago1526920698
Rate3: Token Sale
0.5 ETH
56528362018-05-21 16:38:182427 days ago1526920698
Rate3: Token Sale
3 ETH
56528322018-05-21 16:37:302427 days ago1526920650
Rate3: Token Sale
4.5 ETH
56528292018-05-21 16:36:492427 days ago1526920609
Rate3: Token Sale
1 ETH
56528262018-05-21 16:35:282427 days ago1526920528
Rate3: Token Sale
0.5 ETH
56528262018-05-21 16:35:282427 days ago1526920528
Rate3: Token Sale
2 ETH
56528092018-05-21 16:31:092427 days ago1526920269
Rate3: Token Sale
100 ETH
56528032018-05-21 16:29:572427 days ago1526920197
Rate3: Token Sale
0.51125 ETH
56528022018-05-21 16:29:412427 days ago1526920181
Rate3: Token Sale
6 ETH
56527982018-05-21 16:28:302427 days ago1526920110
Rate3: Token Sale
0.5 ETH
56527892018-05-21 16:26:562427 days ago1526920016
Rate3: Token Sale
17.42 ETH
56527792018-05-21 16:24:132427 days ago1526919853
Rate3: Token Sale
0.62 ETH
56527752018-05-21 16:23:522427 days ago1526919832
Rate3: Token Sale
16.5 ETH
56527752018-05-21 16:23:522427 days ago1526919832
Rate3: Token Sale
5 ETH
56527632018-05-21 16:20:382427 days ago1526919638
Rate3: Token Sale
5 ETH
56527452018-05-21 16:17:492427 days ago1526919469
Rate3: Token Sale
30 ETH
56527332018-05-21 16:15:562427 days ago1526919356
Rate3: Token Sale
0.5 ETH
56527282018-05-21 16:14:342427 days ago1526919274
Rate3: Token Sale
1 ETH
56527282018-05-21 16:14:342427 days ago1526919274
Rate3: Token Sale
1.05 ETH
56526832018-05-21 16:04:402427 days ago1526918680
Rate3: Token Sale
1 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RTECrowdsale

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-08-30
*/

pragma solidity 0.4.19;

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

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

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

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

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }

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

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

}

/**
 * @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
   */
  function Crowdsale(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);
    TokenPurchase(msg.sender, _beneficiary, weiAmount, tokens);

    _updatePurchasingState(_beneficiary, weiAmount);

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

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

  /**
   * @dev Validation of an incoming purchase. Use require statemens 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 AllowanceCrowdsale
 * @dev Extension of Crowdsale where tokens are held by a wallet, which approves an allowance to the crowdsale.
 */
contract AllowanceCrowdsale is Crowdsale {
  using SafeMath for uint256;

  address public tokenWallet;

  /**
   * @dev Constructor, takes token wallet address. 
   * @param _tokenWallet Address holding the tokens, which has approved allowance to the crowdsale
   */
  function AllowanceCrowdsale(address _tokenWallet) public {
    require(_tokenWallet != address(0));
    tokenWallet = _tokenWallet;
  }

  /**
   * @dev Checks the amount of tokens left in the allowance.
   * @return Amount of tokens left in the allowance
   */
  function remainingTokens() public view returns (uint256) {
    return token.allowance(tokenWallet, this);
  }

  /**
   * @dev Overrides parent behavior by transferring tokens from wallet.
   * @param _beneficiary Token purchaser
   * @param _tokenAmount Amount of tokens purchased
   */
  function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal {
    token.transferFrom(tokenWallet, _beneficiary, _tokenAmount);
  }
}

/**
 * @title WhitelistedCrowdsale
 * @dev Crowdsale in which only whitelisted users can contribute.
 */
contract WhitelistedCrowdsale is Crowdsale, Ownable {

  mapping(address => bool) public whitelist;

  /**
   * @dev Reverts if beneficiary is not whitelisted. Can be used when extending this contract.
   */
  modifier isWhitelisted(address _beneficiary) {
    require(whitelist[_beneficiary]);
    _;
  }

  /**
   * @dev Adds single address to whitelist.
   * @param _beneficiary Address to be added to the whitelist
   */
  function addToWhitelist(address _beneficiary) external onlyOwner {
    whitelist[_beneficiary] = true;
  }
  
  /**
   * @dev Adds list of addresses to whitelist. Not overloaded due to limitations with truffle testing. 
   * @param _beneficiaries Addresses to be added to the whitelist
   */
  function addManyToWhitelist(address[] _beneficiaries) external onlyOwner {
    for (uint256 i = 0; i < _beneficiaries.length; i++) {
      whitelist[_beneficiaries[i]] = true;
    }
  }

  /**
   * @dev Removes single address from whitelist. 
   * @param _beneficiary Address to be removed to the whitelist
   */
  function removeFromWhitelist(address _beneficiary) external onlyOwner {
    whitelist[_beneficiary] = false;
  }

  /**
   * @dev Extend parent behavior requiring beneficiary to be in whitelist.
   * @param _beneficiary Token beneficiary
   * @param _weiAmount Amount of wei contributed
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal isWhitelisted(_beneficiary) {
    super._preValidatePurchase(_beneficiary, _weiAmount);
  }

}

/**
 * @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 {
    require(now >= openingTime && now <= closingTime);
    _;
  }

  /**
   * @dev Constructor, takes crowdsale opening and closing times.
   * @param _openingTime Crowdsale opening time
   * @param _closingTime Crowdsale closing time
   */
  function TimedCrowdsale(uint256 _openingTime, uint256 _closingTime) public {
    require(_openingTime >= now);
    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) {
    return now > 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 FinalizableCrowdsale
 * @dev Extension of Crowdsale where an owner can do extra work
 * after finishing.
 */
contract FinalizableCrowdsale is TimedCrowdsale, Ownable {
  using SafeMath for uint256;

  bool public isFinalized = false;

  event Finalized();

  /**
   * @dev Must be called after crowdsale ends, to do some extra finalization
   * work. Calls the contract's finalization function.
   */
  function finalize() onlyOwner public {
    require(!isFinalized);
    require(hasClosed());

    finalization();
    Finalized();

    isFinalized = true;
  }

  /**
   * @dev Can be overridden to add finalization logic. The overriding function
   * should call super.finalization() to ensure the chain of finalization is
   * executed entirely.
   */
  function finalization() internal {
  }
}


/**
 * @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 SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
  function safeTransfer(ERC20Basic token, address to, uint256 value) internal {
    assert(token.transfer(to, value));
  }

  function safeTransferFrom(ERC20 token, address from, address to, uint256 value) internal {
    assert(token.transferFrom(from, to, value));
  }

  function safeApprove(ERC20 token, address spender, uint256 value) internal {
    assert(token.approve(spender, value));
  }
}

/**
 * @title RTEBonusTokenVault
 * @dev Token holder contract that releases tokens to the respective addresses
 * and _lockedReleaseTime
 */
contract RTEBonusTokenVault is Ownable {
  using SafeERC20 for ERC20Basic;
  using SafeMath for uint256;

  // ERC20 basic token contract being held
  ERC20Basic public token;

  bool public vaultUnlocked;

  bool public vaultSecondaryUnlocked;

  // How much we have allocated to the investors invested
  mapping(address => uint256) public balances;

  mapping(address => uint256) public lockedBalances;

  /**
   * @dev Allocation event
   * @param _investor Investor address
   * @param _value Tokens allocated
   */
  event Allocated(address _investor, uint256 _value);

  /**
   * @dev Distribution event
   * @param _investor Investor address
   * @param _value Tokens distributed
   */
  event Distributed(address _investor, uint256 _value);

  function RTEBonusTokenVault(
    ERC20Basic _token
  )
    public
  {
    token = _token;
    vaultUnlocked = false;
    vaultSecondaryUnlocked = false;
  }

  /**
   * @dev Unlocks vault
   */
  function unlock() public onlyOwner {
    require(!vaultUnlocked);
    vaultUnlocked = true;
  }

  /**
   * @dev Unlocks secondary vault
   */
  function unlockSecondary() public onlyOwner {
    require(vaultUnlocked);
    require(!vaultSecondaryUnlocked);
    vaultSecondaryUnlocked = true;
  }

  /**
   * @dev Add allocation amount to investor addresses
   * Only the owner of this contract - the crowdsale can call this function
   * Split half to be locked by timelock in vault, the other half to be released on vault unlock
   * @param _investor Investor address
   * @param _amount Amount of tokens to add
   */
  function allocateInvestorBonusToken(address _investor, uint256 _amount) public onlyOwner {
    require(!vaultUnlocked);
    require(!vaultSecondaryUnlocked);

    uint256 bonusTokenAmount = _amount.div(2);
    uint256 bonusLockedTokenAmount = _amount.sub(bonusTokenAmount);

    balances[_investor] = balances[_investor].add(bonusTokenAmount);
    lockedBalances[_investor] = lockedBalances[_investor].add(bonusLockedTokenAmount);

    Allocated(_investor, _amount);
  }

  /**
   * @dev Transfers bonus tokens held to investor
   * @param _investor Investor address making the claim
   */
  function claim(address _investor) public onlyOwner {
    // _investor is the original initiator
    // msg.sender is the contract that called this.
    require(vaultUnlocked);

    uint256 claimAmount = balances[_investor];
    require(claimAmount > 0);

    uint256 tokenAmount = token.balanceOf(this);
    require(tokenAmount > 0);

    // Empty token balance
    balances[_investor] = 0;

    token.safeTransfer(_investor, claimAmount);

    Distributed(_investor, claimAmount);
  }

  /**
   * @dev Transfers secondary bonus tokens held to investor
   * @param _investor Investor address making the claim
   */
  function claimLocked(address _investor) public onlyOwner {
    // _investor is the original initiator
    // msg.sender is the contract that called this.
    require(vaultUnlocked);
    require(vaultSecondaryUnlocked);

    uint256 claimAmount = lockedBalances[_investor];
    require(claimAmount > 0);

    uint256 tokenAmount = token.balanceOf(this);
    require(tokenAmount > 0);

    // Empty token balance
    lockedBalances[_investor] = 0;

    token.safeTransfer(_investor, claimAmount);

    Distributed(_investor, claimAmount);
  }
}

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  uint256 totalSupply_;

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

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    // SafeMath.sub will throw if there is not enough balance.
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256 balance) {
    return balances[_owner];
  }

}

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

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


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

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

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

  bool public paused = false;


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

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

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

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

/**
 * @title Whitelisted Pausable token
 * @dev StandardToken modified with pausable transfers. Enables a whitelist to enable transfers
 * only for certain addresses such as crowdsale contract, issuing account etc.
 **/
contract WhitelistedPausableToken is StandardToken, Pausable {

  mapping(address => bool) public whitelist;

  /**
   * @dev Reverts if the message sender requesting for transfer is not whitelisted when token
   * transfers are paused
   * @param _sender check transaction sender address
   */
  modifier whenNotPausedOrWhitelisted(address _sender) {
    require(whitelist[_sender] || !paused);
    _;
  }

  /**
   * @dev Adds single address to whitelist.
   * @param _whitelistAddress Address to be added to the whitelist
   */
  function addToWhitelist(address _whitelistAddress) external onlyOwner {
    whitelist[_whitelistAddress] = true;
  }

  /**
   * @dev Adds list of addresses to whitelist. Not overloaded due to limitations with truffle testing.
   * @param _whitelistAddresses Addresses to be added to the whitelist
   */
  function addManyToWhitelist(address[] _whitelistAddresses) external onlyOwner {
    for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
      whitelist[_whitelistAddresses[i]] = true;
    }
  }

  /**
   * @dev Removes single address from whitelist.
   * @param _whitelistAddress Address to be removed to the whitelist
   */
  function removeFromWhitelist(address _whitelistAddress) external onlyOwner {
    whitelist[_whitelistAddress] = false;
  }

  // Adding modifier to transfer/approval functions
  function transfer(address _to, uint256 _value) public whenNotPausedOrWhitelisted(msg.sender) returns (bool) {
    return super.transfer(_to, _value);
  }

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

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

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

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

/**
 * @title RTEToken
 * @dev ERC20 token implementation
 * Pausable
 */
contract RTEToken is WhitelistedPausableToken {
  string public constant name = "Rate3";
  string public constant symbol = "RTE";
  uint8 public constant decimals = 18;

  // 1 billion initial supply of RTE tokens
  // Taking into account 18 decimals
  uint256 public constant INITIAL_SUPPLY = (10 ** 9) * (10 ** 18);

  /**
   * @dev RTEToken Constructor
   * Mints the initial supply of tokens, this is the hard cap, no more tokens will be minted.
   * Allocate the tokens to the foundation wallet, issuing wallet etc.
   */
  function RTEToken() public {
    // Mint initial supply of tokens. All further minting of tokens is disabled
    totalSupply_ = INITIAL_SUPPLY;

    // Transfer all initial tokens to msg.sender
    balances[msg.sender] = INITIAL_SUPPLY;
    Transfer(0x0, msg.sender, INITIAL_SUPPLY);
  }
}

/**
 * @title RTECrowdsale
 * @dev test
 */
contract RTECrowdsale is AllowanceCrowdsale, WhitelistedCrowdsale, FinalizableCrowdsale {
  using SafeERC20 for ERC20;

  uint256 public constant minimumInvestmentInWei = 0.5 ether;

  uint256 public allTokensSold;

  uint256 public bonusTokensSold;

  uint256 public cap;

  mapping (address => uint256) public tokenInvestments;

  mapping (address => uint256) public bonusTokenInvestments;

  RTEBonusTokenVault public bonusTokenVault;

  /**
   * @dev Contract initialization parameters
   * @param _openingTime Public crowdsale opening time
   * @param _closingTime Public crowdsale closing time
   * @param _rate Initial rate (Maybe remove, put as constant)
   * @param _cap RTE token issue cap (Should be the same amount as approved allowance from issueWallet)
   * @param _wallet Multisig wallet to send ether raised to
   * @param _issueWallet Wallet that approves allowance of tokens to be issued
   * @param _token RTE token address deployed seperately
   */
  function RTECrowdsale(
    uint256 _openingTime,
    uint256 _closingTime,
    uint256 _rate,
    uint256 _cap,
    address _wallet,
    address _issueWallet,
    RTEToken _token
  )
    AllowanceCrowdsale(_issueWallet)
    TimedCrowdsale(_openingTime, _closingTime)
    Crowdsale(_rate, _wallet, _token)
    public
  {
    require(_cap > 0);

    cap = _cap;
    bonusTokenVault = new RTEBonusTokenVault(_token);
  }

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

  /**
   * @dev Calculate bonus RTE percentage to be allocated based on time rules
   * time is calculated by now = block.timestamp, will be consistent across transaction if called
   * multiple times in same transaction
   * @return Bonus percentage in percent value
   */
  function _calculateBonusPercentage() internal view returns (uint256) {
    return 20;
  }

  /**
   * @dev Get current RTE balance of bonus token vault
   */
  function getRTEBonusTokenVaultBalance() public view returns (uint256) {
    return token.balanceOf(address(bonusTokenVault));
  }

  /**
   * @dev Extend parent behavior requiring purchase to respect minimum investment per transaction.
   * @param _beneficiary Token purchaser
   * @param _weiAmount Amount of wei contributed
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
    super._preValidatePurchase(_beneficiary, _weiAmount);
    require(msg.value >= minimumInvestmentInWei);
  }

  /**
   * @dev Keep track of tokens purchased extension functionality
   * @param _beneficiary Address performing the token purchase
   * @param _tokenAmount Value in amount of token purchased
   */
  function _processPurchase(address _beneficiary, uint256 _tokenAmount) internal {
    uint256 bonusPercentage = _calculateBonusPercentage();
    uint256 additionalBonusTokens = _tokenAmount.mul(bonusPercentage).div(100);
    uint256 tokensSold = _tokenAmount;

    // Check if exceed token sale cap
    uint256 newAllTokensSold = allTokensSold.add(tokensSold).add(additionalBonusTokens);
    require(newAllTokensSold <= cap);

    // Process purchase
    super._processPurchase(_beneficiary, tokensSold);
    allTokensSold = allTokensSold.add(tokensSold);
    tokenInvestments[_beneficiary] = tokenInvestments[_beneficiary].add(tokensSold);

    if (additionalBonusTokens > 0) {
      // Record bonus tokens allocated and transfer it to RTEBonusTokenVault
      allTokensSold = allTokensSold.add(additionalBonusTokens);
      bonusTokensSold = bonusTokensSold.add(additionalBonusTokens);
      bonusTokenVault.allocateInvestorBonusToken(_beneficiary, additionalBonusTokens);
      bonusTokenInvestments[_beneficiary] = bonusTokenInvestments[_beneficiary].add(additionalBonusTokens);
    }
  }

  /**
   * @dev Unlock secondary tokens, can only be done by owner of contract
   */
  function unlockSecondaryTokens() public onlyOwner {
    require(isFinalized);
    bonusTokenVault.unlockSecondary();
  }

  /**
   * @dev Claim bonus tokens from vault after bonus tokens are released
   * @param _beneficiary Address receiving the tokens
   */
  function claimBonusTokens(address _beneficiary) public {
    require(isFinalized);
    bonusTokenVault.claim(_beneficiary);
  }

  /**
   * @dev Claim timelocked bonus tokens from vault after bonus tokens are released
   * @param _beneficiary Address receiving the tokens
   */
  function claimLockedBonusTokens(address _beneficiary) public {
    require(isFinalized);
    bonusTokenVault.claimLocked(_beneficiary);
  }

  /**
   * @dev Called manually when token sale has ended with finalize()
   */
  function finalization() internal {
    // Credit bonus tokens sold to bonusTokenVault
    token.transferFrom(tokenWallet, bonusTokenVault, bonusTokensSold);

    // Unlock bonusTokenVault for non-timelocked tokens to be claimed
    bonusTokenVault.unlock();

    super.finalization();
  }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"hasClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"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":"closingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"address"}],"name":"tokenInvestments","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"removeFromWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiaries","type":"address[]"}],"name":"addManyToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unlockSecondaryTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"whitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bonusTokenVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"claimBonusTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"openingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"claimLockedBonusTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"remainingTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allTokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRTEBonusTokenVaultBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"bonusTokenInvestments","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"addToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"bonusTokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minimumInvestmentInWei","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_openingTime","type":"uint256"},{"name":"_closingTime","type":"uint256"},{"name":"_rate","type":"uint256"},{"name":"_cap","type":"uint256"},{"name":"_wallet","type":"address"},{"name":"_issueWallet","type":"address"},{"name":"_token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[],"name":"Finalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"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"}]

60606040526000600960006101000a81548160ff02191690831515021790555034156200002b57600080fd5b60405160e080620030b5833981016040528080519060200190919080519060200190919080519060200190919080519060200190919080519060200190919080519060200190919080519060200190919050508686838786856000831115156200009457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515620000d157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200010e57600080fd5b8260028190555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515620001d657600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550504282101515156200022857600080fd5b8181101515156200023857600080fd5b8160058190555080600681905550505033600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000841115156200029957600080fd5b83600c8190555080620002ab62000345565b808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050604051809103906000f0801515620002f857600080fd5b600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050505062000356565b6040516110df8062001fd683390190565b611c7080620003666000396000f300606060405260043610610180576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631515bc2b1461018b5780632c4e722e146101b8578063355274ea146101e15780634042b66f1461020a5780634b6753bc146102335780634bb278f31461025c5780634f93594514610271578063521eb2731461029e5780636e741c3a146102f35780638ab1d681146103405780638c10671c146103795780638d4e4083146103a75780638da5cb5b146103d45780638da5fd77146104295780639b19251a1461043e578063a00b043e1461048f578063a81af46e146104e4578063b7a8807c1461051d578063be1d4d8214610546578063bf5839031461057f578063bff99c6c146105a8578063d6f4e56e146105fd578063de301e8c14610626578063e0207ec01461064f578063e43252d71461069c578063ec8ac4d8146106d5578063f2fde38b14610703578063f4a32ef81461073c578063fc0c546a14610765578063fe052bc6146107ba575b610189336107e3565b005b341561019657600080fd5b61019e6108b1565b604051808215151515815260200191505060405180910390f35b34156101c357600080fd5b6101cb6108bd565b6040518082815260200191505060405180910390f35b34156101ec57600080fd5b6101f46108c3565b6040518082815260200191505060405180910390f35b341561021557600080fd5b61021d6108c9565b6040518082815260200191505060405180910390f35b341561023e57600080fd5b6102466108cf565b6040518082815260200191505060405180910390f35b341561026757600080fd5b61026f6108d5565b005b341561027c57600080fd5b6102846109b1565b604051808215151515815260200191505060405180910390f35b34156102a957600080fd5b6102b16109c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156102fe57600080fd5b61032a600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109e6565b6040518082815260200191505060405180910390f35b341561034b57600080fd5b610377600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109fe565b005b341561038457600080fd5b6103a560048080359060200190820180359060200191909192905050610ab5565b005b34156103b257600080fd5b6103ba610bb7565b604051808215151515815260200191505060405180910390f35b34156103df57600080fd5b6103e7610bca565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561043457600080fd5b61043c610bf0565b005b341561044957600080fd5b610475600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d02565b604051808215151515815260200191505060405180910390f35b341561049a57600080fd5b6104a2610d22565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104ef57600080fd5b61051b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d48565b005b341561052857600080fd5b610530610e36565b6040518082815260200191505060405180910390f35b341561055157600080fd5b61057d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e3c565b005b341561058a57600080fd5b610592610f2a565b6040518082815260200191505060405180910390f35b34156105b357600080fd5b6105bb611066565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561060857600080fd5b61061061108c565b6040518082815260200191505060405180910390f35b341561063157600080fd5b610639611092565b6040518082815260200191505060405180910390f35b341561065a57600080fd5b610686600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061119a565b6040518082815260200191505060405180910390f35b34156106a757600080fd5b6106d3600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506111b2565b005b610701600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506107e3565b005b341561070e57600080fd5b61073a600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611269565b005b341561074757600080fd5b61074f6113c1565b6040518082815260200191505060405180910390f35b341561077057600080fd5b6107786113c7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156107c557600080fd5b6107cd6113ec565b6040518082815260200191505060405180910390f35b6000803491506107f383836113f8565b6107fc8261141d565b90506108138260035461143b90919063ffffffff16565b6003819055506108238382611459565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a361089a838361173d565b6108a2611741565b6108ac83836117a5565b505050565b60006006544211905090565b60025481565b600c5481565b60035481565b60065481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561093157600080fd5b600960009054906101000a900460ff1615151561094d57600080fd5b6109556108b1565b151561096057600080fd5b6109686117a9565b7f6823b073d48d6e3a7d385eeb601452d680e74bb46afe3255a7d778f3a9b1768160405160405180910390a16001600960006101000a81548160ff021916908315150217905550565b6000600c54600a541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915090505481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a5a57600080fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b1357600080fd5b600090505b82829050811015610bb2576001600860008585858181101515610b3757fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610b18565b505050565b600960009054906101000a900460ff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c4c57600080fd5b600960009054906101000a900460ff161515610c6757600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633899ad416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515610cec57600080fd5b6102c65a03f11515610cfd57600080fd5b505050565b60086020528060005260406000206000915054906101000a900460ff1681565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900460ff161515610d6357600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515610e1f57600080fd5b6102c65a03f11515610e3057600080fd5b50505050565b60055481565b600960009054906101000a900460ff161515610e5757600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8280672826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515610f1357600080fd5b6102c65a03f11515610f2457600080fd5b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16306000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b151561104657600080fd5b6102c65a03f1151561105757600080fd5b50505060405180519050905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561117a57600080fd5b6102c65a03f1151561118b57600080fd5b50505060405180519050905090565b600e6020528060005260406000206000915090505481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561120e57600080fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112c557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561130157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6706f05b59d3b2000081565b61140282826119ae565b6706f05b59d3b20000341015151561141957600080fd5b5050565b600061143460025483611a1690919063ffffffff16565b9050919050565b600080828401905083811015151561144f57fe5b8091505092915050565b600080600080611467611a51565b935061148f60646114818688611a1690919063ffffffff16565b611a5a90919063ffffffff16565b92508491506114bb836114ad84600a5461143b90919063ffffffff16565b61143b90919063ffffffff16565b9050600c5481111515156114ce57600080fd5b6114d88683611a75565b6114ed82600a5461143b90919063ffffffff16565b600a8190555061154582600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461143b90919063ffffffff16565b600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000831115611735576115a683600a5461143b90919063ffffffff16565b600a819055506115c183600b5461143b90919063ffffffff16565b600b81905550600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166341609a3e87856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b151561168b57600080fd5b6102c65a03f1151561169c57600080fd5b5050506116f183600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461143b90919063ffffffff16565b600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505050505050565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015156117a357600080fd5b565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b546000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15156118ef57600080fd5b6102c65a03f1151561190057600080fd5b5050506040518051905050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a69df4b56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b151561199057600080fd5b6102c65a03f115156119a157600080fd5b5050506119ac611a83565b565b81600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515611a0757600080fd5b611a118383611a85565b505050565b6000806000841415611a2b5760009150611a4a565b8284029050828482811515611a3c57fe5b04141515611a4657fe5b8091505b5092915050565b60006014905090565b6000808284811515611a6857fe5b0490508091505092915050565b611a7f8282611ab2565b5050565b565b6005544210158015611a9957506006544211155b1515611aa457600080fd5b611aae8282611bf4565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684846000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1515611bd457600080fd5b6102c65a03f11515611be557600080fd5b50505060405180519050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611c3057600080fd5b60008114151515611c4057600080fd5b50505600a165627a7a72305820de98c2d4afe6401320896f33694d777a8db16eb19cf5feaa69c9363fb64abfa400296060604052341561000f57600080fd5b6040516020806110df83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160146101000a81548160ff0219169083151502179055506000600160156101000a81548160ff02191690831515021790555050610fed806100f26000396000f3006060604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630483a7f6146100bf578063066cf5391461010c5780631e83409a146101395780631fb8d5de1461017257806327e235e31461019f5780633899ad41146101ec57806341609a3e146102015780638da5cb5b14610243578063a69df4b514610298578063a8280672146102ad578063f2fde38b146102e6578063fc0c546a1461031f575b600080fd5b34156100ca57600080fd5b6100f6600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610374565b6040518082815260200191505060405180910390f35b341561011757600080fd5b61011f61038c565b604051808215151515815260200191505060405180910390f35b341561014457600080fd5b610170600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061039f565b005b341561017d57600080fd5b61018561065c565b604051808215151515815260200191505060405180910390f35b34156101aa57600080fd5b6101d6600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061066f565b6040518082815260200191505060405180910390f35b34156101f757600080fd5b6101ff610687565b005b341561020c57600080fd5b610241600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610735565b005b341561024e57600080fd5b610256610991565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156102a357600080fd5b6102ab6109b6565b005b34156102b857600080fd5b6102e4600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a49565b005b34156102f157600080fd5b61031d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d21565b005b341561032a57600080fd5b610332610e76565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60036020528060005260406000206000915090505481565b600160159054906101000a900460ff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103fd57600080fd5b600160149054906101000a900460ff16151561041857600080fd5b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054915060008211151561046957600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561052e57600080fd5b6102c65a03f1151561053f57600080fd5b50505060405180519050905060008111151561055a57600080fd5b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506105ec8383600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610e9c9092919063ffffffff16565b7fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af8383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1505050565b600160149054906101000a900460ff1681565b60026020528060005260406000206000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156106e257600080fd5b600160149054906101000a900460ff1615156106fd57600080fd5b600160159054906101000a900460ff1615151561071957600080fd5b60018060156101000a81548160ff021916908315150217905550565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561079357600080fd5b600160149054906101000a900460ff161515156107af57600080fd5b600160159054906101000a900460ff161515156107cb57600080fd5b6107df600284610f6f90919063ffffffff16565b91506107f48284610f8a90919063ffffffff16565b905061084882600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa390919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108dd81600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa390919063ffffffff16565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f472f36e28bb47edb7c69c9e2ac00a77c66b505df54e9c818ac57110b0629e8c38484604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a1157600080fd5b600160149054906101000a900460ff16151515610a2d57600080fd5b60018060146101000a81548160ff021916908315150217905550565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610aa757600080fd5b600160149054906101000a900460ff161515610ac257600080fd5b600160159054906101000a900460ff161515610add57600080fd5b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549150600082111515610b2e57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1515610bf357600080fd5b6102c65a03f11515610c0457600080fd5b505050604051805190509050600081111515610c1f57600080fd5b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610cb18383600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610e9c9092919063ffffffff16565b7fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af8383604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d7c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610db857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610f4757600080fd5b6102c65a03f11515610f5857600080fd5b505050604051805190501515610f6a57fe5b505050565b6000808284811515610f7d57fe5b0490508091505092915050565b6000828211151515610f9857fe5b818303905092915050565b6000808284019050838110151515610fb757fe5b80915050929150505600a165627a7a723058207665fe64387b646a6b7af12ea8fef6c6c49d286a827ab6e7d9a5f26ec2a8cfdb0029000000000000000000000000000000000000000000000000000000005ad43be0000000000000000000000000000000000000000000000000000000005b0fffe00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000009195731e2ce35eb0000000000000000000000000000000b0c591788ac5f9638a8aea025019e626f17186df000000000000000000000000bdcf1e8edc36bb45a322bddf151c6053bd5acee1000000000000000000000000436f0f3a982074c4a05084485d421466a994fe53

Deployed Bytecode

0x606060405260043610610180576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631515bc2b1461018b5780632c4e722e146101b8578063355274ea146101e15780634042b66f1461020a5780634b6753bc146102335780634bb278f31461025c5780634f93594514610271578063521eb2731461029e5780636e741c3a146102f35780638ab1d681146103405780638c10671c146103795780638d4e4083146103a75780638da5cb5b146103d45780638da5fd77146104295780639b19251a1461043e578063a00b043e1461048f578063a81af46e146104e4578063b7a8807c1461051d578063be1d4d8214610546578063bf5839031461057f578063bff99c6c146105a8578063d6f4e56e146105fd578063de301e8c14610626578063e0207ec01461064f578063e43252d71461069c578063ec8ac4d8146106d5578063f2fde38b14610703578063f4a32ef81461073c578063fc0c546a14610765578063fe052bc6146107ba575b610189336107e3565b005b341561019657600080fd5b61019e6108b1565b604051808215151515815260200191505060405180910390f35b34156101c357600080fd5b6101cb6108bd565b6040518082815260200191505060405180910390f35b34156101ec57600080fd5b6101f46108c3565b6040518082815260200191505060405180910390f35b341561021557600080fd5b61021d6108c9565b6040518082815260200191505060405180910390f35b341561023e57600080fd5b6102466108cf565b6040518082815260200191505060405180910390f35b341561026757600080fd5b61026f6108d5565b005b341561027c57600080fd5b6102846109b1565b604051808215151515815260200191505060405180910390f35b34156102a957600080fd5b6102b16109c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156102fe57600080fd5b61032a600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109e6565b6040518082815260200191505060405180910390f35b341561034b57600080fd5b610377600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109fe565b005b341561038457600080fd5b6103a560048080359060200190820180359060200191909192905050610ab5565b005b34156103b257600080fd5b6103ba610bb7565b604051808215151515815260200191505060405180910390f35b34156103df57600080fd5b6103e7610bca565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561043457600080fd5b61043c610bf0565b005b341561044957600080fd5b610475600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d02565b604051808215151515815260200191505060405180910390f35b341561049a57600080fd5b6104a2610d22565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104ef57600080fd5b61051b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d48565b005b341561052857600080fd5b610530610e36565b6040518082815260200191505060405180910390f35b341561055157600080fd5b61057d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e3c565b005b341561058a57600080fd5b610592610f2a565b6040518082815260200191505060405180910390f35b34156105b357600080fd5b6105bb611066565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561060857600080fd5b61061061108c565b6040518082815260200191505060405180910390f35b341561063157600080fd5b610639611092565b6040518082815260200191505060405180910390f35b341561065a57600080fd5b610686600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061119a565b6040518082815260200191505060405180910390f35b34156106a757600080fd5b6106d3600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506111b2565b005b610701600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506107e3565b005b341561070e57600080fd5b61073a600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611269565b005b341561074757600080fd5b61074f6113c1565b6040518082815260200191505060405180910390f35b341561077057600080fd5b6107786113c7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156107c557600080fd5b6107cd6113ec565b6040518082815260200191505060405180910390f35b6000803491506107f383836113f8565b6107fc8261141d565b90506108138260035461143b90919063ffffffff16565b6003819055506108238382611459565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a361089a838361173d565b6108a2611741565b6108ac83836117a5565b505050565b60006006544211905090565b60025481565b600c5481565b60035481565b60065481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561093157600080fd5b600960009054906101000a900460ff1615151561094d57600080fd5b6109556108b1565b151561096057600080fd5b6109686117a9565b7f6823b073d48d6e3a7d385eeb601452d680e74bb46afe3255a7d778f3a9b1768160405160405180910390a16001600960006101000a81548160ff021916908315150217905550565b6000600c54600a541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915090505481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a5a57600080fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b1357600080fd5b600090505b82829050811015610bb2576001600860008585858181101515610b3757fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610b18565b505050565b600960009054906101000a900460ff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c4c57600080fd5b600960009054906101000a900460ff161515610c6757600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633899ad416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1515610cec57600080fd5b6102c65a03f11515610cfd57600080fd5b505050565b60086020528060005260406000206000915054906101000a900460ff1681565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900460ff161515610d6357600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515610e1f57600080fd5b6102c65a03f11515610e3057600080fd5b50505050565b60055481565b600960009054906101000a900460ff161515610e5757600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8280672826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1515610f1357600080fd5b6102c65a03f11515610f2457600080fd5b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16306000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b151561104657600080fd5b6102c65a03f1151561105757600080fd5b50505060405180519050905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561117a57600080fd5b6102c65a03f1151561118b57600080fd5b50505060405180519050905090565b600e6020528060005260406000206000915090505481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561120e57600080fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112c557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561130157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6706f05b59d3b2000081565b61140282826119ae565b6706f05b59d3b20000341015151561141957600080fd5b5050565b600061143460025483611a1690919063ffffffff16565b9050919050565b600080828401905083811015151561144f57fe5b8091505092915050565b600080600080611467611a51565b935061148f60646114818688611a1690919063ffffffff16565b611a5a90919063ffffffff16565b92508491506114bb836114ad84600a5461143b90919063ffffffff16565b61143b90919063ffffffff16565b9050600c5481111515156114ce57600080fd5b6114d88683611a75565b6114ed82600a5461143b90919063ffffffff16565b600a8190555061154582600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461143b90919063ffffffff16565b600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000831115611735576115a683600a5461143b90919063ffffffff16565b600a819055506115c183600b5461143b90919063ffffffff16565b600b81905550600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166341609a3e87856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b151561168b57600080fd5b6102c65a03f1151561169c57600080fd5b5050506116f183600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461143b90919063ffffffff16565b600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505050505050565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015156117a357600080fd5b565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b546000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15156118ef57600080fd5b6102c65a03f1151561190057600080fd5b5050506040518051905050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a69df4b56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b151561199057600080fd5b6102c65a03f115156119a157600080fd5b5050506119ac611a83565b565b81600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515611a0757600080fd5b611a118383611a85565b505050565b6000806000841415611a2b5760009150611a4a565b8284029050828482811515611a3c57fe5b04141515611a4657fe5b8091505b5092915050565b60006014905090565b6000808284811515611a6857fe5b0490508091505092915050565b611a7f8282611ab2565b5050565b565b6005544210158015611a9957506006544211155b1515611aa457600080fd5b611aae8282611bf4565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684846000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1515611bd457600080fd5b6102c65a03f11515611be557600080fd5b50505060405180519050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611c3057600080fd5b60008114151515611c4057600080fd5b50505600a165627a7a72305820de98c2d4afe6401320896f33694d777a8db16eb19cf5feaa69c9363fb64abfa40029

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

000000000000000000000000000000000000000000000000000000005ad43be0000000000000000000000000000000000000000000000000000000005b0fffe00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000009195731e2ce35eb0000000000000000000000000000000b0c591788ac5f9638a8aea025019e626f17186df000000000000000000000000bdcf1e8edc36bb45a322bddf151c6053bd5acee1000000000000000000000000436f0f3a982074c4a05084485d421466a994fe53

-----Decoded View---------------
Arg [0] : _openingTime (uint256): 1523858400
Arg [1] : _closingTime (uint256): 1527775200
Arg [2] : _rate (uint256): 16000
Arg [3] : _cap (uint256): 176000000000000000000000000
Arg [4] : _wallet (address): 0xB0C591788ac5F9638A8AEA025019e626f17186dF
Arg [5] : _issueWallet (address): 0xbDCf1e8edC36bB45A322BdDF151C6053bd5aCEE1
Arg [6] : _token (address): 0x436F0F3a982074c4a05084485D421466a994FE53

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005ad43be0
Arg [1] : 000000000000000000000000000000000000000000000000000000005b0fffe0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000003e80
Arg [3] : 0000000000000000000000000000000000000000009195731e2ce35eb0000000
Arg [4] : 000000000000000000000000b0c591788ac5f9638a8aea025019e626f17186df
Arg [5] : 000000000000000000000000bdcf1e8edc36bb45a322bddf151c6053bd5acee1
Arg [6] : 000000000000000000000000436f0f3a982074c4a05084485d421466a994fe53


Swarm Source

bzzr://7665fe64387b646a6b7af12ea8fef6c6c49d286a827ab6e7d9a5f26ec2a8cfdb

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.