ETH Price: $3,454.39 (-1.09%)
Gas: 9 Gwei

Contract

0xA7261F7d2cb31464408b008913a3De249316da8d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer57977822018-06-16 7:32:532224 days ago1529134373IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57977792018-06-16 7:31:132224 days ago1529134273IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57977742018-06-16 7:30:122224 days ago1529134212IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57977702018-06-16 7:29:352224 days ago1529134175IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57977632018-06-16 7:27:432224 days ago1529134063IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57977602018-06-16 7:27:082224 days ago1529134028IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57976892018-06-16 7:10:052224 days ago1529133005IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57976872018-06-16 7:09:472224 days ago1529132987IN
Uppsala: Token Sale
0.001 ETH0.0001266
Transfer57976672018-06-16 7:03:572224 days ago1529132637IN
Uppsala: Token Sale
0.002 ETH0.0001266
Transfer57976602018-06-16 7:02:192224 days ago1529132539IN
Uppsala: Token Sale
0.002 ETH0.000153317
Transfer57972632018-06-16 5:20:002224 days ago1529126400IN
Uppsala: Token Sale
0.001 ETH0.000153317
Transfer57972582018-06-16 5:18:372224 days ago1529126317IN
Uppsala: Token Sale
0.001 ETH0.000153317
Transfer57970552018-06-16 4:26:122224 days ago1529123172IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57970422018-06-16 4:21:562224 days ago1529122916IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57970382018-06-16 4:20:442224 days ago1529122844IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57968342018-06-16 3:33:002224 days ago1529119980IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57968302018-06-16 3:32:232224 days ago1529119943IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57968212018-06-16 3:31:032224 days ago1529119863IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57968182018-06-16 3:29:232224 days ago1529119763IN
Uppsala: Token Sale
0.001 ETH0.000109515
Transfer57968132018-06-16 3:27:482224 days ago1529119668IN
Uppsala: Token Sale
0.001 ETH0.0001055
Transfer57967732018-06-16 3:18:562224 days ago1529119136IN
Uppsala: Token Sale
0.001 ETH0.0001055
Transfer57967732018-06-16 3:18:562224 days ago1529119136IN
Uppsala: Token Sale
0.001 ETH0.0001055
Transfer57967732018-06-16 3:18:562224 days ago1529119136IN
Uppsala: Token Sale
0.001 ETH0.0001055
Transfer57967732018-06-16 3:18:562224 days ago1529119136IN
Uppsala: Token Sale
0.001 ETH0.0001055
Transfer57967682018-06-16 3:17:212224 days ago1529119041IN
Uppsala: Token Sale
0.001 ETH0.0001055
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
56863712018-05-27 15:43:572243 days ago1527435837
Uppsala: Token Sale
0.196098 ETH
56858672018-05-27 13:31:182243 days ago1527427878
Uppsala: Token Sale
0.05 ETH
56858382018-05-27 13:26:262243 days ago1527427586
Uppsala: Token Sale
0.1 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
2.1 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
7 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
1.5 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
0.95 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
10 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
5.1 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
10 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
2 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
6 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
7 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
0.85 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
10 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
0.50183565 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
9.25 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
0.95 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
10 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
7 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
10 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
4.5 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
10 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
0.61940235 ETH
56857672018-05-27 13:03:072243 days ago1527426187
Uppsala: Token Sale
7 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UppsalaCrowdsale

Compiler Version
v0.4.23+commit.124ca40d

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-05-22
*/

pragma solidity 0.4.23;

// File: zeppelin-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 OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


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

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

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

}

// File: zeppelin-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: zeppelin-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: zeppelin-solidity/contracts/token/ERC20/BasicToken.sol

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

  mapping(address => uint256) balances;

  uint256 totalSupply_;

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

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

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

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

}

// File: zeppelin-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: zeppelin-solidity/contracts/token/ERC20/StandardToken.sol

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

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


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

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

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

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

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

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

}

// File: zeppelin-solidity/contracts/token/ERC20/MintableToken.sol

/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */
contract MintableToken is StandardToken, Ownable {
  event Mint(address indexed to, uint256 amount);
  event MintFinished();

  bool public mintingFinished = false;


  modifier canMint() {
    require(!mintingFinished);
    _;
  }

  /**
   * @dev Function to mint tokens
   * @param _to The address that will receive the minted tokens.
   * @param _amount The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
    totalSupply_ = totalSupply_.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    emit Mint(_to, _amount);
    emit Transfer(address(0), _to, _amount);
    return true;
  }

  /**
   * @dev Function to stop minting new tokens.
   * @return True if the operation was successful.
   */
  function finishMinting() onlyOwner canMint public returns (bool) {
    mintingFinished = true;
    emit MintFinished();
    return true;
  }
}

// File: zeppelin-solidity/contracts/lifecycle/Pausable.sol

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

  bool public paused = false;


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

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

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

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

// File: zeppelin-solidity/contracts/token/ERC20/PausableToken.sol

/**
 * @title Pausable token
 * @dev StandardToken modified with pausable transfers.
 **/
contract PausableToken is StandardToken, Pausable {

  function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
    return super.transfer(_to, _value);
  }

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

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

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

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

// File: contracts/UppsalaToken.sol

contract UppsalaToken is MintableToken, PausableToken {
	string public constant name = 'SENTINEL PROTOCOL';
	string public constant  symbol = 'UPP';
	uint8 public constant decimals = 18;
}

