Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 264 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Add To Whitelist | 4895768 | 2935 days ago | IN | 0 ETH | 0.06518305 | ||||
| Add To Whitelist | 4895765 | 2935 days ago | IN | 0 ETH | 0.04431837 | ||||
| Add To Whitelist | 4895756 | 2935 days ago | IN | 0 ETH | 0.03133785 | ||||
| Reset Token Owne... | 4895751 | 2935 days ago | IN | 0 ETH | 0.00152376 | ||||
| Reset Token Owne... | 4895728 | 2935 days ago | IN | 0 ETH | 0.00097917 | ||||
| Transfer | 4849362 | 2944 days ago | IN | 2 ETH | 0.00045976 | ||||
| Transfer | 4848884 | 2944 days ago | IN | 5 ETH | 0.00048274 | ||||
| Transfer | 4848813 | 2944 days ago | IN | 1.8 ETH | 0.00045976 | ||||
| Transfer | 4848380 | 2944 days ago | IN | 2 ETH | 0.00045976 | ||||
| Transfer | 4848110 | 2944 days ago | IN | 1.7 ETH | 0.00045976 | ||||
| Transfer | 4848022 | 2944 days ago | IN | 2.5 ETH | 0.00347118 | ||||
| Transfer | 4847964 | 2944 days ago | IN | 10 ETH | 0.00107913 | ||||
| Transfer | 4847964 | 2944 days ago | IN | 10 ETH | 0.00089748 | ||||
| Transfer | 4847962 | 2944 days ago | IN | 2.8 ETH | 0.00045976 | ||||
| Transfer | 4847957 | 2944 days ago | IN | 3 ETH | 0.00045976 | ||||
| Transfer | 4847872 | 2944 days ago | IN | 1.9596911 ETH | 0.00045976 | ||||
| Transfer | 4847872 | 2944 days ago | IN | 2.03178483 ETH | 0.00045976 | ||||
| Transfer | 4847872 | 2944 days ago | IN | 5 ETH | 0.00045976 | ||||
| Transfer | 4847872 | 2944 days ago | IN | 5.1 ETH | 0.00045976 | ||||
| Transfer | 4847870 | 2944 days ago | IN | 2.5 ETH | 0.00068964 | ||||
| Transfer | 4847869 | 2944 days ago | IN | 5 ETH | 0.00045976 | ||||
| Transfer | 4847869 | 2944 days ago | IN | 2.5 ETH | 0.00045976 | ||||
| Transfer | 4847869 | 2944 days ago | IN | 2 ETH | 0.00045976 | ||||
| Transfer | 4847868 | 2944 days ago | IN | 4 ETH | 0.00042 | ||||
| Transfer | 4847868 | 2944 days ago | IN | 1.70679549 ETH | 0.00045976 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 4847689 | 2944 days ago | 2.29 ETH | ||||
| Transfer | 4847689 | 2944 days ago | 3 ETH | ||||
| Transfer | 4847687 | 2944 days ago | 2 ETH | ||||
| Transfer | 4847687 | 2944 days ago | 4 ETH | ||||
| Transfer | 4847686 | 2944 days ago | 3.01 ETH | ||||
| Transfer | 4847686 | 2944 days ago | 2 ETH | ||||
| Transfer | 4847685 | 2944 days ago | 17 ETH | ||||
| Transfer | 4847684 | 2944 days ago | 14.5 ETH | ||||
| Transfer | 4847683 | 2944 days ago | 4.1 ETH | ||||
| Transfer | 4847682 | 2944 days ago | 4.6 ETH | ||||
| Transfer | 4847682 | 2944 days ago | 29 ETH | ||||
| Transfer | 4847681 | 2944 days ago | 3.4 ETH | ||||
| Transfer | 4847680 | 2944 days ago | 2.00876786 ETH | ||||
| Transfer | 4847679 | 2944 days ago | 3.5 ETH | ||||
| Transfer | 4847679 | 2944 days ago | 1.9 ETH | ||||
| Transfer | 4847679 | 2944 days ago | 1.7 ETH | ||||
| Transfer | 4847679 | 2944 days ago | 4.89 ETH | ||||
| Transfer | 4847679 | 2944 days ago | 3 ETH | ||||
| Transfer | 4847678 | 2944 days ago | 1.74 ETH | ||||
| Transfer | 4847678 | 2944 days ago | 1.7 ETH | ||||
| Transfer | 4847678 | 2944 days ago | 2.18 ETH | ||||
| Transfer | 4847678 | 2944 days ago | 19 ETH | ||||
| Transfer | 4847678 | 2944 days ago | 5 ETH | ||||
| Transfer | 4847678 | 2944 days ago | 10 ETH | ||||
| Transfer | 4847677 | 2944 days ago | 2.04 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BlockportPresale
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2017-12-28
*/
pragma solidity ^0.4.13;
// File: contracts\zeppelin\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));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
// File: contracts\zeppelin\math\SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal 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 c;
}
function sub(uint256 a, uint256 b) internal returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
// File: contracts\zeppelin\token\ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
// File: contracts\zeppelin\token\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;
/**
* @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]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
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 returns (uint256 balance) {
return balances[_owner];
}
}
// File: contracts\zeppelin\token\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 returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File: contracts\zeppelin\token\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 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) {
return BasicToken.transfer(_to, _value);
}
/**
* @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);
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;
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 returns (uint256) {
return allowed[_owner][_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
*/
function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
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);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
// File: contracts\zeppelin\token\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);
Mint(_to, _amount);
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;
MintFinished();
return true;
}
}
// File: contracts\zeppelin\token\CappedToken.sol
/**
* @title Capped token
* @dev Mintable token with a token cap.
*/
contract CappedToken is MintableToken {
uint256 public cap;
function CappedToken(uint256 _cap) public {
require(_cap > 0);
cap = _cap;
}
/**
* @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) {
require(totalSupply.add(_amount) <= cap);
return super.mint(_to, _amount);
}
}
// File: contracts\zeppelin\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;
Pause();
}
/**
* @dev called by the owner to unpause, returns to normal state
*/
function unpause() onlyOwner whenPaused public {
paused = false;
Unpause();
}
}
// File: contracts\zeppelin\token\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\BlockportToken.sol
/// @title Blockport Token - Token code for our Blockport.nl Project
/// @author Jan Bolhuis, Wesley van Heije
// Version 3, december 2017
// This version is completely based on the Openzeppelin Solidity framework.
//
// There will be a presale cap of 6.400.000 BPT Tokens
// Minimum presale investment in Ether will be set at the start in the Presale contract; calculated on a weekly avarage for an amount of ~ 1000 Euro
// Unsold presale tokens will be burnt, implemented as mintbale token as such that only sold tokens are minted.
// Presale rate has a 33% bonus to the crowdsale to compensate the extra risk
// The total supply of tokens (pre-sale + crowdsale) will be 49,600,000 BPT
// Minimum crowdsale investment will be 0.1 ether
// Mac cap for the crowdsale is 43,200,000 BPT
// There is no bonus scheme for the crowdsale
// Unsold Crowsdale tokens will be burnt, implemented as mintbale token as such that only sold tokens are minted.
// On the amount tokens sold an additional 40% will be minted; this will be allocated to the Blockport company(20%) and the Blockport team(20%)
// BPT tokens will be tradable straigt after the finalization of the crowdsale. This is implemented by being a pausable token that is unpaused at Crowdsale finalisation.
contract BlockportToken is CappedToken, PausableToken {
string public constant name = "Blockport Token";
string public constant symbol = "BPT";
uint public constant decimals = 18;
function BlockportToken(uint256 _totalSupply)
CappedToken(_totalSupply) public {
paused = true;
}
}
// File: contracts\Whitelist.sol
contract Whitelist is Ownable {
mapping(address => bool) allowedAddresses;
uint count = 0;
modifier whitelisted() {
require(allowedAddresses[msg.sender] == true);
_;
}
function addToWhitelist(address[] _addresses) public onlyOwner {
for (uint i = 0; i < _addresses.length; i++) {
allowedAddresses[_addresses[i]] = true;
count++;
WhitelistUpdated(block.timestamp, "Added", _addresses[i], count);
}
}
function removeFromWhitelist(address[] _addresses) public onlyOwner {
for (uint i = 0; i < _addresses.length; i++) {
allowedAddresses[_addresses[i]] = false;
count--;
WhitelistUpdated(block.timestamp, "Removed", _addresses[i], count);
}
}
function isWhitelisted() public whitelisted constant returns (bool) {
return true;
}
function addressIsWhitelisted(address _address) public constant returns (bool) {
return allowedAddresses[_address];
}
function getAddressCount() public constant returns (uint) {
return count;
}
event WhitelistUpdated(uint timestamp, string operation, address indexed member, uint totalAddresses);
}
// File: contracts\zeppelin\crowdsale\Crowdsale.sol
/**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale.
* Crowdsales have a start and end timestamps, where investors can make
* token purchases and the crowdsale will assign them tokens based
* on a token per ETH rate. Funds collected are forwarded to a wallet
* as they arrive.
*/
contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
// how many token units a buyer gets per wei
uint256 public rate;
// amount of raised money in wei
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);
function Crowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet) public {
require(_startTime >= now);
require(_endTime >= _startTime);
require(_rate > 0);
require(_wallet != address(0));
token = createTokenContract();
startTime = _startTime;
endTime = _endTime;
rate = _rate;
wallet = _wallet;
}
// creates the token to be sold.
// override this method to have crowdsale of a specific mintable token.
function createTokenContract() internal returns (MintableToken) {
return new MintableToken();
}
// fallback function can be used to buy tokens
function () external payable {
buyTokens(msg.sender);
}
// low level token purchase function
function buyTokens(address beneficiary) public payable {
require(beneficiary != address(0));
require(validPurchase());
uint256 weiAmount = msg.value;
// calculate token amount to be created
uint256 tokens = weiAmount.mul(rate);
// update state
weiRaised = weiRaised.add(weiAmount);
token.mint(beneficiary, tokens);
TokenPurchase(msg.sender, beneficiary, weiAmount, tokens);
forwardFunds();
}
// send ether to the fund collection wallet
// override to create custom fund forwarding mechanisms
function forwardFunds() internal {
wallet.transfer(msg.value);
}
// @return true if the transaction can buy tokens
function validPurchase() internal returns (bool) {
bool withinPeriod = now >= startTime && now <= endTime;
bool nonZeroPurchase = msg.value != 0;
return withinPeriod && nonZeroPurchase;
}
// @return true if crowdsale event has started
function hasStarted() public constant returns (bool) {
return now >= startTime;
}
// @return true if crowdsale event has ended
function hasEnded() public view returns (bool) {
return now > endTime;
}
// @return current timestamp
function currentTime() public constant returns(uint256) {
return now;
}
}
// File: contracts\zeppelin\crowdsale\CappedCrowdsale.sol
/**
* @title CappedCrowdsale
* @dev Extension of Crowdsale with a max amount of funds raised
*/
contract CappedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public cap;
function CappedCrowdsale(uint256 _cap) public {
require(_cap > 0);
cap = _cap;
}
// overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the moment
function validPurchase() internal returns (bool) {
bool withinCap = weiRaised.add(msg.value) <= cap;
return super.validPurchase() && withinCap;
}
// overriding Crowdsale#hasEnded to add cap logic
// @return true if crowdsale event has ended
function hasEnded() public view returns (bool) {
bool capReached = weiRaised >= cap;
return super.hasEnded() || capReached;
}
}
// File: contracts\BlockportPresale.sol
/// @title Blockport Token - Token code for our Blockport.nl Project
/// @author Jan Bolhuis, Wesley van Heije
// Version 3, december 2017
// Based on Openzeppelin with an aye on the Pillarproject code.
//
// There will be a presale cap of 6.400.000 BPT Tokens
// Minimum presale investment in Ether will be set at the start; calculated on a weekly avarage for an amount of ~ 1000 Euro
// Unsold presale tokens will be burnt
// Presale rate has a 33% bonus to the crowdsale to compensate the extra risk. This is implemented by setting the rate on the presale and Crowdsale contacts.
// The total supply of tokens (pre-sale + crowdsale) will be 49,600,000 BPT
// Minimum crowdsale investment will be 0.1 ether
// Mac cap for the crowdsale is 43,200,000 BPT
//
contract BlockportPresale is CappedCrowdsale, Whitelist, Pausable {
address public tokenAddress;
uint256 public minimalInvestmentInWei = 1.7 ether; // Is to be set when setting the rate
BlockportToken public bpToken;
event InitialRateChange(uint256 rate, uint256 cap, uint256 minimalInvestment);
// Initialise contract with parapametrs
//@notice Function to initialise the token with configurable parameters.
//@param ` _cap - max number ot tokens available for the presale
//@param ' _startTime - this is the place to adapt the presale period
//@param ` _endTime - this is the place to adapt the presale period
//@param ` rate - initial presale rate.
//@param ` _wallet - Multisig wallet the investments are being send to during presale
//@param ` _tokenAddress - Token to be used, created outside the prsale contract
function BlockportPresale(uint256 _cap, uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet, address _tokenAddress)
CappedCrowdsale(_cap)
Crowdsale(_startTime, _endTime, _rate, _wallet) public {
tokenAddress = _tokenAddress;
token = createTokenContract();
}
//@notice Function to cast the Capped (&mintable) token provided with the constructor to a blockporttoken that is mintabletoken.
// This is a workaround to surpass an issue that Mintabletoken functions are not accessible in this contract.
// We did not want to change the Openzeppelin code and we did not have the time for an extensive drill down.
function createTokenContract() internal returns (MintableToken) {
bpToken = BlockportToken(tokenAddress);
return BlockportToken(tokenAddress);
}
// overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the moment
function validPurchase() internal returns (bool) {
bool minimalInvested = msg.value >= minimalInvestmentInWei;
bool whitelisted = addressIsWhitelisted(msg.sender);
return super.validPurchase() && minimalInvested && !paused && whitelisted;
}
//@notice Function sets the token conversion rate in this contract
//@param ` __rateInWei - Price of 1 Blockport token in Wei.
//@param ` __capInWei - Cap of the Presale in Wei.
//@param ` __minimalInvestmentInWei - Minimal investment in Wei.
function setRate(uint256 _rateInWei, uint256 _capInWei, uint256 _minimalInvestmentInWei) public onlyOwner returns (bool) {
require(startTime >= block.timestamp); // can't update anymore if sale already started
require(_rateInWei > 0);
require(_capInWei > 0);
require(_minimalInvestmentInWei > 0);
rate = _rateInWei;
cap = _capInWei;
minimalInvestmentInWei = _minimalInvestmentInWei;
InitialRateChange(rate, cap, minimalInvestmentInWei);
return true;
}
//@notice Function sets the token owner to contract owner
function resetTokenOwnership() onlyOwner public {
bpToken.transferOwnership(owner);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"bpToken","outputs":[{"name":"","type":"address"}],"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":"endTime","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":"_rateInWei","type":"uint256"},{"name":"_capInWei","type":"uint256"},{"name":"_minimalInvestmentInWei","type":"uint256"}],"name":"setRate","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"hasStarted","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":false,"inputs":[{"name":"_addresses","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minimalInvestmentInWei","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addresses","type":"address[]"}],"name":"addToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"addressIsWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAddressCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"hasEnded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"resetTokenOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_cap","type":"uint256"},{"name":"_startTime","type":"uint256"},{"name":"_endTime","type":"uint256"},{"name":"_rate","type":"uint256"},{"name":"_wallet","type":"address"},{"name":"_tokenAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"rate","type":"uint256"},{"indexed":false,"name":"cap","type":"uint256"},{"indexed":false,"name":"minimalInvestment","type":"uint256"}],"name":"InitialRateChange","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"operation","type":"string"},{"indexed":true,"name":"member","type":"address"},{"indexed":false,"name":"totalAddresses","type":"uint256"}],"name":"WhitelistUpdated","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
60606040526000600955600a805460ff191690556717979cfe362a0000600b55341561002a57600080fd5b60405160c080610e558339810160405280805191906020018051919060200180519190602001805191906020018051919060200180519150869050858585854284101561007657600080fd5b8383101561008357600080fd5b6000821161009057600080fd5b600160a060020a03811615156100a557600080fd5b6100ba640100000000610c3561018682021704565b60008054600160a060020a0319908116600160a060020a0393841617825560019690965560029490945560049290925560038054909416911617909155811161010257600080fd5b60065560078054600160a060020a03338116600160a060020a031990921691909117909155600a80549183166101000261010060a860020a031990921691909117905561015a640100000000610c3561018682021704565b60008054600160a060020a031916600160a060020a0392909216919091179055506101af945050505050565b600a54600c8054610100909204600160a060020a0316600160a060020a03199092168217905590565b610c97806101be6000396000f30060606040526004361061013a5763ffffffff60e060020a60003504166323685b9781146101455780632c4e722e146101745780633197cbb614610199578063355274ea146101ac5780633989c666146101bf5780633f4ba83a146101ef5780634042b66f1461020257806344691f7e14610215578063521eb27314610228578063548db1741461023b5780635c975abb1461028a578063611b40951461029d5780636e80a869146102b057806378e97925146102c35780637f649783146102d65780638456cb591461032557806385d33002146103385780638da5cb5b146103575780639d76ea581461036a578063cdbb02af1461037d578063d18e81b314610390578063ec8ac4d8146103a3578063ecb70fb7146103b7578063f2fde38b146103ca578063f43098af146103e9578063fc0c546a146103fc575b6101433361040f565b005b341561015057600080fd5b610158610543565b604051600160a060020a03909116815260200160405180910390f35b341561017f57600080fd5b610187610552565b60405190815260200160405180910390f35b34156101a457600080fd5b610187610558565b34156101b757600080fd5b61018761055e565b34156101ca57600080fd5b6101db600435602435604435610564565b604051901515815260200160405180910390f35b34156101fa57600080fd5b610143610619565b341561020d57600080fd5b61018761067d565b341561022057600080fd5b6101db610683565b341561023357600080fd5b61015861068c565b341561024657600080fd5b610143600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061069b95505050505050565b341561029557600080fd5b6101db6107b4565b34156102a857600080fd5b6101db6107bd565b34156102bb57600080fd5b6101876107ed565b34156102ce57600080fd5b6101876107f3565b34156102e157600080fd5b61014360046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506107f995505050505050565b341561033057600080fd5b61014361090d565b341561034357600080fd5b6101db600160a060020a0360043516610973565b341561036257600080fd5b610158610991565b341561037557600080fd5b6101586109a0565b341561038857600080fd5b6101876109b4565b341561039b57600080fd5b6101876109ba565b610143600160a060020a036004351661040f565b34156103c257600080fd5b6101db6109be565b34156103d557600080fd5b610143600160a060020a03600435166109e0565b34156103f457600080fd5b610143610a7b565b341561040757600080fd5b610158610afe565b600080600160a060020a038316151561042757600080fd5b61042f610b0d565b151561043a57600080fd5b60045434925061045190839063ffffffff610b5216565b600554909150610467908363ffffffff610b8816565b60055560008054600160a060020a0316906340c10f1990859084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156104cc57600080fd5b6102c65a03f115156104dd57600080fd5b505050604051805190505082600160a060020a031633600160a060020a03167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18848460405191825260208201526040908101905180910390a361053e610b97565b505050565b600c54600160a060020a031681565b60045481565b60025481565b60065481565b60075460009033600160a060020a0390811691161461058257600080fd5b6001544290101561059257600080fd5b6000841161059f57600080fd5b600083116105ac57600080fd5b600082116105b957600080fd5b60048490556006839055600b8290557f6870c65afa1702977ddfd39e944fab028a0c080653dbffc04b047b61ad6156c384848460405180848152602001838152602001828152602001935050505060405180910390a15060019392505050565b60075433600160a060020a0390811691161461063457600080fd5b600a5460ff16151561064557600080fd5b600a805460ff191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60055481565b60015442101590565b600354600160a060020a031681565b60075460009033600160a060020a039081169116146106b957600080fd5b5060005b81518110156107b0576000600860008484815181106106d857fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff19169115159190911790556009805460001901905581818151811061072057fe5b90602001906020020151600160a060020a03167fa31d30a5ef28760e56c1ed3ffded12148a54e53c1abbe6b60f515d4bcf38a8ac426009546040519182526040808301919091526060602083018190526007908301527f52656d6f76656400000000000000000000000000000000000000000000000000608083015260a0909101905180910390a26001016106bd565b5050565b600a5460ff1681565b600160a060020a03331660009081526008602052604081205460ff1615156001146107e757600080fd5b50600190565b600b5481565b60015481565b60075460009033600160a060020a0390811691161461081757600080fd5b5060005b81518110156107b05760016008600084848151811061083657fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff191691151591909117905560098054600101905581818151811061087d57fe5b90602001906020020151600160a060020a03167fa31d30a5ef28760e56c1ed3ffded12148a54e53c1abbe6b60f515d4bcf38a8ac426009546040519182526040808301919091526060602083018190526005908301527f4164646564000000000000000000000000000000000000000000000000000000608083015260a0909101905180910390a260010161081b565b60075433600160a060020a0390811691161461092857600080fd5b600a5460ff161561093857600080fd5b600a805460ff191660011790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600160a060020a031660009081526008602052604090205460ff1690565b600754600160a060020a031681565b600a546101009004600160a060020a031681565b60095490565b4290565b6006546005546000919010156109d2610bcd565b806109da5750805b91505090565b60075433600160a060020a039081169116146109fb57600080fd5b600160a060020a0381161515610a1057600080fd5b600754600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60075433600160a060020a03908116911614610a9657600080fd5b600c54600754600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610aed57600080fd5b6102c65a03f1151561053e57600080fd5b600054600160a060020a031681565b600b5460009034101581610b2033610973565b9050610b2a610bd5565b8015610b335750815b8015610b425750600a5460ff16155b8015610b4b5750805b9250505090565b600080831515610b655760009150610b81565b50828202828482811515610b7557fe5b0414610b7d57fe5b8091505b5092915050565b600082820183811015610b7d57fe5b600354600160a060020a03163480156108fc0290604051600060405180830381858888f193505050501515610bcb57600080fd5b565b600254421190565b600080600654610bf034600554610b8890919063ffffffff16565b11159050610bfc610c08565b80156109da5750919050565b60008060006001544210158015610c2157506002544211155b915050341515818015610b4b575092915050565b600a54600c8054610100909204600160a060020a031673ffffffffffffffffffffffffffffffffffffffff1990921682179055905600a165627a7a723058202032182005f2b5bb39413af17d5df70d216e9158b5132047bcfaf1221c1c05ab002900000000000000000000000000000000000000000000005a59a576f4730cb380000000000000000000000000000000000000000000000000000000005a4ce1e0000000000000000000000000000000000000000000000000000000005a5f56e00000000000000000000000000000000000000000000000000000000000000f00000000000000000000000000c0b9533525c58594ee6cf30f73ac88655b45f6b3000000000000000000000000327682779bab2bf4d1337e8974ab9de8275a7ca8
Deployed Bytecode
0x60606040526004361061013a5763ffffffff60e060020a60003504166323685b9781146101455780632c4e722e146101745780633197cbb614610199578063355274ea146101ac5780633989c666146101bf5780633f4ba83a146101ef5780634042b66f1461020257806344691f7e14610215578063521eb27314610228578063548db1741461023b5780635c975abb1461028a578063611b40951461029d5780636e80a869146102b057806378e97925146102c35780637f649783146102d65780638456cb591461032557806385d33002146103385780638da5cb5b146103575780639d76ea581461036a578063cdbb02af1461037d578063d18e81b314610390578063ec8ac4d8146103a3578063ecb70fb7146103b7578063f2fde38b146103ca578063f43098af146103e9578063fc0c546a146103fc575b6101433361040f565b005b341561015057600080fd5b610158610543565b604051600160a060020a03909116815260200160405180910390f35b341561017f57600080fd5b610187610552565b60405190815260200160405180910390f35b34156101a457600080fd5b610187610558565b34156101b757600080fd5b61018761055e565b34156101ca57600080fd5b6101db600435602435604435610564565b604051901515815260200160405180910390f35b34156101fa57600080fd5b610143610619565b341561020d57600080fd5b61018761067d565b341561022057600080fd5b6101db610683565b341561023357600080fd5b61015861068c565b341561024657600080fd5b610143600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061069b95505050505050565b341561029557600080fd5b6101db6107b4565b34156102a857600080fd5b6101db6107bd565b34156102bb57600080fd5b6101876107ed565b34156102ce57600080fd5b6101876107f3565b34156102e157600080fd5b61014360046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506107f995505050505050565b341561033057600080fd5b61014361090d565b341561034357600080fd5b6101db600160a060020a0360043516610973565b341561036257600080fd5b610158610991565b341561037557600080fd5b6101586109a0565b341561038857600080fd5b6101876109b4565b341561039b57600080fd5b6101876109ba565b610143600160a060020a036004351661040f565b34156103c257600080fd5b6101db6109be565b34156103d557600080fd5b610143600160a060020a03600435166109e0565b34156103f457600080fd5b610143610a7b565b341561040757600080fd5b610158610afe565b600080600160a060020a038316151561042757600080fd5b61042f610b0d565b151561043a57600080fd5b60045434925061045190839063ffffffff610b5216565b600554909150610467908363ffffffff610b8816565b60055560008054600160a060020a0316906340c10f1990859084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156104cc57600080fd5b6102c65a03f115156104dd57600080fd5b505050604051805190505082600160a060020a031633600160a060020a03167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18848460405191825260208201526040908101905180910390a361053e610b97565b505050565b600c54600160a060020a031681565b60045481565b60025481565b60065481565b60075460009033600160a060020a0390811691161461058257600080fd5b6001544290101561059257600080fd5b6000841161059f57600080fd5b600083116105ac57600080fd5b600082116105b957600080fd5b60048490556006839055600b8290557f6870c65afa1702977ddfd39e944fab028a0c080653dbffc04b047b61ad6156c384848460405180848152602001838152602001828152602001935050505060405180910390a15060019392505050565b60075433600160a060020a0390811691161461063457600080fd5b600a5460ff16151561064557600080fd5b600a805460ff191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60055481565b60015442101590565b600354600160a060020a031681565b60075460009033600160a060020a039081169116146106b957600080fd5b5060005b81518110156107b0576000600860008484815181106106d857fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff19169115159190911790556009805460001901905581818151811061072057fe5b90602001906020020151600160a060020a03167fa31d30a5ef28760e56c1ed3ffded12148a54e53c1abbe6b60f515d4bcf38a8ac426009546040519182526040808301919091526060602083018190526007908301527f52656d6f76656400000000000000000000000000000000000000000000000000608083015260a0909101905180910390a26001016106bd565b5050565b600a5460ff1681565b600160a060020a03331660009081526008602052604081205460ff1615156001146107e757600080fd5b50600190565b600b5481565b60015481565b60075460009033600160a060020a0390811691161461081757600080fd5b5060005b81518110156107b05760016008600084848151811061083657fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805460ff191691151591909117905560098054600101905581818151811061087d57fe5b90602001906020020151600160a060020a03167fa31d30a5ef28760e56c1ed3ffded12148a54e53c1abbe6b60f515d4bcf38a8ac426009546040519182526040808301919091526060602083018190526005908301527f4164646564000000000000000000000000000000000000000000000000000000608083015260a0909101905180910390a260010161081b565b60075433600160a060020a0390811691161461092857600080fd5b600a5460ff161561093857600080fd5b600a805460ff191660011790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600160a060020a031660009081526008602052604090205460ff1690565b600754600160a060020a031681565b600a546101009004600160a060020a031681565b60095490565b4290565b6006546005546000919010156109d2610bcd565b806109da5750805b91505090565b60075433600160a060020a039081169116146109fb57600080fd5b600160a060020a0381161515610a1057600080fd5b600754600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60075433600160a060020a03908116911614610a9657600080fd5b600c54600754600160a060020a039182169163f2fde38b911660405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b1515610aed57600080fd5b6102c65a03f1151561053e57600080fd5b600054600160a060020a031681565b600b5460009034101581610b2033610973565b9050610b2a610bd5565b8015610b335750815b8015610b425750600a5460ff16155b8015610b4b5750805b9250505090565b600080831515610b655760009150610b81565b50828202828482811515610b7557fe5b0414610b7d57fe5b8091505b5092915050565b600082820183811015610b7d57fe5b600354600160a060020a03163480156108fc0290604051600060405180830381858888f193505050501515610bcb57600080fd5b565b600254421190565b600080600654610bf034600554610b8890919063ffffffff16565b11159050610bfc610c08565b80156109da5750919050565b60008060006001544210158015610c2157506002544211155b915050341515818015610b4b575092915050565b600a54600c8054610100909204600160a060020a031673ffffffffffffffffffffffffffffffffffffffff1990921682179055905600a165627a7a723058202032182005f2b5bb39413af17d5df70d216e9158b5132047bcfaf1221c1c05ab0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000005a59a576f4730cb380000000000000000000000000000000000000000000000000000000005a4ce1e0000000000000000000000000000000000000000000000000000000005a5f56e00000000000000000000000000000000000000000000000000000000000000f00000000000000000000000000c0b9533525c58594ee6cf30f73ac88655b45f6b3000000000000000000000000327682779bab2bf4d1337e8974ab9de8275a7ca8
-----Decoded View---------------
Arg [0] : _cap (uint256): 1666666666666666800000
Arg [1] : _startTime (uint256): 1514988000
Arg [2] : _endTime (uint256): 1516197600
Arg [3] : _rate (uint256): 3840
Arg [4] : _wallet (address): 0xC0B9533525C58594ee6cF30F73aC88655B45F6b3
Arg [5] : _tokenAddress (address): 0x327682779bAB2BF4d1337e8974ab9dE8275A7Ca8
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000005a59a576f4730cb380
Arg [1] : 000000000000000000000000000000000000000000000000000000005a4ce1e0
Arg [2] : 000000000000000000000000000000000000000000000000000000005a5f56e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000f00
Arg [4] : 000000000000000000000000c0b9533525c58594ee6cf30f73ac88655b45f6b3
Arg [5] : 000000000000000000000000327682779bab2bf4d1337e8974ab9de8275a7ca8
Swarm Source
bzzr://2032182005f2b5bb39413af17d5df70d216e9158b5132047bcfaf1221c1c05ab
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.