Contract 0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c0974

Contract Overview

Balance:
0 Ether
TxHash Block Age From To Value [TxFee]
0x0e72487106eb84d275eca75efc9b44976a390ff4bf37fd37f047b0e819f602343429012281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000060379
0x31978f074d81e8e2d1a0638a9ae3f32d81e746d9c8971a8adf2231d9483cf0223428960281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000060379
0x367022885e0c3644c0e729ad0ef7fd6931dd8ebcef1320d4492a7687ab027ba03428952281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000060379
0x70f0aac1961a93406cb8146277bd5365bbc83f6372cb5a89efcd977421078c7b3428944281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.2 Ether0.000060379
0x905da615bc6d0450474e3161b5a0326b0dbf09610a8c9a57f47cf660893715883428932281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000060379
0x1c7e06db0f62bb27290807e9f0d81ca9c798a315e02b09cfc558a5444d3703503428873281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000060379
0x61ab95c8548bb515ef58eab9c4506965215a85fbb0010acd8a48da76c8de796f3428851281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.2 Ether0.00000422653
0xa5f0063f36ef25439bcd768a163c49c28ef038288b3a77579592a69620bb17d63428822281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c097412.5 Ether0.000060379
0xe3d5ce9f9655198ce8fc1411130e9424ed3e6ce6519b3ff2cf91f50fa38e23e83428809281 days 8 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09744.2 Ether0.000060379
0xe0fdebbbd4e02ffbe2cd93a2577030af0cb105ab2955351e6985d50d42bf56833428793281 days 8 hrs ago0x47de9b9c3ec1d34371d6ca8cad3f3091b353bdbf IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000060379
0x1c38dd3218605ed2be8825bd3103557a1b59fbf7937a6a224f4f0ca6b7c9b6ef3428769281 days 9 hrs ago0x47de9b9c3ec1d34371d6ca8cad3f3091b353bdbf IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.000075379
0x5b87e5096d0ceb40c3d36f51bd9534aa8f2f6e7fb55011222734dcbb4e283eda3428769281 days 9 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.7 Ether0.000181137
0x551910d67798bf176b7a02e1f506a6d2152fc98f6c9cda0eb67659bd550e02b03428749281 days 9 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.11 Ether0.000181137
0x4b9bf7c7f572450d5258e5121fab5c07de227e47ba9899815bdc4236a6d2589e3428737281 days 9 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.12 Ether0.00090379
0x8f8f6445b5b8dc5e91e2ec2fbde26f91f4dded6825d4d65d31194bd67ca3079f3428707281 days 9 hrs ago0xf17f52151ebef6c7334fad080c5704d77216b732 IN  0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740.1 Ether0.00046642
0x49e073beb55c2bb1222a213c6072d1a4d8868d6418f167b83ca04bd53cdbc7423428654281 days 9 hrs ago0x13b5ac52b1e5a648130739d0b914d14aa97f5097 IN  Contract Creation0 Ether0.0964424
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x0e72487106eb84d275eca75efc9b44976a390ff4bf37fd37f047b0e819f602343429012281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0x0e72487106eb84d275eca75efc9b44976a390ff4bf37fd37f047b0e819f602343429012281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x31978f074d81e8e2d1a0638a9ae3f32d81e746d9c8971a8adf2231d9483cf0223428960281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0x31978f074d81e8e2d1a0638a9ae3f32d81e746d9c8971a8adf2231d9483cf0223428960281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x367022885e0c3644c0e729ad0ef7fd6931dd8ebcef1320d4492a7687ab027ba03428952281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0x367022885e0c3644c0e729ad0ef7fd6931dd8ebcef1320d4492a7687ab027ba03428952281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x70f0aac1961a93406cb8146277bd5365bbc83f6372cb5a89efcd977421078c7b3428944281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.2 Ether
0x70f0aac1961a93406cb8146277bd5365bbc83f6372cb5a89efcd977421078c7b3428944281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x905da615bc6d0450474e3161b5a0326b0dbf09610a8c9a57f47cf660893715883428932281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0x905da615bc6d0450474e3161b5a0326b0dbf09610a8c9a57f47cf660893715883428932281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x1c7e06db0f62bb27290807e9f0d81ca9c798a315e02b09cfc558a5444d3703503428873281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0x1c7e06db0f62bb27290807e9f0d81ca9c798a315e02b09cfc558a5444d3703503428873281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x61ab95c8548bb515ef58eab9c4506965215a85fbb0010acd8a48da76c8de796f3428851281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.2 Ether
0x61ab95c8548bb515ef58eab9c4506965215a85fbb0010acd8a48da76c8de796f3428851281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0xa5f0063f36ef25439bcd768a163c49c28ef038288b3a77579592a69620bb17d63428822281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f509712.5 Ether
0xa5f0063f36ef25439bcd768a163c49c28ef038288b3a77579592a69620bb17d63428822281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0xe3d5ce9f9655198ce8fc1411130e9424ed3e6ce6519b3ff2cf91f50fa38e23e83428809281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50974.2 Ether
0xe3d5ce9f9655198ce8fc1411130e9424ed3e6ce6519b3ff2cf91f50fa38e23e83428809281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0xe0fdebbbd4e02ffbe2cd93a2577030af0cb105ab2955351e6985d50d42bf56833428793281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0xe0fdebbbd4e02ffbe2cd93a2577030af0cb105ab2955351e6985d50d42bf56833428793281 days 8 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x1c38dd3218605ed2be8825bd3103557a1b59fbf7937a6a224f4f0ca6b7c9b6ef3428769281 days 9 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.1 Ether
0x1c38dd3218605ed2be8825bd3103557a1b59fbf7937a6a224f4f0ca6b7c9b6ef3428769281 days 9 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x5b87e5096d0ceb40c3d36f51bd9534aa8f2f6e7fb55011222734dcbb4e283eda3428769281 days 9 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.7 Ether
0x5b87e5096d0ceb40c3d36f51bd9534aa8f2f6e7fb55011222734dcbb4e283eda3428769281 days 9 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x75e6667b7174ccb8aa46bc2144bc9810ba41f2150 Ether
0x551910d67798bf176b7a02e1f506a6d2152fc98f6c9cda0eb67659bd550e02b03428749281 days 9 hrs ago0xcd2b6b90b83faacf8b5d865ec1f669a4ce6c09740x13b5ac52b1e5a648130739d0b914d14aa97f50970.11 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)