// File: zeppelin-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
   */
  function Crowdsale(uint256 _rate, address _wallet, ERC20 _token) public {
    require(_rate > 0);
    require(_wallet != address(0));
    require(_token != address(0));

    rate = _rate;
    wallet = _wallet;
    token = _token;
  }

  // -----------------------------------------
  // Crowdsale external interface
  // -----------------------------------------

  /**
   * @dev fallback function ***DO NOT OVERRIDE***
   */
  function () external payable {
    buyTokens(msg.sender);
  }

  /**
   * @dev low level token purchase ***DO NOT OVERRIDE***
   * @param _beneficiary Address performing the token purchase
   */
  function buyTokens(address _beneficiary) public payable {

    uint256 weiAmount = msg.value;
    _preValidatePurchase(_beneficiary, weiAmount);

    // calculate token amount to be created
    uint256 tokens = _getTokenAmount(weiAmount);

    // update state
    weiRaised = weiRaised.add(weiAmount);

    _processPurchase(_beneficiary, tokens);
    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: zeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol

/**
 * @title CappedCrowdsale
 * @dev Crowdsale with a limit for total contributions.
 */
contract CappedCrowdsale is Crowdsale {
  using SafeMath for uint256;

  uint256 public cap;

  /**
   * @dev Constructor, takes maximum amount of wei accepted in the crowdsale.
   * @param _cap Max amount of wei to be contributed
   */
  function CappedCrowdsale(uint256 _cap) public {
    require(_cap > 0);
    cap = _cap;
  }

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

  /**
   * @dev Extend parent behavior requiring purchase to respect the funding cap.
   * @param _beneficiary Token purchaser
   * @param _weiAmount Amount of wei contributed
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
    super._preValidatePurchase(_beneficiary, _weiAmount);
    require(weiRaised.add(_weiAmount) <= cap);
  }

}

// File: contracts/UserMinMaxCrowdsale.sol

contract UserMinMaxCrowdsale is Crowdsale, Ownable {
  using SafeMath for uint256;

	uint256 public min;
  uint256 public max;

	mapping(address => uint256) public contributions;

	function UserMinMaxCrowdsale(uint256 _min, uint256 _max) public {
		require(_min > 0);
		require(_max > _min);
		// each person should contribute between min-max amount of wei
		min = _min;
		max = _max;
	}

	function getUserContribution(address _beneficiary) public view returns (uint256) {
    return contributions[_beneficiary];
  }

  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
    super._preValidatePurchase(_beneficiary, _weiAmount);
    require(contributions[_beneficiary].add(_weiAmount) <= max);
		require(contributions[_beneficiary].add(_weiAmount) >= min);
  }

	function _updatePurchasingState(address _beneficiary, uint256 _weiAmount) internal {
		super._updatePurchasingState(_beneficiary, _weiAmount);
		// update total contribution
		contributions[_beneficiary] = contributions[_beneficiary].add(_weiAmount);
	}
}

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

/**
 * @title TimedCrowdsale
 * @dev Crowdsale accepting contributions only within a time frame.
 */
contract TimedCrowdsale is Crowdsale {
  using SafeMath for uint256;

  uint256 public openingTime;
  uint256 public closingTime;

  /**
   * @dev Reverts if not in crowdsale time range.
   */
  modifier onlyWhileOpen {
    // solium-disable-next-line security/no-block-members
    require(block.timestamp >= openingTime && block.timestamp <= closingTime);
    _;
  }

  /**
   * @dev Constructor, takes crowdsale opening and closing times.
   * @param _openingTime Crowdsale opening time
   * @param _closingTime Crowdsale closing time
   */
  function TimedCrowdsale(uint256 _openingTime, uint256 _closingTime) public {
    // solium-disable-next-line security/no-block-members
    require(_openingTime >= block.timestamp);
    require(_closingTime >= _openingTime);

    openingTime = _openingTime;
    closingTime = _closingTime;
  }

  /**
   * @dev Checks whether the period in which the crowdsale is open has already elapsed.
   * @return Whether crowdsale period has elapsed
   */
  function hasClosed() public view returns (bool) {
    // solium-disable-next-line security/no-block-members
    return block.timestamp > closingTime;
  }

  /**
   * @dev Extend parent behavior requiring to be within contributing period
   * @param _beneficiary Token purchaser
   * @param _weiAmount Amount of wei contributed
   */
  function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal onlyWhileOpen {
    super._preValidatePurchase(_beneficiary, _weiAmount);
  }

}

// File: zeppelin-solidity/contracts/crowdsale/validation/WhitelistedCrowdsale.sol

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

  mapping(address => bool) public whitelist;

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

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

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

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

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

}

// File: contracts/UppsalaCrowdsale.sol

contract UppsalaCrowdsale is WhitelistedCrowdsale, UserMinMaxCrowdsale, CappedCrowdsale,
TimedCrowdsale, Pausable {
  using SafeMath for uint256;

  uint256 public withdrawTime;
  mapping(address => uint256) public balances;
  
  function UppsalaCrowdsale(uint256 rate, 
                            uint256 openTime, 
                            uint256 closeTime, 
                            uint256 totalCap,
                            uint256 userMin,
                            uint256 userMax,
                            uint256 _withdrawTime,
                            address account,
                            StandardToken token)
           Crowdsale(rate, account, token)
           TimedCrowdsale(openTime, closeTime)
           CappedCrowdsale(totalCap)
           UserMinMaxCrowdsale(userMin, userMax) public
  {
    require(_withdrawTime > block.timestamp);
    withdrawTime = _withdrawTime;
  }

  function withdrawTokens(address _beneficiary) public {
    require(block.timestamp > withdrawTime);
    uint256 amount = balances[_beneficiary];
    require(amount > 0);
    balances[_beneficiary] = 0;
    _deliverTokens(_beneficiary, amount);
  }

  function _processPurchase(
    address _beneficiary,
    uint256 _tokenAmount
  )
    internal
  {
    balances[_beneficiary] = balances[_beneficiary].add(_tokenAmount);
  }

  function buyTokens(address beneficiary) public payable whenNotPaused {
    // limiting gas price
    require(tx.gasprice <= 50000000000 wei);
    // limiting gas limt up to around 200000-210000
    require(msg.gas <= 190000);
    super.buyTokens(beneficiary);
  }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"hasClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","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":"cap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"contributions","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"withdrawTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"closingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"capReached","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"max","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"removeFromWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiaries","type":"address[]"}],"name":"addManyToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"whitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"openingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"getUserContribution","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"addToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"min","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"rate","type":"uint256"},{"name":"openTime","type":"uint256"},{"name":"closeTime","type":"uint256"},{"name":"totalCap","type":"uint256"},{"name":"userMin","type":"uint256"},{"name":"userMax","type":"uint256"},{"name":"_withdrawTime","type":"uint256"},{"name":"account","type":"address"},{"name":"token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","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"}]

60806040526000600c60006101000a81548160ff02191690831515021790555034801561002b57600080fd5b50604051610120806117ab83398101806040528101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505087878787878d87876000831115156100b657600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156100f257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561012e57600080fd5b8260028190555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008211151561020957600080fd5b818111151561021757600080fd5b8160068190555080600781905550505060008111151561023657600080fd5b806009819055505042821015151561024d57600080fd5b81811015151561025c57600080fd5b81600a8190555080600b819055505050428311151561027a57600080fd5b82600d81905550505050505050505050611512806102996000396000f300608060405260043610610154576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631515bc2b1461015f57806327e235e31461018e5780632c4e722e146101e5578063355274ea146102105780633f4ba83a1461023b5780634042b66f1461025257806342e94c901461027d57806345cb3dde146102d457806349df728c146102ff5780634b6753bc146103425780634f9359451461036d578063521eb2731461039c5780635c975abb146103f35780636ac5db19146104225780638456cb591461044d5780638ab1d681146104645780638c10671c146104a75780638da5cb5b146104e25780639b19251a14610539578063b7a8807c14610594578063bb8b2b47146105bf578063e43252d714610616578063ec8ac4d814610659578063f2fde38b1461068f578063f8897945146106d2578063fc0c546a146106fd575b61015d33610754565b005b34801561016b57600080fd5b506101746107a2565b604051808215151515815260200191505060405180910390f35b34801561019a57600080fd5b506101cf600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107ae565b6040518082815260200191505060405180910390f35b3480156101f157600080fd5b506101fa6107c6565b6040518082815260200191505060405180910390f35b34801561021c57600080fd5b506102256107cc565b6040518082815260200191505060405180910390f35b34801561024757600080fd5b506102506107d2565b005b34801561025e57600080fd5b50610267610892565b6040518082815260200191505060405180910390f35b34801561028957600080fd5b506102be600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610898565b6040518082815260200191505060405180910390f35b3480156102e057600080fd5b506102e96108b0565b6040518082815260200191505060405180910390f35b34801561030b57600080fd5b50610340600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108b6565b005b34801561034e57600080fd5b5061035761096c565b6040518082815260200191505060405180910390f35b34801561037957600080fd5b50610382610972565b604051808215151515815260200191505060405180910390f35b3480156103a857600080fd5b506103b1610981565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103ff57600080fd5b506104086109a7565b604051808215151515815260200191505060405180910390f35b34801561042e57600080fd5b506104376109ba565b6040518082815260200191505060405180910390f35b34801561045957600080fd5b506104626109c0565b005b34801561047057600080fd5b506104a5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a81565b005b3480156104b357600080fd5b506104e0600480360381019080803590602001908201803590602001919091929391929390505050610b38565b005b3480156104ee57600080fd5b506104f7610c3a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561054557600080fd5b5061057a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c60565b604051808215151515815260200191505060405180910390f35b3480156105a057600080fd5b506105a9610c80565b6040518082815260200191505060405180910390f35b3480156105cb57600080fd5b50610600600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c86565b6040518082815260200191505060405180910390f35b34801561062257600080fd5b50610657600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ccf565b005b61068d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610754565b005b34801561069b57600080fd5b506106d0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d86565b005b3480156106de57600080fd5b506106e7610ede565b6040518082815260200191505060405180910390f35b34801561070957600080fd5b50610712610ee4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600c60009054906101000a900460ff1615151561077057600080fd5b640ba43b74003a1115151561078457600080fd5b6202e6305a1115151561079657600080fd5b61079f81610f09565b50565b6000600b544211905090565b600e6020528060005260406000206000915090505481565b60025481565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561082e57600080fd5b600c60009054906101000a900460ff16151561084957600080fd5b6000600c60006101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60035481565b60086020528060005260406000206000915090505481565b600d5481565b6000600d54421115156108c857600080fd5b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111151561091957600080fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109688282610fd7565b5050565b600b5481565b60006009546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60009054906101000a900460ff1681565b60075481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a1c57600080fd5b600c60009054906101000a900460ff16151515610a3857600080fd5b6001600c60006101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610add57600080fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b9657600080fd5b600090505b82829050811015610c35576001600560008585858181101515610bba57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610b9b565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915054906101000a900460ff1681565b600a5481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d2b57600080fd5b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610de257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e1e57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080349150610f1983836110db565b610f2282611108565b9050610f398260035461112690919063ffffffff16565b600381905550610f498382611142565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a3610fc083836111db565b610fc861127e565b610fd283836112e9565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561109b57600080fd5b505af11580156110af573d6000803e3d6000fd5b505050506040513d60208110156110c557600080fd5b8101908080519060200190929190505050505050565b600a5442101580156110ef5750600b544211155b15156110fa57600080fd5b61110482826112ed565b5050565b600061111f6002548361132090919063ffffffff16565b9050919050565b6000818301905082811015151561113957fe5b80905092915050565b61119481600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6111e58282611358565b61123781600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156112e6573d6000803e3d6000fd5b50565b5050565b6112f7828261135c565b60095461130f8260035461112690919063ffffffff16565b1115151561131c57600080fd5b5050565b6000808314156113335760009050611352565b818302905081838281151561134457fe5b0414151561134e57fe5b8090505b92915050565b5050565b611366828261142e565b6007546113bb82600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b111515156113c857600080fd5b60065461141d82600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b1015151561142a57600080fd5b5050565b81600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561148757600080fd5b6114918383611496565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156114d257600080fd5b600081141515156114e257600080fd5b50505600a165627a7a72305820300bd6a52e7f4824d96aeb5c96fa99566f8d3a6674ff45468c228c7c98ead1d700290000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000005b0aabd0000000000000000000000000000000000000000000000000000000005b1d20d00000000000000000000000000000000000000000000001a6d6beb1d42ee0000000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000005b23b850000000000000000000000000b4e23d717ed13345498f100c9eacbb256916ae1a000000000000000000000000c86d054809623432210c107af2e3f619dcfbf652

Deployed Bytecode

0x608060405260043610610154576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631515bc2b1461015f57806327e235e31461018e5780632c4e722e146101e5578063355274ea146102105780633f4ba83a1461023b5780634042b66f1461025257806342e94c901461027d57806345cb3dde146102d457806349df728c146102ff5780634b6753bc146103425780634f9359451461036d578063521eb2731461039c5780635c975abb146103f35780636ac5db19146104225780638456cb591461044d5780638ab1d681146104645780638c10671c146104a75780638da5cb5b146104e25780639b19251a14610539578063b7a8807c14610594578063bb8b2b47146105bf578063e43252d714610616578063ec8ac4d814610659578063f2fde38b1461068f578063f8897945146106d2578063fc0c546a146106fd575b61015d33610754565b005b34801561016b57600080fd5b506101746107a2565b604051808215151515815260200191505060405180910390f35b34801561019a57600080fd5b506101cf600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107ae565b6040518082815260200191505060405180910390f35b3480156101f157600080fd5b506101fa6107c6565b6040518082815260200191505060405180910390f35b34801561021c57600080fd5b506102256107cc565b6040518082815260200191505060405180910390f35b34801561024757600080fd5b506102506107d2565b005b34801561025e57600080fd5b50610267610892565b6040518082815260200191505060405180910390f35b34801561028957600080fd5b506102be600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610898565b6040518082815260200191505060405180910390f35b3480156102e057600080fd5b506102e96108b0565b6040518082815260200191505060405180910390f35b34801561030b57600080fd5b50610340600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108b6565b005b34801561034e57600080fd5b5061035761096c565b6040518082815260200191505060405180910390f35b34801561037957600080fd5b50610382610972565b604051808215151515815260200191505060405180910390f35b3480156103a857600080fd5b506103b1610981565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103ff57600080fd5b506104086109a7565b604051808215151515815260200191505060405180910390f35b34801561042e57600080fd5b506104376109ba565b6040518082815260200191505060405180910390f35b34801561045957600080fd5b506104626109c0565b005b34801561047057600080fd5b506104a5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a81565b005b3480156104b357600080fd5b506104e0600480360381019080803590602001908201803590602001919091929391929390505050610b38565b005b3480156104ee57600080fd5b506104f7610c3a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561054557600080fd5b5061057a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c60565b604051808215151515815260200191505060405180910390f35b3480156105a057600080fd5b506105a9610c80565b6040518082815260200191505060405180910390f35b3480156105cb57600080fd5b50610600600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c86565b6040518082815260200191505060405180910390f35b34801561062257600080fd5b50610657600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ccf565b005b61068d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610754565b005b34801561069b57600080fd5b506106d0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d86565b005b3480156106de57600080fd5b506106e7610ede565b6040518082815260200191505060405180910390f35b34801561070957600080fd5b50610712610ee4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600c60009054906101000a900460ff1615151561077057600080fd5b640ba43b74003a1115151561078457600080fd5b6202e6305a1115151561079657600080fd5b61079f81610f09565b50565b6000600b544211905090565b600e6020528060005260406000206000915090505481565b60025481565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561082e57600080fd5b600c60009054906101000a900460ff16151561084957600080fd5b6000600c60006101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60035481565b60086020528060005260406000206000915090505481565b600d5481565b6000600d54421115156108c857600080fd5b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111151561091957600080fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109688282610fd7565b5050565b600b5481565b60006009546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60009054906101000a900460ff1681565b60075481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a1c57600080fd5b600c60009054906101000a900460ff16151515610a3857600080fd5b6001600c60006101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610add57600080fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b9657600080fd5b600090505b82829050811015610c35576001600560008585858181101515610bba57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610b9b565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915054906101000a900460ff1681565b600a5481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d2b57600080fd5b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610de257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e1e57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080349150610f1983836110db565b610f2282611108565b9050610f398260035461112690919063ffffffff16565b600381905550610f498382611142565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a3610fc083836111db565b610fc861127e565b610fd283836112e9565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561109b57600080fd5b505af11580156110af573d6000803e3d6000fd5b505050506040513d60208110156110c557600080fd5b8101908080519060200190929190505050505050565b600a5442101580156110ef5750600b544211155b15156110fa57600080fd5b61110482826112ed565b5050565b600061111f6002548361132090919063ffffffff16565b9050919050565b6000818301905082811015151561113957fe5b80905092915050565b61119481600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6111e58282611358565b61123781600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156112e6573d6000803e3d6000fd5b50565b5050565b6112f7828261135c565b60095461130f8260035461112690919063ffffffff16565b1115151561131c57600080fd5b5050565b6000808314156113335760009050611352565b818302905081838281151561134457fe5b0414151561134e57fe5b8090505b92915050565b5050565b611366828261142e565b6007546113bb82600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b111515156113c857600080fd5b60065461141d82600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461112690919063ffffffff16565b1015151561142a57600080fd5b5050565b81600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561148757600080fd5b6114918383611496565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156114d257600080fd5b600081141515156114e257600080fd5b50505600a165627a7a72305820300bd6a52e7f4824d96aeb5c96fa99566f8d3a6674ff45468c228c7c98ead1d70029

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

0000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000005b0aabd0000000000000000000000000000000000000000000000000000000005b1d20d00000000000000000000000000000000000000000000001a6d6beb1d42ee0000000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000005b23b850000000000000000000000000b4e23d717ed13345498f100c9eacbb256916ae1a000000000000000000000000c86d054809623432210c107af2e3f619dcfbf652

-----Decoded View---------------
Arg [0] : rate (uint256): 5000
Arg [1] : openTime (uint256): 1527426000
Arg [2] : closeTime (uint256): 1528635600
Arg [3] : totalCap (uint256): 7800000000000000000000
Arg [4] : userMin (uint256): 500000000000000000
Arg [5] : userMax (uint256): 10000000000000000000
Arg [6] : _withdrawTime (uint256): 1529067600
Arg [7] : account (address): 0xb4E23D717ED13345498F100c9EacBb256916AE1a
Arg [8] : token (address): 0xC86D054809623432210c107af2e3F619DcFbf652

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [1] : 000000000000000000000000000000000000000000000000000000005b0aabd0
Arg [2] : 000000000000000000000000000000000000000000000000000000005b1d20d0
Arg [3] : 0000000000000000000000000000000000000000000001a6d6beb1d42ee00000
Arg [4] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [5] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [6] : 000000000000000000000000000000000000000000000000000000005b23b850
Arg [7] : 000000000000000000000000b4e23d717ed13345498f100c9eacbb256916ae1a
Arg [8] : 000000000000000000000000c86d054809623432210c107af2e3f619dcfbf652


Swarm Source

bzzr://300bd6a52e7f4824d96aeb5c96fa99566f8d3a6674ff45468c228c7c98ead1d7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.