Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 120 txns
 Latest 25 txns From a total of 120 Transactions

TxHash Age From To Value [TxFee]
0x3b75a71db1f51242c2c719953aef1d679f91326e578273c4614fa7836334ed6a12 hrs 33 mins ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000058094
0x52ce997af3fc70fb068c4609df1e4aa651d7bd2458c9d5d7f6a0e0b174354a071 day 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000406658
0x75799d0104fe561ee0c5049e0a4f75fb8dd07a6a2e7930899b63ca414067947c2 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000145235
0x42af9e0d929cb9a666a015aab995dad7599929d2cfcd27d99b5db835fca4303d3 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000087141
0x5b9818cb3a461c6aa7d9dc33bca657a4b856c112623aa6b88a0bb6d153e8bf544 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0004202535
0x6c76a907067092423bcbfc8323836c4cf1f2557373c21d7d72ffa9879e1b242c5 days 11 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000058094
0xdc8adf236be38061aa54c1b9aafddc1bdedaab0b53c1183e05d84dc19c697eba6 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000058094
0xbe3eaa6c709d67db977a2ebe025898802849c9efb079c8025f3ce4124e0f53267 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0001713773
0x5acd284357f1f22274a3387e2b257cbeed027f92420e5e75a7f77fe3acbfaa058 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000435705
0x6efaea202142c379e7fb0c93eb898579387e7ebe55ecb8301b6586c4eb9990e89 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000087141
0x2aba1a82d92ecd83cb3a2de42838d968f52f527f4125f07915e5ad48ed14e4db10 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000087141
0x85ad2c6462778706f648869e2a7adf2633cb58defe22eae19a1806e3e0f0081411 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000900457
0xe01bfdedd6a79a4dd2ebdbba9f42d4f4d55ffdd8ed7206d9311cf5320052693f12 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000145235
0x436d6b4f1ebda670ed3f5c45252401424632824e819622a04032f240f800e8c713 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00040201048
0xd21b541379a0ac3eead32fdc7dfae98acae9ab1b0f41cf1a46b93f0eca81530a14 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00028872718
0xca86c2bbb75cf9f5eefd1e38c3ad5a9bc4ddb63850bfd1930b4d56586675c48115 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000232376
0x936f07acb4cef5103519245d97840d5a06fc11994ded19e088daa12d3f50570b16 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000319517
0xbc01bb5e1aca2a7b8b57fda357901665377db0f020b0e3ec31324126b9eb722717 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000232376
0x69bbb5f99122a4b5012fa3616a4e20b618c5357ec14ab6cfc82a4e2074c573db18 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000232376
0x996fdac1130e0d8400fda3150581b7fb639f1135482d5eab7fdb0d43b5e6877819 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0002265666
0x8b730adc302740ff769fbf1310fd9e11a7ac417a9a0df8f7f0653fe9e61152d220 days 11 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000124357468
0xb9c3382230b781f454394a0a2b90639181697a60fd527ce3abd0571032565e0621 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000145235
0x112bc0d7c4a60bbb20d743bf673e0cd7ae889d866f63a31311a1236fd6ca4cd522 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0001045692
0x4348e50f19ef19bbc03503f0015084dce419b4d3f008ccefbcfb4a4535ff73ae23 days 12 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0001888055
0xdd5f4739be95e7305e51c8fc874a6af101b00b1d7062653a040c1375f69de86524 days 10 hrs ago0x11104d0b5744033e3e65c9ff74494d90b655e95a  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a1.12148 Ether0.001066285
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 16 Internal Transactions

ParentTxHash Block Age From To Value
0xdd5f4739be95e7305e51c8fc874a6af101b00b1d7062653a040c1375f69de865636992024 days 10 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee1.12148 Ether
0x1dc1154a494b56c85e2e584f6f6215ae9fe8792628cacec98def395334519266606473875 days 17 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.11425599218893023 Ether
0x12624d4483896109b6a1bfbb6375d45a42f30a78e9204636ae655c92b73540d9603272881 days 2 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.5163093700511094 Ether
0x4b181239b55df48ca9c0106f4f329d4d40b30681e398bb44da4d29195bcd98035905743102 days 17 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.07418476245451 Ether
0x6f153f3cbca2000bf1bf2e94591cd7ce320baebb7742f00e4e5585cd8893f9af5905736102 days 17 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.07418476245451 Ether
0x4645549f11438850a2f8d61c8733fc17aa8bffd83928516838bc1d17d567b7175851756112 days 4 mins ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.077585400467879 Ether
0xbea46582e44b9566bab233b6269423a83095286aa7c7f92a2ad013e35efbcc695821091117 days 6 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.001460055535203266 Ether
0xa831f436c98786eb67ab8b45800459612dd29ef1f252a773af7007d0ee9b6c9b5818436117 days 16 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.13956205427508042 Ether
0x97fd2072b904cf8662a8e86b828b7185c3c5e7ea7ac5fa9238e45ad588becc1b5800636120 days 17 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.20952915 Ether
0xfebd202d777c86369fa412af5164b8b8d5c689310c6ae0cbcced099a5fd6effd5799400120 days 22 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.9778026818719654 Ether
0xdef72e9fb8fcca42e7d22ab9cd14b6fca8164c64621fb0ea287f4062f2b98b805795356121 days 15 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee1.0804463380688158 Ether
0x53d41744fd530175680d74cd2dbd43527521d0eb5be95452449b84371c7fa25a5791289122 days 8 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.7108199592557999 Ether
0x5e6b958720599445df796d67c05dc723e5dd02209c7c112b559a7a557976771f5781681123 days 23 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6656710763128048 Ether
0xcd86f9258ab4827229f49182ea9c350f01b1f8840b747e13cc5e064cd1f2efc75779168124 days 10 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.13313421526256095 Ether
0xa0b6d4c65ec0a596554155aa8a7d69344530b7e9967fc533b41ab3ccb58d38ef5778465124 days 13 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6656710763128048 Ether
0xb3723944a23dd6dd199b93e79b0acbe59df1b96d3e930dc10d601a6aed4f6bfe5750001129 days 14 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.06 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.