Sponsored:   Color - Revolutionizing the Dapp Ecosystem, Bounty & Airdrop, Get 240,000 COL NOW!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 85 txns
 Latest 25 txns from a total Of 85 transactions

TxHash Age From To Value [TxFee]
0x45ca24dd04e0f1376aee45754d0c88a0427dae7a3b911470ddf3765d4d605e6213 days 13 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00135475208
0x425931ae8adf999f769e41f77bf3dd36f5dcea95433b3979ad8a6a5e3eb0591514 days 13 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000377611
0xe40e616e1bbddf349b28a80072166ff4b98a08f18ca6d311f1c3cfc9132fee5315 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00002933747
0x3b6e78877f9b26a26dfd3740c0be3a42f82073ece73f642b5a48356bf5e2968f16 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000435705
0xa57e825023c8d825c8b21031a313a1fd4cd81013471735b534410e42daf08fdc17 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0xf1ddaa405bf773fecb22074f114e626ba60bb35e7cbea4f47b8e67cf9a8e57ec18 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0x4836f285dc844b51069f1de6082fd76530f8441353d98604bf69634d040ccdfb19 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0xa7c9d0efe7c9858f78773604aa2e6108f8f1a189a64fb77fff372c096ab82ac120 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0x1dc1154a494b56c85e2e584f6f6215ae9fe8792628cacec98def39533451926620 days 19 hrs ago0x818329ede101055ddd6baf887eafca90a8c73d2b  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0.11425599218893 Ether0.000096935
0x5e026ec05ced477edd304d0861a51f1e9fa951c11809bc0f5fafa820336ace2a21 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0xe6e34d303763631ed536dd6fb818d0d3afaf0d31b7369dbb798a57f94c058b0722 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0xaced1fe51566a21972ee53308dde821977f0ab568630a43ca14bbe48933f9e7123 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0xe8669999a41477ee407ceecab9b71e85bc69555502f8868012af6a1ba4a9b65a24 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0x0ee0c38c6cb75d6762b75b64112d122d6ba8b051ddf8660612400165ac97f47125 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0x12624d4483896109b6a1bfbb6375d45a42f30a78e9204636ae655c92b73540d926 days 4 hrs ago0xf18a8c841104921cfb895f32593096ecf4759f75  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0.516309370051109 Ether0.00016387
0x28c37d3b8e1a65ad91e1671076b2e282a76aec2290eaec92c5308afbbd20ed0326 days 13 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00003805157
0xc9a875b34c758ad5cef5c255ef986d34724000e77e3fedb6429040cbca24365227 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00003514687
0x3d6db2af86b2b6cf3f39f02ba26e78c998d2fca31cf86a9f255311ce9f65227228 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00006128917
0x37cc22c68e9be51a661420f72b7e2f3a295a45543db26daca14702d42cef617829 days 13 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000029047
0xbc83f1f28f9e1807d3e91c397d84d97e2f426c68a973995fad9ee0031f25892230 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000406658
0x9c277b8c6d18d9b2da27837d565ced4c9dd178c93f4df5f2aeec7a2b69a66f3331 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.00005867494
0xdd198c1505dee8bb29f0337a09057ff605302ea83edc35245c8bcb17e0b7bfcc32 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000058094
0x62a5335f6fccfd90d78de50adf327172cb3cbac7a50a31eaaf63b71c3dee507933 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.0000319517
0x8befeb284d3d3dd3c86a8ebee27337d78503f8d2d28cac872cefc4af8570baef34 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000058094
0x6c3cd6cb9c7bb6ed69e474a4c518887c947989347d918f020d65adc79049cb4c35 days 14 hrs ago0x2f1c3f09f1049642ae53678c044a5e6fbc79b4e4  IN   0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0 Ether0.000058094
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 15 Internal Transactions

ParentTxHash Block Age From To Value
0x1dc1154a494b56c85e2e584f6f6215ae9fe8792628cacec98def395334519266606473820 days 19 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.11425599218893023 Ether
0x12624d4483896109b6a1bfbb6375d45a42f30a78e9204636ae655c92b73540d9603272826 days 4 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.5163093700511094 Ether
0x4b181239b55df48ca9c0106f4f329d4d40b30681e398bb44da4d29195bcd9803590574347 days 18 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.07418476245451 Ether
0x6f153f3cbca2000bf1bf2e94591cd7ce320baebb7742f00e4e5585cd8893f9af590573647 days 18 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.07418476245451 Ether
0x4645549f11438850a2f8d61c8733fc17aa8bffd83928516838bc1d17d567b717585175657 days 1 hr ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.077585400467879 Ether
0xbea46582e44b9566bab233b6269423a83095286aa7c7f92a2ad013e35efbcc69582109162 days 7 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.001460055535203266 Ether
0xa831f436c98786eb67ab8b45800459612dd29ef1f252a773af7007d0ee9b6c9b581843662 days 18 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.13956205427508042 Ether
0x97fd2072b904cf8662a8e86b828b7185c3c5e7ea7ac5fa9238e45ad588becc1b580063665 days 19 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.20952915 Ether
0xfebd202d777c86369fa412af5164b8b8d5c689310c6ae0cbcced099a5fd6effd579940066 days 7 mins ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.9778026818719654 Ether
0xdef72e9fb8fcca42e7d22ab9cd14b6fca8164c64621fb0ea287f4062f2b98b80579535666 days 16 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee1.0804463380688158 Ether
0x53d41744fd530175680d74cd2dbd43527521d0eb5be95452449b84371c7fa25a579128967 days 9 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.7108199592557999 Ether
0x5e6b958720599445df796d67c05dc723e5dd02209c7c112b559a7a557976771f578168169 days 1 hr ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6656710763128048 Ether
0xcd86f9258ab4827229f49182ea9c350f01b1f8840b747e13cc5e064cd1f2efc7577916869 days 12 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.13313421526256095 Ether
0xa0b6d4c65ec0a596554155aa8a7d69344530b7e9967fc533b41ab3ccb58d38ef577846569 days 15 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.6656710763128048 Ether
0xb3723944a23dd6dd199b93e79b0acbe59df1b96d3e930dc10d601a6aed4f6bfe575000174 days 15 hrs ago0x8acc2f66f4efed64e89f8a0312e40025502ffc1a0xa048926f1d70ed931a99345fd80c3a35141775ee0.06 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to EventStructWrongData (very low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: UpdatableCrowdsale
Compiler Version: 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

-----Decoded View---------------
Found 3 constructor arguments :
Arg [0] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [1] : 000000000000000000000000a048926f1d70ed931a99345fd80c3a35141775ee
Arg [2] : 0000000000000000000000002f5cdc81a729b750f3b733cb95660e788441c71e


   Swarm Source:
bzzr://9339c34ebb671c62ff554982d39db678172c9005dc854de491e61d1a80ac89c6

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.