Contract Name:
EoptCrowdsale

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

pragma solidity 0.4.24;

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

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

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    // Gas optimization: this is cheaper than asserting 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    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;
  }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol

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

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender)
    public view returns (uint256);

  function transferFrom(address from, address to, uint256 value)
    public returns (bool);

  function approve(address spender, uint256 value) public returns (bool);
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 value
  );
}

// File: openzeppelin-solidity/contracts/crowdsale/Crowdsale.sol

/**
 * @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.
  // The rate is the conversion between wei and the smallest and indivisible token unit.
  // So, if you are using a rate of 1 with a DetailedERC20 token with 3 decimals called TOK
  // 1 wei will give you 1 unit, or 0.001 TOK.
  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);
  }
}

// File: contracts/DynamicRateCrowdsale.sol

contract DynamicRateCrowdsale is Crowdsale {
    using SafeMath for uint256;

    // 奖励汇率
    uint256 public bonusRate;

    constructor(uint256 _bonusRate) public {
        require(_bonusRate > 0);
        bonusRate = _bonusRate;
    }

    function getCurrentRate() public view returns (uint256) {
        return rate.add(bonusRate);
    }

    function _getTokenAmount(uint256 _weiAmount)
        internal view returns (uint256)
    {
        uint256 currentRate = getCurrentRate();
        return currentRate.mul(_weiAmount);
    }
}

// File: openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol

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

// File: openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol

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

}

// File: openzeppelin-solidity/contracts/crowdsale/validation/TimedCrowdsale.sol

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

}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

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


  event 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 relinquish control of the contract.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }

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

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}

// File: contracts/EoptCrowdsale.sol

contract EoptCrowdsale is Crowdsale, CappedCrowdsale, AllowanceCrowdsale, DynamicRateCrowdsale, TimedCrowdsale, Ownable {
    
    constructor(
        uint256 _rate, 
        uint256 _bonusRate, 
        address _wallet, 
        ERC20 _token, 
        uint256 _cap, 
        address _tokenWallet,
        uint256 _openingTime,
        uint256 _closingTime
    )
        Crowdsale(_rate, _wallet, _token)
        CappedCrowdsale(_cap)
        AllowanceCrowdsale(_tokenWallet)
        TimedCrowdsale(_openingTime, _closingTime)
        DynamicRateCrowdsale(_bonusRate)
        public
    {   
        
    }

    // 设置汇率,1 ETH : N TOKEN
    function setRate(uint256 _rate) onlyOwner public {
        require(_rate > 0);
        rate = _rate;
    }

    // 设置奖励汇率,1 ETH : N TOKEN(bonus)
    function setBonusRate(uint256 _bonusRate) onlyOwner public {
        require(_bonusRate > 0);
        bonusRate = _bonusRate;
    }

    // 设置众筹结束时间
    function setClosingTime(uint256 _closingTime) onlyOwner public {
        require(_closingTime >= block.timestamp);
        require(_closingTime >= openingTime);
        closingTime = _closingTime;
    }

    // 设置众筹总量限额
    function setCap(uint256 _cap) onlyOwner public {
        require(_cap > 0);
        cap = _cap;
    }

    // 设置EOPT的代币合约地址
    function setToken(ERC20 _token) onlyOwner public {
        require(_token != address(0));
        token = _token;
    }

    // 设置提供EOPT的钱包地址
    function setTokenWallet(address _tokenWallet) onlyOwner public {
        require(_tokenWallet != address(0));
        tokenWallet = _tokenWallet;
    }

    // 设置接收众筹ETH的钱包地址
    function setWallet(address _wallet) onlyOwner public {
        require(_wallet != address(0));
        wallet = _wallet;
    }
}

Contract ABI

[{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"setToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":false,"inputs":[{"name":"_rate","type":"uint256"}],"name":"setRate","outputs":[],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[{"name":"_cap","type":"uint256"}],"name":"setCap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"closingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_closingTime","type":"uint256"}],"name":"setClosingTime","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":"bonusRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenWallet","type":"address"}],"name":"setTokenWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"openingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":false,"inputs":[{"name":"_wallet","type":"address"}],"name":"setWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_bonusRate","type":"uint256"}],"name":"setBonusRate","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":"getCurrentRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_rate","type":"uint256"},{"name":"_bonusRate","type":"uint256"},{"name":"_wallet","type":"address"},{"name":"_token","type":"address"},{"name":"_cap","type":"uint256"},{"name":"_tokenWallet","type":"address"},{"name":"_openingTime","type":"uint256"},{"name":"_closingTime","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"}]

Contract Creation Code

608060405234801561001057600080fd5b5060405161010080610bbe83398101604090815281516020830151918301516060840151608085015160a086015160c087015160e090970151949693949293919290919081818885878c8b8b6000831161006957600080fd5b600160a060020a038216151561007e57600080fd5b600160a060020a038116151561009357600080fd5b60029290925560018054600160a060020a03928316600160a060020a0319918216179091556000805492909316911617815581116100d057600080fd5b600455600160a060020a03811615156100e857600080fd5b60058054600160a060020a031916600160a060020a03929092169190911790556000811161011557600080fd5b6006554282101561012557600080fd5b8181101561013257600080fd5b600791909155600855505060098054600160a060020a03191633179055505050505050610a5a806101646000396000f30060806040526004361061013d5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663144fa6d781146101485780631515bc2b146101695780632c4e722e1461019257806334fcf437146101b9578063355274ea146101d15780634042b66f146101e657806347786d37146101fb5780634b6753bc146102135780634b89c41d146102285780634f93594514610240578063521eb273146102555780635af123f414610286578063715018a61461029b5780638da5cb5b146102b0578063a621344a146102c5578063b7a8807c146102e6578063bf583903146102fb578063bff99c6c14610310578063deaa59df14610325578063e4fcf32914610346578063ec8ac4d81461035e578063f2fde38b14610372578063f7fb07b014610393578063fc0c546a146103a8575b610146336103bd565b005b34801561015457600080fd5b50610146600160a060020a036004351661045f565b34801561017557600080fd5b5061017e6104ba565b604080519115158252519081900360200190f35b34801561019e57600080fd5b506101a76104c2565b60408051918252519081900360200190f35b3480156101c557600080fd5b506101466004356104c8565b3480156101dd57600080fd5b506101a76104f1565b3480156101f257600080fd5b506101a76104f7565b34801561020757600080fd5b506101466004356104fd565b34801561021f57600080fd5b506101a7610526565b34801561023457600080fd5b5061014660043561052c565b34801561024c57600080fd5b5061017e610564565b34801561026157600080fd5b5061026a61056f565b60408051600160a060020a039092168252519081900360200190f35b34801561029257600080fd5b506101a761057e565b3480156102a757600080fd5b50610146610584565b3480156102bc57600080fd5b5061026a6105f2565b3480156102d157600080fd5b50610146600160a060020a0360043516610601565b3480156102f257600080fd5b506101a761065c565b34801561030757600080fd5b506101a7610662565b34801561031c57600080fd5b5061026a610704565b34801561033157600080fd5b50610146600160a060020a0360043516610713565b34801561035257600080fd5b5061014660043561076e565b610146600160a060020a03600435166103bd565b34801561037e57600080fd5b50610146600160a060020a0360043516610797565b34801561039f57600080fd5b506101a76107ba565b3480156103b457600080fd5b5061026a6107d8565b3460006103ca83836107e7565b6103d382610814565b6003549091506103e9908363ffffffff61083816565b6003556103f6838261084b565b60408051838152602081018390528151600160a060020a0386169233927f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18929081900390910190a36104488383610810565b610450610855565b61045a8383610810565b505050565b600954600160a060020a0316331461047657600080fd5b600160a060020a038116151561048b57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600854421190565b60025481565b600954600160a060020a031633146104df57600080fd5b600081116104ec57600080fd5b600255565b60045481565b60035481565b600954600160a060020a0316331461051457600080fd5b6000811161052157600080fd5b600455565b60085481565b600954600160a060020a0316331461054357600080fd5b4281101561055057600080fd5b60075481101561055f57600080fd5b600855565b600454600354101590565b600154600160a060020a031681565b60065481565b600954600160a060020a0316331461059b57600080fd5b600954604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26009805473ffffffffffffffffffffffffffffffffffffffff19169055565b600954600160a060020a031681565b600954600160a060020a0316331461061857600080fd5b600160a060020a038116151561062d57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60075481565b60008054600554604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201523060248201529051919092169163dd62ed3e91604480830192602092919082900301818787803b1580156106d357600080fd5b505af11580156106e7573d6000803e3d6000fd5b505050506040513d60208110156106fd57600080fd5b5051905090565b600554600160a060020a031681565b600954600160a060020a0316331461072a57600080fd5b600160a060020a038116151561073f57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600954600160a060020a0316331461078557600080fd5b6000811161079257600080fd5b600655565b600954600160a060020a031633146107ae57600080fd5b6107b78161088e565b50565b60006107d360065460025461083890919063ffffffff16565b905090565b600054600160a060020a031681565b60075442101580156107fb57506008544211155b151561080657600080fd5b610810828261090c565b5050565b60008061081f6107ba565b9050610831818463ffffffff61093716565b9392505050565b8181018281101561084557fe5b92915050565b6108108282610960565b600154604051600160a060020a03909116903480156108fc02916000818181858888f193505050501580156107b7573d6000803e3d6000fd5b600160a060020a03811615156108a357600080fd5b600954604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6109168282610a0d565b60045460035461092c908363ffffffff61083816565b111561081057600080fd5b600082151561094857506000610845565b5081810281838281151561095857fe5b041461084557fe5b60008054600554604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152868316602482015260448101869052905191909216926323b872dd92606480820193602093909283900390910190829087803b1580156109dd57600080fd5b505af11580156109f1573d6000803e3d6000fd5b505050506040513d6020811015610a0757600080fd5b50505050565b600160a060020a0382161515610a2257600080fd5b80151561081057600080fd00a165627a7a723058208e0b2f2f2d33b54dab65b8b374de0081661515965541d745256c1e5f08a5aab4002900000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e800000000000000000000000013b5ac52b1e5a648130739d0b914d14aa97f509700000000000000000000000075e6667b7174ccb8aa46bc2144bc9810ba41f21500000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000013b5ac52b1e5a648130739d0b914d14aa97f5097000000000000000000000000000000000000000000000000000000005b213595000000000000000000000000000000000000000000000000000000005b228715

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

00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e800000000000000000000000013b5ac52b1e5a648130739d0b914d14aa97f509700000000000000000000000075e6667b7174ccb8aa46bc2144bc9810ba41f21500000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000013b5ac52b1e5a648130739d0b914d14aa97f5097000000000000000000000000000000000000000000000000000000005b213595000000000000000000000000000000000000000000000000000000005b228715

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 00000000000000000000000013b5ac52b1e5a648130739d0b914d14aa97f5097
Arg [3] : 00000000000000000000000075e6667b7174ccb8aa46bc2144bc9810ba41f215
Arg [4] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [5] : 00000000000000000000000013b5ac52b1e5a648130739d0b914d14aa97f5097
Arg [6] : 000000000000000000000000000000000000000000000000000000005b213595
Arg [7] : 000000000000000000000000000000000000000000000000000000005b228715

Swarm Source

bzzr://8e0b2f2f2d33b54dab65b8b374de0081661515965541d745256c1e5f08a5aab4
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward