Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 188 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4at txn 0xba3b8cd030054c9bd9c08e1ffb5b6a9d8a3fe62d88bcd5bea3663c74d480a032
 Latest 25 transactions from a total of 188 transactions

TxHash Age From To Value [TxFee]
0xac9df3d2fb6a66d6a771a674076679090dfd8ef1b456ef0a67a049d15712a5fd2 hrs 41 mins ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0001883895
0xfdd852164ebc4d255c775488ffd805ef4d219241c40ad86330dba92bba71b5f51 day 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0xcfcd3de09d56533fe907dbf24a194c3e567bffbe3a9e13e405de27fe871b061f2 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000086949
0xae96d86486f15deb5dd3d55074c467dcf0f1ec15d8d3a2ee8dbbe2a8d1cb50283 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000898473
0x42495f8f6c60ccb8b0b8b0f77db5e60a267ee53a23d5b0f772354ad58f897eb44 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0xf003c80580daa0b80cfa977a8575d76bc0e2fbbc70acd96a9372d969889cb95e5 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000144915
0xf902215b69a5dbda7b2b248fdd1d4a35087ab1361d4cf16208df1884cb7cb9e26 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000144915
0xf13410fb89ad56c7fcadf1ff8733413bcb9980e74cfd107e158eb647ad7bcce87 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000173898
0x4dce1178186ae7c8855f61a3ba0565415e3847c0618d5465d7194ebfd663c53e8 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0xecd7716043526c0ace72882a33131c14b70397980ec77168430ec12cd7f3e8989 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000144915
0xe399985d8fd1a8df89d8f24412f4facd2cd8f232e23df38acf5b25aa8e743fb310 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000231864
0xaafbe7048c7bd763b93ab1b67093cbc47c9530b73d60af54b31bb42af2115bef11 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000260847
0x9ab3c9c0f102b3230e761a7de936f66aca970f6e9efbb19990a4a15500446af612 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000144915
0x3efe5d16dd501edf2b8d7378aceb257fe8f83e3ce81827b86a5f466598932b1b13 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000231864
0xd5c8cca6fd1bf8f96127d95044e6773dd1cf2558e25ad23513a7af6d91330c5f14 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0x9d1e0779f4c10988d7d4385bd577dcd2ed587f39feb6acbf36f0e2a3c7cf526b14 days 6 hrs ago0x18caef1474078b2aa1b7048647f21d1764319588  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0.619199428377874 Ether0.000290805
0xb57e309a62c9e1de5ed4155402b292d5a216fd8838f4c1260481bfecddd8909315 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0x649c2bc3be8ac16154b753295e50eda8fe2e8daec5c46ce1c0d81cb20e93d49716 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000062467592
0x9528f7fcbc07f70b63ff1b677de09f29b5c79c8871d536b01adcac4dabf9c89b17 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000110497687
0x055f61a31acd670ab3b12dfa30860167846613180e0f789c1220c676029447f318 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000173898
0xd040ad65b39a9b799ca2c67c2fdd2dacecf6c3ec7646db422f14288fe8ab72e119 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0x5f42b149eaa4439544dd72bc1e7cacf5a01ad2b0756d6215d93e6ad78024953e20 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000115932
0x9230fcc6f9c269d738447aace06d8ffa574b7d014af5069fd55f013aefc4af2721 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0001536099
0x8f35294b0f31a5644734042311868015c398989ff85c6eb4357945d51afc784322 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000145235
0x042a55f5762264512ff16d851d7b0efd51309eb7023fd153eca20b3f56128abf23 days 2 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000087141
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x9d1e0779f4c10988d7d4385bd577dcd2ed587f39feb6acbf36f0e2a3c7cf526b678397814 days 6 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6191994283778742 Ether
0xe5412023ce7e961292be8457d4c344e13deb12c510ef67060b2cfb1bcdb69212666335734 days 1 hr ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.145615373831649375 Ether
0xfe9d0b44fffad05098897e7b05c106f89f05dc4e0e94975c0188405e937ebb49665638535 days 5 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.16756272832427252 Ether
0x15744151376548266e85ed60bad0e0e6bda53039120908e55fb1b8b0c7e06330663800838 days 5 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.3499359617539926 Ether
0x2d0fd101eee64da8c0ada0e8efe3eb780105472fc09ed1e583500b865595d592662607640 days 4 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.1780864156880991 Ether
0x8a944a4b5b8393e3b1f272bd1402f0863c61c48cf7606bdbc34a2dd09eeab5ff659438745 days 9 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee1.5545529649300032 Ether
0x597528b59250777d82de67f55e613c5945c357a6aaa4236a8c201ef24f3027d5658703746 days 13 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.5196550875965259 Ether
0x55604c300f2d11ef567973269995594c99d680c84ef77b01c52d4dc5746de925657691248 days 5 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee5.167470331719666 Ether
0x7280b25f18ae4d99931602e67219ca182036864af00591ff371a8168a607f78b657463648 days 14 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.17224901105732218 Ether
0x2084aba932e094028a9319dff0c16f3bb71afdac3c4554ae7f1ae067bb6afea4657198849 days 55 mins ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee2.0669881326878663 Ether
0xdd5f4739be95e7305e51c8fc874a6af101b00b1d7062653a040c1375f69de865636992082 days 28 mins ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee1.12148 Ether
0x1dc1154a494b56c85e2e584f6f6215ae9fe8792628cacec98def3953345192666064738133 days 7 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.11425599218893023 Ether
0x12624d4483896109b6a1bfbb6375d45a42f30a78e9204636ae655c92b73540d96032728138 days 16 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.5163093700511094 Ether
0x4b181239b55df48ca9c0106f4f329d4d40b30681e398bb44da4d29195bcd98035905743160 days 7 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.07418476245451 Ether
0x6f153f3cbca2000bf1bf2e94591cd7ce320baebb7742f00e4e5585cd8893f9af5905736160 days 7 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.07418476245451 Ether
0x4645549f11438850a2f8d61c8733fc17aa8bffd83928516838bc1d17d567b7175851756169 days 14 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.077585400467879 Ether
0xbea46582e44b9566bab233b6269423a83095286aa7c7f92a2ad013e35efbcc695821091174 days 20 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.001460055535203266 Ether
0xa831f436c98786eb67ab8b45800459612dd29ef1f252a773af7007d0ee9b6c9b5818436175 days 7 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.13956205427508042 Ether
0x97fd2072b904cf8662a8e86b828b7185c3c5e7ea7ac5fa9238e45ad588becc1b5800636178 days 7 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.20952915 Ether
0xfebd202d777c86369fa412af5164b8b8d5c689310c6ae0cbcced099a5fd6effd5799400178 days 12 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.9778026818719654 Ether
0xdef72e9fb8fcca42e7d22ab9cd14b6fca8164c64621fb0ea287f4062f2b98b805795356179 days 5 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee1.0804463380688158 Ether
0x53d41744fd530175680d74cd2dbd43527521d0eb5be95452449b84371c7fa25a5791289179 days 22 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.7108199592557999 Ether
0x5e6b958720599445df796d67c05dc723e5dd02209c7c112b559a7a557976771f5781681181 days 14 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6656710763128048 Ether
0xcd86f9258ab4827229f49182ea9c350f01b1f8840b747e13cc5e064cd1f2efc75779168182 days 39 mins ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.13313421526256095 Ether
0xa0b6d4c65ec0a596554155aa8a7d69344530b7e9967fc533b41ab3ccb58d38ef5778465182 days 3 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6656710763128048 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: UpdatableCrowdsale
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.23;

