Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Latest 25 from a total of 919 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Release Locked B... | 7262050 | 2212 days ago | IN | 0 ETH | 0.00031138 | ||||
Release Locked B... | 7248511 | 2215 days ago | IN | 0 ETH | 0.00189165 | ||||
Release Locked B... | 7194253 | 2228 days ago | IN | 0 ETH | 0.00006227 | ||||
Release Locked B... | 6959768 | 2271 days ago | IN | 0 ETH | 0.00009341 | ||||
Release Locked B... | 6908475 | 2280 days ago | IN | 0 ETH | 0.00015537 | ||||
Release Locked B... | 6905115 | 2281 days ago | IN | 0 ETH | 0.00032296 | ||||
Release Locked B... | 6904721 | 2281 days ago | IN | 0 ETH | 0.00015569 | ||||
Release Locked B... | 6904412 | 2281 days ago | IN | 0 ETH | 0.00009341 | ||||
Release Locked B... | 6902126 | 2281 days ago | IN | 0 ETH | 0.0023069 | ||||
Release Locked B... | 6901826 | 2281 days ago | IN | 0 ETH | 0.00064593 | ||||
Release Locked B... | 6897206 | 2282 days ago | IN | 0 ETH | 0.00189165 | ||||
Release Locked B... | 6897187 | 2282 days ago | IN | 0 ETH | 0.00096612 | ||||
Release Locked B... | 6896442 | 2282 days ago | IN | 0 ETH | 0.00070692 | ||||
Release Locked B... | 6896360 | 2282 days ago | IN | 0 ETH | 0.00070692 | ||||
Release Locked B... | 6896290 | 2282 days ago | IN | 0 ETH | 0.00070692 | ||||
Release Locked B... | 6893977 | 2282 days ago | IN | 0 ETH | 0.00065389 | ||||
Release Locked B... | 6893140 | 2283 days ago | IN | 0 ETH | 0.00138414 | ||||
Release Locked B... | 6892081 | 2283 days ago | IN | 0 ETH | 0.00027682 | ||||
Release Locked B... | 6892076 | 2283 days ago | IN | 0 ETH | 0.00027682 | ||||
Release Locked B... | 6892061 | 2283 days ago | IN | 0 ETH | 0.00013035 | ||||
Release Locked B... | 6892042 | 2283 days ago | IN | 0 ETH | 0.00013035 | ||||
Release Locked B... | 6891975 | 2283 days ago | IN | 0 ETH | 0.00009341 | ||||
Release Locked B... | 6891814 | 2283 days ago | IN | 0 ETH | 0.0001827 | ||||
Transfer | 6891795 | 2283 days ago | IN | 0 ETH | 0.00006058 | ||||
Release Locked B... | 6885769 | 2284 days ago | IN | 0 ETH | 0.00075404 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 5666355 | 2488 days ago | 7.5 ETH | ||||
Transfer | 5663163 | 2489 days ago | 10 ETH | ||||
Transfer | 5663154 | 2489 days ago | 53 ETH | ||||
Transfer | 5663154 | 2489 days ago | 299.999 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663154 | 2489 days ago | 35 ETH | ||||
Transfer | 5663154 | 2489 days ago | 30 ETH | ||||
Transfer | 5663154 | 2489 days ago | 30 ETH | ||||
Transfer | 5663154 | 2489 days ago | 100 ETH | ||||
Transfer | 5663154 | 2489 days ago | 197 ETH | ||||
Transfer | 5663154 | 2489 days ago | 30 ETH | ||||
Transfer | 5663154 | 2489 days ago | 300 ETH | ||||
Transfer | 5663153 | 2489 days ago | 243 ETH | ||||
Transfer | 5663153 | 2489 days ago | 91.48 ETH | ||||
Transfer | 5663153 | 2489 days ago | 107 ETH | ||||
Transfer | 5663153 | 2489 days ago | 300 ETH | ||||
Transfer | 5663153 | 2489 days ago | 55 ETH | ||||
Transfer | 5663153 | 2489 days ago | 300 ETH |
Loading...
Loading
Contract Name:
UppsalaPresale
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/UppsalaPresale.sol contract UppsalaPresale is WhitelistedCrowdsale, UserMinMaxCrowdsale, CappedCrowdsale, TimedCrowdsale, Pausable { using SafeMath for uint256; mapping(address => uint256) public balances; mapping(address => uint256) public lockedBalances; uint256 public bonusRate; uint256 public withdrawTime; uint256 public releaseTime; uint256 public totalBonusGiven; event BonusRelease(address beneficiary, uint256 value); function UppsalaPresale(uint256 rate, uint256 openTime, uint256 closeTime, uint256 totalCap, uint256 userMin, uint256 userMax, uint256 _withdrawTime, uint256 _bonusRate, uint256 _releaseTime, address account, StandardToken token) Crowdsale(rate, account, token) TimedCrowdsale(openTime, closeTime) CappedCrowdsale(totalCap) UserMinMaxCrowdsale(userMin, userMax) public { require(_bonusRate > 0); require(_releaseTime > block.timestamp); require(_withdrawTime > block.timestamp); bonusRate = _bonusRate; releaseTime = _releaseTime; withdrawTime = _withdrawTime; totalBonusGiven = 0; } 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 gaslimit (should be up to around 200000-210000) require(msg.gas <= 190000); require(beneficiary != address(0)); super.buyTokens(beneficiary); uint256 weiAmount = msg.value; // we give 15% of bonus, but lock the balance for 6 months uint256 bonusAmount = weiAmount.mul(bonusRate); lockedBalances[beneficiary] = lockedBalances[beneficiary].add(bonusAmount); totalBonusGiven = totalBonusGiven.add(bonusAmount); } function lockedBalanceOf(address _beneficiary) public view returns (uint256) { return lockedBalances[_beneficiary]; } function releaseLockedBalance(address _beneficiary) public { // anyone can call this function to release the lock for the bonus after lock-up period require(_beneficiary != address(0)); require( block.timestamp >= releaseTime ); uint256 amount = lockedBalances[_beneficiary]; require( amount > 0 ); lockedBalances[_beneficiary] = 0; token.transfer(_beneficiary, amount); emit BonusRelease(_beneficiary, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lockedBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"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":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"releaseLockedBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_beneficiary","type":"address"}],"name":"lockedBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bonusRate","outputs":[{"name":"","type":"uint256"}],"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":"totalBonusGiven","outputs":[{"name":"","type":"uint256"}],"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":"releaseTime","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":"_bonusRate","type":"uint256"},{"name":"_releaseTime","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":[{"indexed":false,"name":"beneficiary","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"BonusRelease","type":"event"},{"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"}]
Contract Creation Code
60806040526000600c60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516101608062001d87833981018060405281019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505089898989898f8787600083111515620000cd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156200010a57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200014757600080fd5b8260028190555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000821115156200022357600080fd5b81811115156200023257600080fd5b816006819055508060078190555050506000811115156200025257600080fd5b80600981905550504282101515156200026a57600080fd5b8181101515156200027a57600080fd5b81600a8190555080600b8190555050506000841115156200029a57600080fd5b4283111515620002a957600080fd5b4285111515620002b857600080fd5b83600f81905550826011819055508460108190555060006012819055505050505050505050505050611a9780620002f06000396000f300608060405260043610610196576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630483a7f6146101a15780631515bc2b146101f857806327e235e3146102275780632c4e722e1461027e5780633090bef7146102a9578063355274ea146102ec5780633f4ba83a146103175780634042b66f1461032e57806342e94c901461035957806345cb3dde146103b057806349df728c146103db5780634b6753bc1461041e5780634f93594514610449578063521eb2731461047857806359355736146104cf5780635af123f4146105265780635c975abb146105515780636ac5db19146105805780638456cb59146105ab5780638ab1d681146105c25780638c10671c146106055780638da5cb5b14610640578063999d350d146106975780639b19251a146106c2578063b7a8807c1461071d578063b91d400114610748578063bb8b2b4714610773578063e43252d7146107ca578063ec8ac4d81461080d578063f2fde38b14610843578063f889794514610886578063fc0c546a146108b1575b61019f33610908565b005b3480156101ad57600080fd5b506101e2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a61565b6040518082815260200191505060405180910390f35b34801561020457600080fd5b5061020d610a79565b604051808215151515815260200191505060405180910390f35b34801561023357600080fd5b50610268600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a85565b6040518082815260200191505060405180910390f35b34801561028a57600080fd5b50610293610a9d565b6040518082815260200191505060405180910390f35b3480156102b557600080fd5b506102ea600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aa3565b005b3480156102f857600080fd5b50610301610cf6565b6040518082815260200191505060405180910390f35b34801561032357600080fd5b5061032c610cfc565b005b34801561033a57600080fd5b50610343610dbc565b6040518082815260200191505060405180910390f35b34801561036557600080fd5b5061039a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc2565b6040518082815260200191505060405180910390f35b3480156103bc57600080fd5b506103c5610dda565b6040518082815260200191505060405180910390f35b3480156103e757600080fd5b5061041c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610de0565b005b34801561042a57600080fd5b50610433610e96565b6040518082815260200191505060405180910390f35b34801561045557600080fd5b5061045e610e9c565b604051808215151515815260200191505060405180910390f35b34801561048457600080fd5b5061048d610eab565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104db57600080fd5b50610510600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed1565b6040518082815260200191505060405180910390f35b34801561053257600080fd5b5061053b610f1a565b6040518082815260200191505060405180910390f35b34801561055d57600080fd5b50610566610f20565b604051808215151515815260200191505060405180910390f35b34801561058c57600080fd5b50610595610f33565b6040518082815260200191505060405180910390f35b3480156105b757600080fd5b506105c0610f39565b005b3480156105ce57600080fd5b50610603600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ffa565b005b34801561061157600080fd5b5061063e6004803603810190808035906020019082018035906020019190919293919293905050506110b1565b005b34801561064c57600080fd5b506106556111b3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106a357600080fd5b506106ac6111d9565b6040518082815260200191505060405180910390f35b3480156106ce57600080fd5b50610703600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111df565b604051808215151515815260200191505060405180910390f35b34801561072957600080fd5b506107326111ff565b6040518082815260200191505060405180910390f35b34801561075457600080fd5b5061075d611205565b6040518082815260200191505060405180910390f35b34801561077f57600080fd5b506107b4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061120b565b6040518082815260200191505060405180910390f35b3480156107d657600080fd5b5061080b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611254565b005b610841600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610908565b005b34801561084f57600080fd5b50610884600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061130b565b005b34801561089257600080fd5b5061089b611463565b6040518082815260200191505060405180910390f35b3480156108bd57600080fd5b506108c6611469565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600c60009054906101000a900460ff1615151561092757600080fd5b640ba43b74003a1115151561093b57600080fd5b6202e6305a1115151561094d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561098957600080fd5b6109928361148e565b3491506109aa600f548361155c90919063ffffffff16565b90506109fe81600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610a568160125461159490919063ffffffff16565b601281905550505050565b600e6020528060005260406000206000915090505481565b6000600b544211905090565b600d6020528060005260406000206000915090505481565b60025481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610ae057600080fd5b6011544210151515610af157600080fd5b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081111515610b4257600080fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b505050506040513d6020811015610c7557600080fd5b8101908080519060200190929190505050507fdd9fe1654ce0173e9cf6c1b3a5ea19b9f3c3ade13e84071c21006ece6f84cb2e8282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d5857600080fd5b600c60009054906101000a900460ff161515610d7357600080fd5b6000600c60006101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60035481565b60086020528060005260406000206000915090505481565b60105481565b600060105442111515610df257600080fd5b600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081111515610e4357600080fd5b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610e9282826115b0565b5050565b600b5481565b60006009546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600f5481565b600c60009054906101000a900460ff1681565b60075481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f9557600080fd5b600c60009054906101000a900460ff16151515610fb157600080fd5b6001600c60006101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561105657600080fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561110f57600080fd5b600090505b828290508110156111ae57600160056000858585818110151561113357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050611114565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60125481565b60056020528060005260406000206000915054906101000a900460ff1681565b600a5481565b60115481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112b057600080fd5b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561136757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156113a357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008034915061149e83836116b4565b6114a7826116e1565b90506114be8260035461159490919063ffffffff16565b6003819055506114ce83826116ff565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36115458383611798565b61154d61183b565b61155783836118a6565b505050565b60008083141561156f576000905061158e565b818302905081838281151561158057fe5b0414151561158a57fe5b8090505b92915050565b600081830190508281101515156115a757fe5b80905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561167457600080fd5b505af1158015611688573d6000803e3d6000fd5b505050506040513d602081101561169e57600080fd5b8101908080519060200190929190505050505050565b600a5442101580156116c85750600b544211155b15156116d357600080fd5b6116dd82826118aa565b5050565b60006116f86002548361155c90919063ffffffff16565b9050919050565b61175181600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6117a282826118dd565b6117f481600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156118a3573d6000803e3d6000fd5b50565b5050565b6118b482826118e1565b6009546118cc8260035461159490919063ffffffff16565b111515156118d957600080fd5b5050565b5050565b6118eb82826119b3565b60075461194082600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b1115151561194d57600080fd5b6006546119a282600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b101515156119af57600080fd5b5050565b81600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515611a0c57600080fd5b611a168383611a1b565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611a5757600080fd5b60008114151515611a6757600080fd5b50505600a165627a7a72305820b590858f6c31ce6d58f42014b4f5cbef572b392ed9545400368c7732f890848100290000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000005b0565d0000000000000000000000000000000000000000000000000000000005b095a5000000000000000000000000000000000000000000000019c6e35ab16a3e00000000000000000000000000000000000000000000000000001a055690d9db8000000000000000000000000000000000000000000000000001043561a8829300000000000000000000000000000000000000000000000000000000000005b23b85000000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000005bf6a850000000000000000000000000b4e23d717ed13345498f100c9eacbb256916ae1a000000000000000000000000c86d054809623432210c107af2e3f619dcfbf652
Deployed Bytecode
0x608060405260043610610196576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630483a7f6146101a15780631515bc2b146101f857806327e235e3146102275780632c4e722e1461027e5780633090bef7146102a9578063355274ea146102ec5780633f4ba83a146103175780634042b66f1461032e57806342e94c901461035957806345cb3dde146103b057806349df728c146103db5780634b6753bc1461041e5780634f93594514610449578063521eb2731461047857806359355736146104cf5780635af123f4146105265780635c975abb146105515780636ac5db19146105805780638456cb59146105ab5780638ab1d681146105c25780638c10671c146106055780638da5cb5b14610640578063999d350d146106975780639b19251a146106c2578063b7a8807c1461071d578063b91d400114610748578063bb8b2b4714610773578063e43252d7146107ca578063ec8ac4d81461080d578063f2fde38b14610843578063f889794514610886578063fc0c546a146108b1575b61019f33610908565b005b3480156101ad57600080fd5b506101e2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a61565b6040518082815260200191505060405180910390f35b34801561020457600080fd5b5061020d610a79565b604051808215151515815260200191505060405180910390f35b34801561023357600080fd5b50610268600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a85565b6040518082815260200191505060405180910390f35b34801561028a57600080fd5b50610293610a9d565b6040518082815260200191505060405180910390f35b3480156102b557600080fd5b506102ea600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aa3565b005b3480156102f857600080fd5b50610301610cf6565b6040518082815260200191505060405180910390f35b34801561032357600080fd5b5061032c610cfc565b005b34801561033a57600080fd5b50610343610dbc565b6040518082815260200191505060405180910390f35b34801561036557600080fd5b5061039a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc2565b6040518082815260200191505060405180910390f35b3480156103bc57600080fd5b506103c5610dda565b6040518082815260200191505060405180910390f35b3480156103e757600080fd5b5061041c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610de0565b005b34801561042a57600080fd5b50610433610e96565b6040518082815260200191505060405180910390f35b34801561045557600080fd5b5061045e610e9c565b604051808215151515815260200191505060405180910390f35b34801561048457600080fd5b5061048d610eab565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104db57600080fd5b50610510600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed1565b6040518082815260200191505060405180910390f35b34801561053257600080fd5b5061053b610f1a565b6040518082815260200191505060405180910390f35b34801561055d57600080fd5b50610566610f20565b604051808215151515815260200191505060405180910390f35b34801561058c57600080fd5b50610595610f33565b6040518082815260200191505060405180910390f35b3480156105b757600080fd5b506105c0610f39565b005b3480156105ce57600080fd5b50610603600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ffa565b005b34801561061157600080fd5b5061063e6004803603810190808035906020019082018035906020019190919293919293905050506110b1565b005b34801561064c57600080fd5b506106556111b3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106a357600080fd5b506106ac6111d9565b6040518082815260200191505060405180910390f35b3480156106ce57600080fd5b50610703600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111df565b604051808215151515815260200191505060405180910390f35b34801561072957600080fd5b506107326111ff565b6040518082815260200191505060405180910390f35b34801561075457600080fd5b5061075d611205565b6040518082815260200191505060405180910390f35b34801561077f57600080fd5b506107b4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061120b565b6040518082815260200191505060405180910390f35b3480156107d657600080fd5b5061080b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611254565b005b610841600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610908565b005b34801561084f57600080fd5b50610884600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061130b565b005b34801561089257600080fd5b5061089b611463565b6040518082815260200191505060405180910390f35b3480156108bd57600080fd5b506108c6611469565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600c60009054906101000a900460ff1615151561092757600080fd5b640ba43b74003a1115151561093b57600080fd5b6202e6305a1115151561094d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561098957600080fd5b6109928361148e565b3491506109aa600f548361155c90919063ffffffff16565b90506109fe81600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610a568160125461159490919063ffffffff16565b601281905550505050565b600e6020528060005260406000206000915090505481565b6000600b544211905090565b600d6020528060005260406000206000915090505481565b60025481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610ae057600080fd5b6011544210151515610af157600080fd5b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081111515610b4257600080fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b505050506040513d6020811015610c7557600080fd5b8101908080519060200190929190505050507fdd9fe1654ce0173e9cf6c1b3a5ea19b9f3c3ade13e84071c21006ece6f84cb2e8282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d5857600080fd5b600c60009054906101000a900460ff161515610d7357600080fd5b6000600c60006101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60035481565b60086020528060005260406000206000915090505481565b60105481565b600060105442111515610df257600080fd5b600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081111515610e4357600080fd5b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610e9282826115b0565b5050565b600b5481565b60006009546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600f5481565b600c60009054906101000a900460ff1681565b60075481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f9557600080fd5b600c60009054906101000a900460ff16151515610fb157600080fd5b6001600c60006101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561105657600080fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561110f57600080fd5b600090505b828290508110156111ae57600160056000858585818110151561113357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050611114565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60125481565b60056020528060005260406000206000915054906101000a900460ff1681565b600a5481565b60115481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112b057600080fd5b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561136757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156113a357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008034915061149e83836116b4565b6114a7826116e1565b90506114be8260035461159490919063ffffffff16565b6003819055506114ce83826116ff565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36115458383611798565b61154d61183b565b61155783836118a6565b505050565b60008083141561156f576000905061158e565b818302905081838281151561158057fe5b0414151561158a57fe5b8090505b92915050565b600081830190508281101515156115a757fe5b80905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561167457600080fd5b505af1158015611688573d6000803e3d6000fd5b505050506040513d602081101561169e57600080fd5b8101908080519060200190929190505050505050565b600a5442101580156116c85750600b544211155b15156116d357600080fd5b6116dd82826118aa565b5050565b60006116f86002548361155c90919063ffffffff16565b9050919050565b61175181600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6117a282826118dd565b6117f481600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156118a3573d6000803e3d6000fd5b50565b5050565b6118b482826118e1565b6009546118cc8260035461159490919063ffffffff16565b111515156118d957600080fd5b5050565b5050565b6118eb82826119b3565b60075461194082600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b1115151561194d57600080fd5b6006546119a282600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461159490919063ffffffff16565b101515156119af57600080fd5b5050565b81600560008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515611a0c57600080fd5b611a168383611a1b565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611a5757600080fd5b60008114151515611a6757600080fd5b50505600a165627a7a72305820b590858f6c31ce6d58f42014b4f5cbef572b392ed9545400368c7732f89084810029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000005b0565d0000000000000000000000000000000000000000000000000000000005b095a5000000000000000000000000000000000000000000000019c6e35ab16a3e00000000000000000000000000000000000000000000000000001a055690d9db8000000000000000000000000000000000000000000000000001043561a8829300000000000000000000000000000000000000000000000000000000000005b23b85000000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000005bf6a850000000000000000000000000b4e23d717ed13345498f100c9eacbb256916ae1a000000000000000000000000c86d054809623432210c107af2e3f619dcfbf652
-----Decoded View---------------
Arg [0] : rate (uint256): 5000
Arg [1] : openTime (uint256): 1527080400
Arg [2] : closeTime (uint256): 1527339600
Arg [3] : totalCap (uint256): 7608000000000000000000
Arg [4] : userMin (uint256): 30000000000000000000
Arg [5] : userMax (uint256): 300000000000000000000
Arg [6] : _withdrawTime (uint256): 1529067600
Arg [7] : _bonusRate (uint256): 750
Arg [8] : _releaseTime (uint256): 1542891600
Arg [9] : account (address): 0xb4E23D717ED13345498F100c9EacBb256916AE1a
Arg [10] : token (address): 0xC86D054809623432210c107af2e3F619DcFbf652
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [1] : 000000000000000000000000000000000000000000000000000000005b0565d0
Arg [2] : 000000000000000000000000000000000000000000000000000000005b095a50
Arg [3] : 00000000000000000000000000000000000000000000019c6e35ab16a3e00000
Arg [4] : 000000000000000000000000000000000000000000000001a055690d9db80000
Arg [5] : 00000000000000000000000000000000000000000000001043561a8829300000
Arg [6] : 000000000000000000000000000000000000000000000000000000005b23b850
Arg [7] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [8] : 000000000000000000000000000000000000000000000000000000005bf6a850
Arg [9] : 000000000000000000000000b4e23d717ed13345498f100c9eacbb256916ae1a
Arg [10] : 000000000000000000000000c86d054809623432210c107af2e3f619dcfbf652
Swarm Source
bzzr://b590858f6c31ce6d58f42014b4f5cbef572b392ed9545400368c7732f8908481
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.