// File: contracts/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) {
    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: contracts/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: contracts/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: contracts/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
  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/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: contracts/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 transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

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

// File: contracts/UpdatableCrowdsale.sol

/**
 * @title UpdatableCrowdsale
 * @dev Extension of AllowanceCrowdsale contract that allows updates to the exchange rate used to 
 * calculate the token sale price (rate of tokens to issue per wei contributed).  
 * Note that what should be provided to the constructor is the _initialRate (price per token in wei),
 * and the _tokenWallet that is going to provide an allowance from which the token sale can distribute
 * the tokent.
 */
contract UpdatableCrowdsale is AllowanceCrowdsale, Ownable {
  // using SafeMath for uint256; // using from parent

  event RateUpdated(uint256 oldRate, uint256 newRate);

  // The number of decimals for the rate
  uint256 public rateDecimals = 9;

  /**
   * @dev Constructor, takes the rate of tokens received per wei contributed, the
   * wallet address which will hold the authorized tokens for the sale (and also
   * is the recipient of the Ether contrubited), and the ERC20 token contract
   * for which we will be selling tokens.
   * @param _rate Number of tokens a buyer gets per wei at the start of the crowdsale
   * @param _wallet The address of the wallet from which tokens will be sold
   * @param _token The ERC20 token contract that holds the tokens we're selling
   */
  constructor (uint256 _rate, address _wallet, ERC20 _token) public
    AllowanceCrowdsale(_wallet)
    Crowdsale(_rate, _wallet, _token)
  {
    // Everything handled in parents
  }

  /**
   * @dev Returns the rate of tokens per wei at the present time. 
   * @return The number of tokens a buyer gets per wei at a given time
   */
  function setCurrentRate(uint256 _newRate) public onlyOwner returns (uint256) {
    require(_newRate > 0); 
    uint256 oldRate_ = rate;
    rate = _newRate;
    emit RateUpdated(oldRate_, rate);
  }

  /**
   * @dev Overrides parent method taking into account variable rate.
   * @param _weiAmount The value in wei to be converted into tokens
   * @return The number of tokens _weiAmount wei will buy at present time
   */
  function _getTokenAmount(uint256 _weiAmount) internal view returns (uint256) {
    return rate.mul(_weiAmount).div(10**rateDecimals);
  }

  /**
   * @dev Get token estimate based on current rate
   * @param _weiAmount The amount of wei that will be sent
   */ 
  function estimate(uint256 _weiAmount) public view returns (uint256) {
    return _getTokenAmount(_weiAmount);
  }

}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_newRate","type":"uint256"}],"name":"setCurrentRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rateDecimals","outputs":[{"name":"","type":"uint256"}],"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":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"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":true,"inputs":[{"name":"_weiAmount","type":"uint256"}],"name":"estimate","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":"_beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_rate","type":"uint256"},{"name":"_wallet","type":"address"},{"name":"_token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldRate","type":"uint256"},{"indexed":false,"name":"newRate","type":"uint256"}],"name":"RateUpdated","type":"event"},{"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 Switch To Opcodes View
6080604052600960065534801561001557600080fd5b50604051606080610f0e8339810180604052810190808051906020019092919080519060200190929190805190602001909291905050508183838360008311151561005f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561009b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156100d757600080fd5b8260028190555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019e57600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050610cdb806102336000396000f3006080604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630b5f2efd146100d05780631a3480b5146101115780632c4e722e1461013c5780634042b66f14610167578063521eb27314610192578063715018a6146101e95780638da5cb5b146102005780639c79293814610257578063bf58390314610298578063bff99c6c146102c3578063ec8ac4d81461031a578063f2fde38b14610350578063fc0c546a14610393575b6100ce336103ea565b005b3480156100dc57600080fd5b506100fb600480360381019080803590602001909291905050506104b8565b6040518082815260200191505060405180910390f35b34801561011d57600080fd5b50610126610579565b6040518082815260200191505060405180910390f35b34801561014857600080fd5b5061015161057f565b6040518082815260200191505060405180910390f35b34801561017357600080fd5b5061017c610585565b6040518082815260200191505060405180910390f35b34801561019e57600080fd5b506101a761058b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f557600080fd5b506101fe6105b1565b005b34801561020c57600080fd5b506102156106b6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561026357600080fd5b50610282600480360381019080803590602001909291905050506106dc565b6040518082815260200191505060405180910390f35b3480156102a457600080fd5b506102ad6106ee565b6040518082815260200191505060405180910390f35b3480156102cf57600080fd5b506102d8610842565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61034e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103ea565b005b34801561035c57600080fd5b50610391600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610868565b005b34801561039f57600080fd5b506103a86109c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000803491506103fa83836109e5565b61040382610a35565b905061041a82600354610a6a90919063ffffffff16565b60038190555061042a8382610a86565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36104a18383610a94565b6104a9610a98565b6104b38383610b03565b505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561051757600080fd5b60008311151561052657600080fd5b6002549050826002819055507fb38780ddde1f073d91c150de2696f3f7085883648ba21cc5ef01029cb21d191681600254604051808381526020018281526020019250505060405180910390a150919050565b60065481565b60025481565b60035481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561060d57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006106e782610a35565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16306040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561080257600080fd5b505af1158015610816573d6000803e3d6000fd5b505050506040513d602081101561082c57600080fd5b8101908080519060200190929190505050905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108c457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561090057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610a2157600080fd5b60008114151515610a3157600080fd5b5050565b6000610a63600654600a0a610a5584600254610b0790919063ffffffff16565b610b3f90919063ffffffff16565b9050919050565b60008183019050828110151515610a7d57fe5b80905092915050565b610a908282610b55565b5050565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610b00573d6000803e3d6000fd5b50565b5050565b600080831415610b1a5760009050610b39565b8183029050818382811515610b2b57fe5b04141515610b3557fe5b8090505b92915050565b60008183811515610b4c57fe5b04905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610c6f57600080fd5b505af1158015610c83573d6000803e3d6000fd5b505050506040513d6020811015610c9957600080fd5b81019080805190602001909291905050505050505600a165627a7a723058209339c34ebb671c62ff554982d39db678172c9005dc854de491e61d1a80ac89c6002900000000000000000000000000000000000000000000000000000002540be400000000000000000000000000a048926f1d70ed931a99345fd80c3a35141775ee0000000000000000000000002f5cdc81a729b750f3b733cb95660e788441c71e

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

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [1] : 000000000000000000000000a048926f1d70ed931a99345fd80c3a35141775ee
Arg [2] : 0000000000000000000000002f5cdc81a729b750f3b733cb95660e788441c71e


   Swarm Source:
bzzr://9339c34ebb671c62ff554982d39db678172c9005dc854de491e61d1a80ac89c6

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.