Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 792 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy | 4127506 | 2735 days ago | IN | 0.075 ETH | 0.00525 | ||||
Buy | 4127499 | 2735 days ago | IN | 0.08475 ETH | 0.00525 | ||||
Finalize | 4127473 | 2735 days ago | IN | 0 ETH | 0.0114468 | ||||
Buy | 4127441 | 2735 days ago | IN | 0.15 ETH | 0.00525 | ||||
Buy | 4127423 | 2735 days ago | IN | 1 ETH | 0.0092829 | ||||
Buy | 4127414 | 2735 days ago | IN | 0.51 ETH | 0.00773575 | ||||
Buy | 4127408 | 2735 days ago | IN | 5 ETH | 0.00773575 | ||||
Buy | 4127390 | 2735 days ago | IN | 5 ETH | 0.00125 | ||||
Transfer | 4127373 | 2735 days ago | IN | 1 ETH | 0.00525 | ||||
Buy | 4127369 | 2735 days ago | IN | 3 ETH | 0.0030943 | ||||
Buy | 4127360 | 2735 days ago | IN | 5 ETH | 0.00464145 | ||||
Buy | 4127344 | 2735 days ago | IN | 4 ETH | 0.00324901 | ||||
Buy | 4127330 | 2735 days ago | IN | 8 ETH | 0.005225 | ||||
Buy | 4127325 | 2735 days ago | IN | 10 ETH | 0.0021945 | ||||
Buy | 4127324 | 2735 days ago | IN | 10 ETH | 0.00324901 | ||||
Buy | 4127314 | 2735 days ago | IN | 4 ETH | 0.00324901 | ||||
Buy | 4127304 | 2735 days ago | IN | 3 ETH | 0.00324901 | ||||
Buy | 4127297 | 2735 days ago | IN | 0.1 ETH | 0.00324901 | ||||
Buy | 4127252 | 2735 days ago | IN | 0.55 ETH | 0.0021945 | ||||
Buy | 4127246 | 2735 days ago | IN | 0.47604 ETH | 0.00371316 | ||||
Buy | 4127238 | 2735 days ago | IN | 7 ETH | 0.0015675 | ||||
Buy | 4127215 | 2735 days ago | IN | 0.004 ETH | 0.0021945 | ||||
Buy | 4127196 | 2735 days ago | IN | 6.7 ETH | 0.0021945 | ||||
Buy | 4127180 | 2735 days ago | IN | 0 ETH | 0.00525 | ||||
Buy | 4127179 | 2735 days ago | IN | 3.5 ETH | 0.00324901 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
4127423 | 2735 days ago | 1 ETH | ||||
4127414 | 2735 days ago | 0.51 ETH | ||||
4127408 | 2735 days ago | 5 ETH | ||||
4127369 | 2735 days ago | 3 ETH | ||||
4127360 | 2735 days ago | 5 ETH | ||||
4127344 | 2735 days ago | 4 ETH | ||||
4127330 | 2735 days ago | 8 ETH | ||||
4127325 | 2735 days ago | 10 ETH | ||||
4127324 | 2735 days ago | 10 ETH | ||||
4127314 | 2735 days ago | 4 ETH | ||||
4127304 | 2735 days ago | 3 ETH | ||||
4127297 | 2735 days ago | 0.1 ETH | ||||
4127252 | 2735 days ago | 0.55 ETH | ||||
4127246 | 2735 days ago | 0.47604 ETH | ||||
4127238 | 2735 days ago | 7 ETH | ||||
4127215 | 2735 days ago | 0.004 ETH | ||||
4127196 | 2735 days ago | 6.7 ETH | ||||
4127179 | 2735 days ago | 3.5 ETH | ||||
4127151 | 2735 days ago | 0.05 ETH | ||||
4127140 | 2735 days ago | 7.8 ETH | ||||
4127138 | 2735 days ago | 1 ETH | ||||
4127132 | 2735 days ago | 0.12722506 ETH | ||||
4127051 | 2735 days ago | 23 ETH | ||||
4127049 | 2735 days ago | 0.02 ETH | ||||
4127045 | 2735 days ago | 2 ETH |
Loading...
Loading
Contract Name:
MintedEthCappedCrowdsale
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-07-14 */ pragma solidity ^0.4.11; // Thanks to OpenZeppeline & TokenMarket for the awesome Libraries. contract SafeMathLib { function safeMul(uint a, uint b) returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) returns (uint) { assert(b <= a); return a - b; } function safeAdd(uint a, uint b) returns (uint) { uint c = a + b; assert(c>=a); return c; } } contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); function Ownable() { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address _newOwner) onlyOwner { newOwner = _newOwner; } function acceptOwnership() { require(msg.sender == newOwner); OwnershipTransferred(owner, newOwner); owner = newOwner; } } contract ERC20Basic { uint public totalSupply; function balanceOf(address who) constant returns (uint); function transfer(address _to, uint _value) returns (bool success); event Transfer(address indexed from, address indexed to, uint value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) constant returns (uint); function transferFrom(address _from, address _to, uint _value) returns (bool success); function approve(address _spender, uint _value) returns (bool success); event Approval(address indexed owner, address indexed spender, uint value); } contract FractionalERC20 is ERC20 { uint8 public decimals; } contract StandardToken is ERC20, SafeMathLib { /* Token supply got increased and a new owner received these tokens */ event Minted(address receiver, uint amount); /* Actual balances of token holders */ mapping(address => uint) balances; /* approve() allowances */ mapping (address => mapping (address => uint)) allowed; function transfer(address _to, uint _value) returns (bool success) { if (balances[msg.sender] >= _value && _value > 0 && balances[_to] + _value > balances[_to] ) { balances[msg.sender] = safeSub(balances[msg.sender],_value); balances[_to] = safeAdd(balances[_to],_value); Transfer(msg.sender, _to, _value); return true; } else{ return false; } } function transferFrom(address _from, address _to, uint _value) returns (bool success) { uint _allowance = allowed[_from][msg.sender]; if (balances[_from] >= _value // From a/c has balance && _allowance >= _value // Transfer approved && _value > 0 // Non-zero transfer && balances[_to] + _value > balances[_to] // Overflow check ){ balances[_to] = safeAdd(balances[_to],_value); balances[_from] = safeSub(balances[_from],_value); allowed[_from][msg.sender] = safeSub(_allowance,_value); Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) constant returns (uint balance) { return balances[_owner]; } function approve(address _spender, uint _value) returns (bool success) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 require(!((_value != 0) && (allowed[msg.sender][_spender] != 0))); //if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) throw; allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant returns (uint remaining) { return allowed[_owner][_spender]; } } /** * Upgrade agent interface inspired by Lunyr. * * Upgrade agent transfers tokens to a new contract. * Upgrade agent itself can be the token contract, or just a middle man contract doing the heavy lifting. */ contract UpgradeAgent { uint public originalSupply; /** Interface marker */ function isUpgradeAgent() public constant returns (bool) { return true; } function upgradeFrom(address _from, uint256 _value) public; } /** * A token upgrade mechanism where users can opt-in amount of tokens to the next smart contract revision. * * First envisioned by Golem and Lunyr projects. */ contract UpgradeableToken is StandardToken { /** Contract / person who can set the upgrade path. This can be the same as team multisig wallet, as what it is with its default value. */ address public upgradeMaster; /** The next contract where the tokens will be migrated. */ UpgradeAgent public upgradeAgent; /** How many tokens we have upgraded by now. */ uint256 public totalUpgraded; /** * Upgrade states. * * - NotAllowed: The child contract has not reached a condition where the upgrade can bgun * - WaitingForAgent: Token allows upgrade, but we don't have a new agent yet * - ReadyToUpgrade: The agent is set, but not a single token has been upgraded yet * - Upgrading: Upgrade agent is set and the balance holders can upgrade their tokens * */ enum UpgradeState {Unknown, NotAllowed, WaitingForAgent, ReadyToUpgrade, Upgrading} /** * Somebody has upgraded some of his tokens. */ event Upgrade(address indexed _from, address indexed _to, uint256 _value); /** * New upgrade agent available. */ event UpgradeAgentSet(address agent); /** * Do not allow construction without upgrade master set. */ function UpgradeableToken(address _upgradeMaster) { upgradeMaster = _upgradeMaster; } /** * Allow the token holder to upgrade some of their tokens to a new contract. */ function upgrade(uint256 value) public { UpgradeState state = getUpgradeState(); require((state == UpgradeState.ReadyToUpgrade || state == UpgradeState.Upgrading)); // if(!(state == UpgradeState.ReadyToUpgrade || state == UpgradeState.Upgrading)) { // // Called in a bad state // throw; // } // Validate input value. if (value == 0) throw; balances[msg.sender] = safeSub(balances[msg.sender],value); // Take tokens out from circulation totalSupply = safeSub(totalSupply,value); totalUpgraded = safeAdd(totalUpgraded,value); // Upgrade agent reissues the tokens upgradeAgent.upgradeFrom(msg.sender, value); Upgrade(msg.sender, upgradeAgent, value); } /** * Set an upgrade agent that handles */ function setUpgradeAgent(address agent) external { require(canUpgrade()); // if(!canUpgrade()) { // // The token is not yet in a state that we could think upgrading // throw; // } require(agent != 0x0); //if (agent == 0x0) throw; // Only a master can designate the next agent require(msg.sender == upgradeMaster); //if (msg.sender != upgradeMaster) throw; // Upgrade has already begun for an agent require(getUpgradeState() != UpgradeState.Upgrading); //if (getUpgradeState() == UpgradeState.Upgrading) throw; upgradeAgent = UpgradeAgent(agent); // Bad interface require(upgradeAgent.isUpgradeAgent()); //if(!upgradeAgent.isUpgradeAgent()) throw; // Make sure that token supplies match in source and target require(upgradeAgent.originalSupply() == totalSupply); //if (upgradeAgent.originalSupply() != totalSupply) throw; UpgradeAgentSet(upgradeAgent); } /** * Get the state of the token upgrade. */ function getUpgradeState() public constant returns(UpgradeState) { if(!canUpgrade()) return UpgradeState.NotAllowed; else if(address(upgradeAgent) == 0x00) return UpgradeState.WaitingForAgent; else if(totalUpgraded == 0) return UpgradeState.ReadyToUpgrade; else return UpgradeState.Upgrading; } /** * Change the upgrade master. * * This allows us to set a new owner for the upgrade mechanism. */ function setUpgradeMaster(address master) public { require(master != 0x0); //if (master == 0x0) throw; require(msg.sender == upgradeMaster); //if (msg.sender != upgradeMaster) throw; upgradeMaster = master; } /** * Child contract can enable to provide the condition when the upgrade can begun. */ function canUpgrade() public constant returns(bool) { return true; } } /** * Define interface for releasing the token transfer after a successful crowdsale. */ contract ReleasableToken is ERC20, Ownable { /* The finalizer contract that allows unlift the transfer limits on this token */ address public releaseAgent; /** A crowdsale contract can release us to the wild if ICO success. If false we are are in transfer lock up period.*/ bool public released = false; /** Map of agents that are allowed to transfer tokens regardless of the lock down period. These are crowdsale contracts and possible the team multisig itself. */ mapping (address => bool) public transferAgents; /** * Limit token transfer until the crowdsale is over. * */ modifier canTransfer(address _sender) { if(!released) { require(transferAgents[_sender]); // if(!transferAgents[_sender]) { // throw; // } } _; } /** * Set the contract that can call release and make the token transferable. * * Design choice. Allow reset the release agent to fix fat finger mistakes. */ function setReleaseAgent(address addr) onlyOwner inReleaseState(false) public { // We don't do interface check here as we might want to a normal wallet address to act as a release agent releaseAgent = addr; } /** * Owner can allow a particular address (a crowdsale contract) to transfer tokens despite the lock up period. */ function setTransferAgent(address addr, bool state) onlyOwner inReleaseState(false) public { transferAgents[addr] = state; } /** * One way function to release the tokens to the wild. * * Can be called only from the release agent that is the final ICO contract. It is only called if the crowdsale has been success (first milestone reached). */ function releaseTokenTransfer() public onlyReleaseAgent { released = true; } /** The function can be called only before or after the tokens have been releasesd */ modifier inReleaseState(bool releaseState) { require(releaseState == released); // if(releaseState != released) { // throw; // } _; } /** The function can be called only by a whitelisted release agent. */ modifier onlyReleaseAgent() { require(msg.sender == releaseAgent); // if(msg.sender != releaseAgent) { // throw; // } _; } function transfer(address _to, uint _value) canTransfer(msg.sender) returns (bool success) { // Call StandardToken.transfer() return super.transfer(_to, _value); } function transferFrom(address _from, address _to, uint _value) canTransfer(_from) returns (bool success) { // Call StandardToken.transferForm() return super.transferFrom(_from, _to, _value); } } /** * A token that can increase its supply by another contract. * * This allows uncapped crowdsale by dynamically increasing the supply when money pours in. * Only mint agents, contracts whitelisted by owner, can mint new tokens. * */ contract MintableToken is StandardToken, Ownable { bool public mintingFinished = false; /** List of agents that are allowed to create new tokens */ mapping (address => bool) public mintAgents; event MintingAgentChanged(address addr, bool state ); /** * Create new tokens and allocate them to an address.. * * Only callably by a crowdsale contract (mint agent). */ function mint(address receiver, uint amount) onlyMintAgent canMint public { totalSupply = safeAdd(totalSupply, amount); balances[receiver] = safeAdd(balances[receiver], amount); // This will make the mint transaction apper in EtherScan.io // We can remove this after there is a standardized minting event Transfer(0, receiver, amount); } /** * Owner can allow a crowdsale contract to mint new tokens. */ function setMintAgent(address addr, bool state) onlyOwner canMint public { mintAgents[addr] = state; MintingAgentChanged(addr, state); } modifier onlyMintAgent() { // Only crowdsale contracts are allowed to mint new tokens require(mintAgents[msg.sender]); // if(!mintAgents[msg.sender]) { // throw; // } _; } /** Make sure we are not done yet. */ modifier canMint() { require(!mintingFinished); //if(mintingFinished) throw; _; } } /** * A crowdsaled token. * * An ERC-20 token designed specifically for crowdsales with investor protection and further development path. * * - The token transfer() is disabled until the crowdsale is over * - The token contract gives an opt-in upgrade path to a new contract * - The same token can be part of several crowdsales through approve() mechanism * - The token can be capped (supply set in the constructor) or uncapped (crowdsale contract can mint new tokens) * */ contract CrowdsaleToken is ReleasableToken, MintableToken, UpgradeableToken { event UpdatedTokenInformation(string newName, string newSymbol); string public name; string public symbol; uint8 public decimals; /** * Construct the token. * * This token must be created through a team multisig wallet, so that it is owned by that wallet. * * @param _name Token name * @param _symbol Token symbol - should be all caps * @param _initialSupply How many tokens we start with * @param _decimals Number of decimal places * @param _mintable Are new tokens created over the crowdsale or do we distribute only the initial supply? Note that when the token becomes transferable the minting always ends. */ function CrowdsaleToken(string _name, string _symbol, uint _initialSupply, uint8 _decimals, bool _mintable) UpgradeableToken(msg.sender) { // Create any address, can be transferred // to team multisig via changeOwner(), // also remember to call setUpgradeMaster() owner = msg.sender; name = _name; symbol = _symbol; totalSupply = _initialSupply; decimals = _decimals; // Create initially all balance on the team multisig balances[owner] = totalSupply; if(totalSupply > 0) { Minted(owner, totalSupply); } // No more new supply allowed after the token creation if(!_mintable) { mintingFinished = true; require(totalSupply != 0); // if(totalSupply == 0) { // throw; // Cannot create a token without supply and no minting // } } } /** * When token is released to be transferable, enforce no new tokens can be created. */ function releaseTokenTransfer() public onlyReleaseAgent { mintingFinished = true; super.releaseTokenTransfer(); } /** * Allow upgrade agent functionality kick in only if the crowdsale was success. */ function canUpgrade() public constant returns(bool) { return released && super.canUpgrade(); } /** * Owner can update token information here */ function setTokenInformation(string _name, string _symbol) onlyOwner { name = _name; symbol = _symbol; UpdatedTokenInformation(name, symbol); } } /** * Finalize agent defines what happens at the end of succeseful crowdsale. * * - Allocate tokens for founders, bounties and community * - Make tokens transferable * - etc. */ contract FinalizeAgent { function isFinalizeAgent() public constant returns(bool) { return true; } /** Return true if we can run finalizeCrowdsale() properly. * * This is a safety check function that doesn't allow crowdsale to begin * unless the finalizer has been set up properly. */ function isSane() public constant returns (bool); /** Called once by crowdsale finalize() if the sale was success. */ function finalizeCrowdsale(); } /** * Interface for defining crowdsale pricing. */ contract PricingStrategy { /** Interface declaration. */ function isPricingStrategy() public constant returns (bool) { return true; } /** Self check if all references are correctly set. * * Checks that pricing strategy matches crowdsale parameters. */ function isSane(address crowdsale) public constant returns (bool) { return true; } /** * When somebody tries to buy tokens for X eth, calculate how many tokens they get. * * * @param value - What is the value of the transaction send in as wei * @param tokensSold - how much tokens have been sold this far * @param weiRaised - how much money has been raised this far * @param msgSender - who is the investor of this transaction * @param decimals - how many decimal units the token has * @return Amount of tokens the investor receives */ function calculatePrice(uint value, uint weiRaised, uint tokensSold, address msgSender, uint decimals) public constant returns (uint tokenAmount); } /* * Haltable * * Abstract contract that allows children to implement an * emergency stop mechanism. Differs from Pausable by causing a throw when in halt mode. * * * Originally envisioned in FirstBlood ICO contract. */ contract Haltable is Ownable { bool public halted; modifier stopInEmergency { require(!halted); //if (halted) throw; _; } modifier onlyInEmergency { require(halted); //if (!halted) throw; _; } // called by the owner on emergency, triggers stopped state function halt() external onlyOwner { halted = true; } // called by the owner on end of emergency, returns to normal state function unhalt() external onlyOwner onlyInEmergency { halted = false; } } /** * Abstract base contract for token sales. * * Handle * - start and end dates * - accepting investments * - minimum funding goal and refund * - various statistics during the crowdfund * - different pricing strategies * - different investment policies (require server side customer id, allow only whitelisted addresses) * */ contract Crowdsale is Haltable, SafeMathLib { /* Max investment count when we are still allowed to change the multisig address */ uint public MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE = 5; /* The token we are selling */ FractionalERC20 public token; /* How we are going to price our offering */ PricingStrategy public pricingStrategy; /* Post-success callback */ FinalizeAgent public finalizeAgent; /* tokens will be transfered from this address */ address public multisigWallet; /* if the funding goal is not reached, investors may withdraw their funds */ uint public minimumFundingGoal; /* the UNIX timestamp start date of the crowdsale */ uint public startsAt; /* the UNIX timestamp end date of the crowdsale */ uint public endsAt; /* the number of tokens already sold through this contract*/ uint public tokensSold = 0; /* How many wei of funding we have raised */ uint public weiRaised = 0; /* How many distinct addresses have invested */ uint public investorCount = 0; /* How much wei we have returned back to the contract after a failed crowdfund. */ uint public loadedRefund = 0; /* How much wei we have given back to investors.*/ uint public weiRefunded = 0; /* Has this crowdsale been finalized */ bool public finalized; /* Do we need to have unique contributor id for each customer */ bool public requireCustomerId; /** * Do we verify that contributor has been cleared on the server side (accredited investors only). * This method was first used in FirstBlood crowdsale to ensure all contributors have accepted terms on sale (on the web). */ bool public requiredSignedAddress; /* Server side address that signed allowed contributors (Ethereum addresses) that can participate the crowdsale */ address public signerAddress; /** How much ETH each address has invested to this crowdsale */ mapping (address => uint256) public investedAmountOf; /** How much tokens this crowdsale has credited for each investor address */ mapping (address => uint256) public tokenAmountOf; /** Addresses that are allowed to invest even before ICO offical opens. For testing, for ICO partners, etc. */ mapping (address => bool) public earlyParticipantWhitelist; /** This is for manul testing for the interaction from owner wallet. You can set it to any value and inspect this in blockchain explorer to see that crowdsale interaction works. */ uint public ownerTestValue; /** State machine * * - Preparing: All contract initialization calls and variables have not been set yet * - Prefunding: We have not passed start time yet * - Funding: Active crowdsale * - Success: Minimum funding goal reached * - Failure: Minimum funding goal not reached before ending time * - Finalized: The finalized has been called and succesfully executed * - Refunding: Refunds are loaded on the contract for reclaim. */ enum State{Unknown, Preparing, PreFunding, Funding, Success, Failure, Finalized, Refunding} // A new investment was made event Invested(address investor, uint weiAmount, uint tokenAmount, uint128 customerId); // Refund was processed for a contributor event Refund(address investor, uint weiAmount); // The rules were changed what kind of investments we accept event InvestmentPolicyChanged(bool requireCustomerId, bool requiredSignedAddress, address signerAddress); // Address early participation whitelist status changed event Whitelisted(address addr, bool status); // Crowdsale end time has been changed event EndsAtChanged(uint endsAt); function Crowdsale(address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal) { owner = msg.sender; token = FractionalERC20(_token); setPricingStrategy(_pricingStrategy); multisigWallet = _multisigWallet; require(multisigWallet != 0); // if(multisigWallet == 0) { // throw; // } require(_start != 0); // if(_start == 0) { // throw; // } startsAt = _start; require(_end != 0); // if(_end == 0) { // throw; // } endsAt = _end; // Don't mess the dates require(startsAt < endsAt); // if(startsAt >= endsAt) { // throw; // } // Minimum funding goal can be zero minimumFundingGoal = _minimumFundingGoal; } /** * Don't expect to just send in money and get tokens. */ function() payable { throw; } /** * Make an investment. * * Crowdsale must be running for one to invest. * We must have not pressed the emergency brake. * * @param receiver The Ethereum address who receives the tokens * @param customerId (optional) UUID v4 to track the successful payments on the server side * */ function investInternal(address receiver, uint128 customerId) stopInEmergency private { // Determine if it's a good time to accept investment from this participant if(getState() == State.PreFunding) { // Are we whitelisted for early deposit require(earlyParticipantWhitelist[receiver]); // if(!earlyParticipantWhitelist[receiver]) { // throw; // } } else if(getState() == State.Funding) { // Retail participants can only come in when the crowdsale is running // pass } else { // Unwanted state throw; } uint weiAmount = msg.value; uint tokenAmount = pricingStrategy.calculatePrice(weiAmount, weiRaised, tokensSold, msg.sender, token.decimals()); require(tokenAmount != 0); // if(tokenAmount == 0) { // // Dust transaction // throw; // } if(investedAmountOf[receiver] == 0) { // A new investor investorCount++; } // Update investor investedAmountOf[receiver] = safeAdd(investedAmountOf[receiver],weiAmount); tokenAmountOf[receiver] = safeAdd(tokenAmountOf[receiver],tokenAmount); // Update totals weiRaised = safeAdd(weiRaised,weiAmount); tokensSold = safeAdd(tokensSold,tokenAmount); // Check that we did not bust the cap require(!isBreakingCap(weiAmount, tokenAmount, weiRaised, tokensSold)); // if(isBreakingCap(weiAmount, tokenAmount, weiRaised, tokensSold)) { // throw; // } assignTokens(receiver, tokenAmount); // Pocket the money if(!multisigWallet.send(weiAmount)) throw; // Tell us invest was success Invested(receiver, weiAmount, tokenAmount, customerId); } /** * Preallocate tokens for the early investors. * * Preallocated tokens have been sold before the actual crowdsale opens. * This function mints the tokens and moves the crowdsale needle. * * Investor count is not handled; it is assumed this goes for multiple investors * and the token distribution happens outside the smart contract flow. * * No money is exchanged, as the crowdsale team already have received the payment. * * @param fullTokens tokens as full tokens - decimal places added internally * @param weiPrice Price of a single full token in wei * */ function preallocate(address receiver, uint fullTokens, uint weiPrice) public onlyOwner { uint tokenAmount = fullTokens * 10**uint(token.decimals()); uint weiAmount = weiPrice * fullTokens; // This can be also 0, we give out tokens for free weiRaised = safeAdd(weiRaised,weiAmount); tokensSold = safeAdd(tokensSold,tokenAmount); investedAmountOf[receiver] = safeAdd(investedAmountOf[receiver],weiAmount); tokenAmountOf[receiver] = safeAdd(tokenAmountOf[receiver],tokenAmount); assignTokens(receiver, tokenAmount); // Tell us invest was success Invested(receiver, weiAmount, tokenAmount, 0); } /** * Allow anonymous contributions to this crowdsale. */ // function investWithSignedAddress(address addr, uint128 customerId, uint8 v, bytes32 r, bytes32 s) public payable { // bytes32 hash = sha256(addr); // if (ecrecover(hash, v, r, s) != signerAddress) throw; // require(customerId != 0); // //if(customerId == 0) throw; // UUIDv4 sanity check // investInternal(addr, customerId); // } /** * Track who is the customer making the payment so we can send thank you email. */ function investWithCustomerId(address addr, uint128 customerId) public payable { require(!requiredSignedAddress); //if(requiredSignedAddress) throw; // Crowdsale allows only server-side signed participants require(customerId != 0); //if(customerId == 0) throw; // UUIDv4 sanity check investInternal(addr, customerId); } /** * Allow anonymous contributions to this crowdsale. */ function invest(address addr) public payable { require(!requireCustomerId); //if(requireCustomerId) throw; // Crowdsale needs to track partipants for thank you email require(!requiredSignedAddress); //if(requiredSignedAddress) throw; // Crowdsale allows only server-side signed participants investInternal(addr, 0); } /** * Invest to tokens, recognize the payer and clear his address. * */ // function buyWithSignedAddress(uint128 customerId, uint8 v, bytes32 r, bytes32 s) public payable { // investWithSignedAddress(msg.sender, customerId, v, r, s); // } /** * Invest to tokens, recognize the payer. * */ function buyWithCustomerId(uint128 customerId) public payable { investWithCustomerId(msg.sender, customerId); } /** * The basic entry point to participate the crowdsale process. * * Pay for funding, get invested tokens back in the sender address. */ function buy() public payable { invest(msg.sender); } /** * Finalize a succcesful crowdsale. * * The owner can triggre a call the contract that provides post-crowdsale actions, like releasing the tokens. */ function finalize() public inState(State.Success) onlyOwner stopInEmergency { // Already finalized require(!finalized); // if(finalized) { // throw; // } // Finalizing is optional. We only call it if we are given a finalizing agent. if(address(finalizeAgent) != 0) { finalizeAgent.finalizeCrowdsale(); } finalized = true; } /** * Allow to (re)set finalize agent. * * Design choice: no state restrictions on setting this, so that we can fix fat finger mistakes. */ function setFinalizeAgent(FinalizeAgent addr) onlyOwner { finalizeAgent = addr; // Don't allow setting bad agent require(finalizeAgent.isFinalizeAgent()); // if(!finalizeAgent.isFinalizeAgent()) { // throw; // } } /** * Set policy do we need to have server-side customer ids for the investments. * */ function setRequireCustomerId(bool value) onlyOwner { requireCustomerId = value; InvestmentPolicyChanged(requireCustomerId, requiredSignedAddress, signerAddress); } /** * Set policy if all investors must be cleared on the server side first. * * This is e.g. for the accredited investor clearing. * */ // function setRequireSignedAddress(bool value, address _signerAddress) onlyOwner { // requiredSignedAddress = value; // signerAddress = _signerAddress; // InvestmentPolicyChanged(requireCustomerId, requiredSignedAddress, signerAddress); // } /** * Allow addresses to do early participation. * * TODO: Fix spelling error in the name */ function setEarlyParicipantWhitelist(address addr, bool status) onlyOwner { earlyParticipantWhitelist[addr] = status; Whitelisted(addr, status); } /** * Allow crowdsale owner to close early or extend the crowdsale. * * This is useful e.g. for a manual soft cap implementation: * - after X amount is reached determine manual closing * * This may put the crowdsale to an invalid state, * but we trust owners know what they are doing. * */ function setEndsAt(uint time) onlyOwner { if(now > time) { throw; // Don't change past } endsAt = time; EndsAtChanged(endsAt); } /** * Allow to (re)set pricing strategy. * * Design choice: no state restrictions on the set, so that we can fix fat finger mistakes. */ function setPricingStrategy(PricingStrategy _pricingStrategy) onlyOwner { pricingStrategy = _pricingStrategy; // Don't allow setting bad agent require(pricingStrategy.isPricingStrategy()); // if(!pricingStrategy.isPricingStrategy()) { // throw; // } } /** * Allow to change the team multisig address in the case of emergency. * * This allows to save a deployed crowdsale wallet in the case the crowdsale has not yet begun * (we have done only few test transactions). After the crowdsale is going * then multisig address stays locked for the safety reasons. */ function setMultisig(address addr) public onlyOwner { // Change if(investorCount > MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE) { throw; } multisigWallet = addr; } /** * Allow load refunds back on the contract for the refunding. * * The team can transfer the funds back on the smart contract in the case the minimum goal was not reached.. */ function loadRefund() public payable inState(State.Failure) { require(msg.value != 0); //if(msg.value == 0) throw; loadedRefund = safeAdd(loadedRefund,msg.value); } /** * Investors can claim refund. */ function refund() public inState(State.Refunding) { uint256 weiValue = investedAmountOf[msg.sender]; require(weiValue != 0); //if (weiValue == 0) throw; investedAmountOf[msg.sender] = 0; weiRefunded = safeAdd(weiRefunded,weiValue); Refund(msg.sender, weiValue); if (!msg.sender.send(weiValue)) throw; } /** * @return true if the crowdsale has raised enough money to be a succes */ function isMinimumGoalReached() public constant returns (bool reached) { return weiRaised >= minimumFundingGoal; } /** * Check if the contract relationship looks good. */ function isFinalizerSane() public constant returns (bool sane) { return finalizeAgent.isSane(); } /** * Check if the contract relationship looks good. */ function isPricingSane() public constant returns (bool sane) { return pricingStrategy.isSane(address(this)); } /** * Crowdfund state machine management. * * We make it a function and do not assign the result to a variable, so there is no chance of the variable being stale. */ function getState() public constant returns (State) { if(finalized) return State.Finalized; else if (address(finalizeAgent) == 0) return State.Preparing; else if (!finalizeAgent.isSane()) return State.Preparing; else if (!pricingStrategy.isSane(address(this))) return State.Preparing; else if (block.timestamp < startsAt) return State.PreFunding; else if (block.timestamp <= endsAt && !isCrowdsaleFull()) return State.Funding; else if (isMinimumGoalReached()) return State.Success; else if (!isMinimumGoalReached() && weiRaised > 0 && loadedRefund >= weiRaised) return State.Refunding; else return State.Failure; } /** This is for manual testing of multisig wallet interaction */ function setOwnerTestValue(uint val) onlyOwner { ownerTestValue = val; } /** Interface marker. */ function isCrowdsale() public constant returns (bool) { return true; } // // Modifiers // /** Modified allowing execution only if the crowdsale is currently running. */ modifier inState(State state) { require(getState() == state); //if(getState() != state) throw; _; } // // Abstract functions // /** * Check if the current invested breaks our cap rules. * * * The child contract must define their own cap setting rules. * We allow a lot of flexibility through different capping strategies (ETH, token count) * Called from invest(). * * @param weiAmount The amount of wei the investor tries to invest in the current transaction * @param tokenAmount The amount of tokens we try to give to the investor in the current transaction * @param weiRaisedTotal What would be our total raised balance after this transaction * @param tokensSoldTotal What would be our total sold tokens count after this transaction * * @return true if taking this investment would break our cap rules */ function isBreakingCap(uint weiAmount, uint tokenAmount, uint weiRaisedTotal, uint tokensSoldTotal) constant returns (bool limitBroken); /** * Check if the current crowdsale is full and we can no longer sell any tokens. */ function isCrowdsaleFull() public constant returns (bool); /** * Create new tokens or transfer issued tokens to the investor depending on the cap model. */ function assignTokens(address receiver, uint tokenAmount) private; } /** * At the end of the successful crowdsale allocate % bonus of tokens to the team. * * Unlock tokens. * * BonusAllocationFinal must be set as the minting agent for the MintableToken. * */ contract BonusFinalizeAgent is FinalizeAgent, SafeMathLib { CrowdsaleToken public token; Crowdsale public crowdsale; /** Total percent of tokens minted to the team at the end of the sale as base points (0.0001) */ uint public totalMembers; uint public allocatedBonus; mapping (address=>uint) bonusOf; /** Where we move the tokens at the end of the sale. */ address[] public teamAddresses; function BonusFinalizeAgent(CrowdsaleToken _token, Crowdsale _crowdsale, uint[] _bonusBasePoints, address[] _teamAddresses) { token = _token; crowdsale = _crowdsale; //crowdsale address must not be 0 require(address(crowdsale) != 0); //bonus & team address array size must match require(_bonusBasePoints.length == _teamAddresses.length); totalMembers = _teamAddresses.length; teamAddresses = _teamAddresses; //if any of the bonus is 0 throw // otherwise sum it up in totalAllocatedBonus for (uint i=0;i<totalMembers;i++){ require(_bonusBasePoints[i] != 0); //if(_bonusBasePoints[i] == 0) throw; } //if any of the address is 0 or invalid throw //otherwise initialize the bonusOf array for (uint j=0;j<totalMembers;j++){ require(_teamAddresses[j] != 0); //if(_teamAddresses[j] == 0) throw; bonusOf[_teamAddresses[j]] = _bonusBasePoints[j]; } } /* Can we run finalize properly */ function isSane() public constant returns (bool) { return (token.mintAgents(address(this)) == true) && (token.releaseAgent() == address(this)); } /** Called once by crowdsale finalize() if the sale was success. */ function finalizeCrowdsale() { // if finalized is not being called from the crowdsale // contract then throw require(msg.sender == address(crowdsale)); // if(msg.sender != address(crowdsale)) { // throw; // } // get the total sold tokens count. uint tokensSold = crowdsale.tokensSold(); for (uint i=0;i<totalMembers;i++){ allocatedBonus = safeMul(tokensSold, bonusOf[teamAddresses[i]]) / 10000; // move tokens to the team multisig wallet token.mint(teamAddresses[i], allocatedBonus); } // Make token transferable // realease them in the wild // Hell yeah!!! we did it. token.releaseTokenTransfer(); } } /** * ICO crowdsale contract that is capped by amout of ETH. * * - Tokens are dynamically created during the crowdsale * * */ contract MintedEthCappedCrowdsale is Crowdsale { /* Maximum amount of wei this crowdsale can raise. */ uint public weiCap; function MintedEthCappedCrowdsale(address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal, uint _weiCap) Crowdsale(_token, _pricingStrategy, _multisigWallet, _start, _end, _minimumFundingGoal) { weiCap = _weiCap; } /** * Called from invest() to confirm if the curret investment does not break our cap rule. */ function isBreakingCap(uint weiAmount, uint tokenAmount, uint weiRaisedTotal, uint tokensSoldTotal) constant returns (bool limitBroken) { return weiRaisedTotal > weiCap; } function isCrowdsaleFull() public constant returns (bool) { return weiRaised >= weiCap; } /** * Dynamically create tokens and assign them to the investor. */ function assignTokens(address receiver, uint tokenAmount) private { MintableToken mintableToken = MintableToken(token); mintableToken.mint(receiver, tokenAmount); } } /** Tranche based pricing with special support for pre-ico deals. * Implementing "first price" tranches, meaning, that if byers order is * covering more than one tranche, the price of the lowest tranche will apply * to the whole order. */ contract EthTranchePricing is PricingStrategy, Ownable, SafeMathLib { uint public constant MAX_TRANCHES = 10; // This contains all pre-ICO addresses, and their prices (weis per token) mapping (address => uint) public preicoAddresses; /** * Define pricing schedule using tranches. */ struct Tranche { // Amount in weis when this tranche becomes active uint amount; // How many tokens per wei you will get while this tranche is active uint price; } // Store tranches in a fixed array, so that it can be seen in a blockchain explorer // Tranche 0 is always (0, 0) // (TODO: change this when we confirm dynamic arrays are explorable) Tranche[10] public tranches; // How many active tranches we have uint public trancheCount; /// @dev Contruction, creating a list of tranches /// @param _tranches uint[] tranches Pairs of (start amount, price) function EthTranchePricing(uint[] _tranches) { // [ 0, 666666666666666, // 3000000000000000000000, 769230769230769, // 5000000000000000000000, 909090909090909, // 8000000000000000000000, 952380952380952, // 2000000000000000000000, 1000000000000000 ] // Need to have tuples, length check require(!(_tranches.length % 2 == 1 || _tranches.length >= MAX_TRANCHES*2)); // if(_tranches.length % 2 == 1 || _tranches.length >= MAX_TRANCHES*2) { // throw; // } trancheCount = _tranches.length / 2; uint highestAmount = 0; for(uint i=0; i<_tranches.length/2; i++) { tranches[i].amount = _tranches[i*2]; tranches[i].price = _tranches[i*2+1]; // No invalid steps require(!((highestAmount != 0) && (tranches[i].amount <= highestAmount))); // if((highestAmount != 0) && (tranches[i].amount <= highestAmount)) { // throw; // } highestAmount = tranches[i].amount; } // We need to start from zero, otherwise we blow up our deployment require(tranches[0].amount == 0); // if(tranches[0].amount != 0) { // throw; // } // Last tranche price must be zero, terminating the crowdale require(tranches[trancheCount-1].price == 0); // if(tranches[trancheCount-1].price != 0) { // throw; // } } /// @dev This is invoked once for every pre-ICO address, set pricePerToken /// to 0 to disable /// @param preicoAddress PresaleFundCollector address /// @param pricePerToken How many weis one token cost for pre-ico investors function setPreicoAddress(address preicoAddress, uint pricePerToken) public onlyOwner { preicoAddresses[preicoAddress] = pricePerToken; } /// @dev Iterate through tranches. You reach end of tranches when price = 0 /// @return tuple (time, price) function getTranche(uint n) public constant returns (uint, uint) { return (tranches[n].amount, tranches[n].price); } function getFirstTranche() private constant returns (Tranche) { return tranches[0]; } function getLastTranche() private constant returns (Tranche) { return tranches[trancheCount-1]; } function getPricingStartsAt() public constant returns (uint) { return getFirstTranche().amount; } function getPricingEndsAt() public constant returns (uint) { return getLastTranche().amount; } function isSane(address _crowdsale) public constant returns(bool) { // Our tranches are not bound by time, so we can't really check are we sane // so we presume we are ;) // In the future we could save and track raised tokens, and compare it to // the Crowdsale contract. return true; } /// @dev Get the current tranche or bail out if we are not in the tranche periods. /// @param weiRaised total amount of weis raised, for calculating the current tranche /// @return {[type]} [description] function getCurrentTranche(uint weiRaised) private constant returns (Tranche) { uint i; for(i=0; i < tranches.length; i++) { if(weiRaised < tranches[i].amount) { return tranches[i-1]; } } } /// @dev Get the current price. /// @param weiRaised total amount of weis raised, for calculating the current tranche /// @return The current price or 0 if we are outside trache ranges function getCurrentPrice(uint weiRaised) public constant returns (uint result) { return getCurrentTranche(weiRaised).price; } /// @dev Calculate the current price for buy in amount. function calculatePrice(uint value, uint weiRaised, uint tokensSold, address msgSender, uint decimals) public constant returns (uint) { uint multiplier = 10 ** decimals; // This investor is coming through pre-ico if(preicoAddresses[msgSender] > 0) { return safeMul(value, multiplier) / preicoAddresses[msgSender]; } uint price = getCurrentPrice(weiRaised); return safeMul(value, multiplier) / price; } function() payable { throw; // No money on this contract } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"ownerTestValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"requireCustomerId","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"invest","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"isPricingSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"endsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minimumFundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getState","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"setFinalizeAgent","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"investedAmountOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"finalizeAgent","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"receiver","type":"address"},{"name":"fullTokens","type":"uint256"},{"name":"weiPrice","type":"uint256"}],"name":"preallocate","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isCrowdsale","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_pricingStrategy","type":"address"}],"name":"setPricingStrategy","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"signerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"weiRefunded","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"halt","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"time","type":"uint256"}],"name":"setEndsAt","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"pricingStrategy","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"loadedRefund","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isMinimumGoalReached","outputs":[{"name":"reached","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"bool"}],"name":"setRequireCustomerId","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"weiCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"loadRefund","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"val","type":"uint256"}],"name":"setOwnerTestValue","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"multisigWallet","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"tokenAmountOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"customerId","type":"uint128"}],"name":"buyWithCustomerId","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[{"name":"weiAmount","type":"uint256"},{"name":"tokenAmount","type":"uint256"},{"name":"weiRaisedTotal","type":"uint256"},{"name":"tokensSoldTotal","type":"uint256"}],"name":"isBreakingCap","outputs":[{"name":"limitBroken","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeSub","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"isFinalizerSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"finalized","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"halted","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"earlyParticipantWhitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unhalt","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"requiredSignedAddress","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isCrowdsaleFull","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"investorCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeAdd","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"status","type":"bool"}],"name":"setEarlyParicipantWhitelist","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"customerId","type":"uint128"}],"name":"investWithCustomerId","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"setMultisig","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_pricingStrategy","type":"address"},{"name":"_multisigWallet","type":"address"},{"name":"_start","type":"uint256"},{"name":"_end","type":"uint256"},{"name":"_minimumFundingGoal","type":"uint256"},{"name":"_weiCap","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"},{"indexed":false,"name":"tokenAmount","type":"uint256"},{"indexed":false,"name":"customerId","type":"uint128"}],"name":"Invested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"requireCustomerId","type":"bool"},{"indexed":false,"name":"requiredSignedAddress","type":"bool"},{"indexed":false,"name":"signerAddress","type":"address"}],"name":"InvestmentPolicyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"status","type":"bool"}],"name":"Whitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"endsAt","type":"uint256"}],"name":"EndsAtChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
606060405260056002556000600a556000600b556000600c556000600d556000600e5534156200002b57fe5b60405160e08062001db483398101604090815281516020830151918301516060840151608085015160a086015160c09096015193959293919290915b8686868686865b5b60008054600160a060020a03191633600160a060020a03161790555b60008054600160a060020a03338116600160a060020a0319928316179092556003805492891692909116919091179055620000d48564010000000062000fee6200015982021704565b60068054600160a060020a031916600160a060020a038681169190911791829055161515620001035760006000fd5b821515620001115760006000fd5b6008839055811515620001245760006000fd5b60098290556008548290106200013a5760006000fd5b60078190555b50505060148490555050505b505050505050506200021a565b60005433600160a060020a03908116911614620001765760006000fd5b60048054600160a060020a031916600160a060020a0383811691909117808355604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925193909416946304bbc2559483820194929383900390910190829087803b1515620001f157fe5b6102c65a03f115156200020057fe5b50506040515115159050620002155760006000fd5b5b5b50565b611b8a806200022a6000396000f3006060604052361561026c5763ffffffff60e060020a6000350416630226401d811461027a57806303ca0eed1461029c57806303f9c793146102c0578063062b01ce146102d65780630a09284a146102fa57806313f4e9771461031c5780631865c57d1461033e57806319b667da146103725780631aae34601461039057806321d5c0f6146103be57806332013ac3146103ea5780634042b66f1461040e5780634551dd59146104305780634bb278f31461045457806350c6773414610466578063518ab2a814610484578063590e1ae3146104a65780635b7633d0146104b85780635da89ac0146104e45780635ed7ca5b146105065780636203f09f146105185780636e50eb3f1461053a57806378b99c241461054f578063797d94371461057b57806379ba50971461059d5780637c2e08a3146105af5780637f7d711e146105d357806384fe5029146105ea578063876121021461060c5780638d51faec146106165780638da5cb5b1461062b5780639075becf1461065757806397b150ca1461068357806399e9376c146106b15780639d3c663f146106d0578063a293d1e814610700578063a6f2ae3a14610728578063a7ba44c314610732578063af46868214610756578063b3f05b9714610778578063b9b8af0b1461079c578063cb16e6d0146107c0578063cb3e64fd146107f0578063d05c78da14610802578063d222dc041461082a578063d4ee1d901461084e578063d5d090211461087a578063d7e64c001461089e578063e6cb9013146108c0578063eac24932146108e8578063ef8694431461090b578063f2fde38b14610936578063f3283fba14610954578063fc0c546a14610972575b6102785b60006000fd5b565b005b341561028257fe5b61028a61099e565b60408051918252519081900360200190f35b34156102a457fe5b6102ac6109a4565b604080519115158252519081900360200190f35b610278600160a060020a03600435166109b2565b005b34156102de57fe5b6102ac6109ee565b604080519115158252519081900360200190f35b341561030257fe5b61028a610a80565b60408051918252519081900360200190f35b341561032457fe5b61028a610a86565b60408051918252519081900360200190f35b341561034657fe5b61034e610a8c565b6040518082600781111561035e57fe5b60ff16815260200191505060405180910390f35b341561037a57fe5b610278600160a060020a0360043516610c68565b005b341561039857fe5b61028a600160a060020a0360043516610d31565b60408051918252519081900360200190f35b34156103c657fe5b6103ce610d43565b60408051600160a060020a039092168252519081900360200190f35b34156103f257fe5b610278600160a060020a0360043516602435604435610d52565b005b341561041657fe5b61028a610ee9565b60408051918252519081900360200190f35b341561043857fe5b6102ac610eef565b604080519115158252519081900360200190f35b341561045c57fe5b610278610ef5565b005b341561046e57fe5b610278600160a060020a0360043516610fee565b005b341561048c57fe5b61028a6110b8565b60408051918252519081900360200190f35b34156104ae57fe5b6102786110be565b005b34156104c057fe5b6103ce6111ae565b60408051600160a060020a039092168252519081900360200190f35b34156104ec57fe5b61028a6111c4565b60408051918252519081900360200190f35b341561050e57fe5b6102786111ca565b005b341561052057fe5b61028a61120e565b60408051918252519081900360200190f35b341561054257fe5b610278600435611214565b005b341561055757fe5b6103ce61127b565b60408051600160a060020a039092168252519081900360200190f35b341561058357fe5b61028a61128a565b60408051918252519081900360200190f35b34156105a557fe5b610278611290565b005b34156105b757fe5b6102ac61131b565b604080519115158252519081900360200190f35b34156105db57fe5b6102786004351515611327565b005b34156105f257fe5b61028a6113c2565b60408051918252519081900360200190f35b6102786113c8565b005b341561061e57fe5b61027860043561140b565b005b341561063357fe5b6103ce611431565b60408051600160a060020a039092168252519081900360200190f35b341561065f57fe5b6103ce611440565b60408051600160a060020a039092168252519081900360200190f35b341561068b57fe5b61028a600160a060020a036004351661144f565b60408051918252519081900360200190f35b6102786fffffffffffffffffffffffffffffffff60043516611461565b005b34156106d857fe5b6102ac60043560243560443560643561146f565b604080519115158252519081900360200190f35b341561070857fe5b61028a60043560243561147d565b60408051918252519081900360200190f35b610278611494565b005b341561073a57fe5b6102ac6114a0565b604080519115158252519081900360200190f35b341561075e57fe5b61028a61151e565b60408051918252519081900360200190f35b341561078057fe5b6102ac611524565b604080519115158252519081900360200190f35b34156107a457fe5b6102ac61152d565b604080519115158252519081900360200190f35b34156107c857fe5b6102ac600160a060020a036004351661153d565b604080519115158252519081900360200190f35b34156107f857fe5b610278611552565b005b341561080a57fe5b61028a6004356024356115aa565b60408051918252519081900360200190f35b341561083257fe5b6102ac6115d9565b604080519115158252519081900360200190f35b341561085657fe5b6103ce6115e8565b60408051600160a060020a039092168252519081900360200190f35b341561088257fe5b6102ac6115f7565b604080519115158252519081900360200190f35b34156108a657fe5b61028a611603565b60408051918252519081900360200190f35b34156108c857fe5b61028a600435602435611609565b60408051918252519081900360200190f35b34156108f057fe5b610278600160a060020a03600435166024351515611623565b005b610278600160a060020a03600435166fffffffffffffffffffffffffffffffff602435166116a5565b005b341561093e57fe5b610278600160a060020a03600435166116ea565b005b341561095c57fe5b610278600160a060020a0360043516611733565b005b341561097a57fe5b6103ce61178e565b60408051600160a060020a039092168252519081900360200190f35b60135481565b600f54610100900460ff1681565b600f54610100900460ff16156109c85760006000fd5b600f5462010000900460ff16156109df5760006000fd5b6109ea81600061179d565b5b50565b6000600460009054906101000a9004600160a060020a0316600160a060020a0316638e768288306000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1515610a6557fe5b6102c65a03f11515610a7357fe5b5050604051519150505b90565b60095481565b60075481565b600f5460009060ff1615610aa257506006610a7d565b600554600160a060020a03161515610abc57506001610a7d565b600554604080516000602091820181905282517f82771c8e0000000000000000000000000000000000000000000000000000000081529251600160a060020a03909416936382771c8e9360048082019493918390030190829087803b1515610b2057fe5b6102c65a03f11515610b2e57fe5b50506040515115159050610b4457506001610a7d565b60048054604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a033081169682019690965292519490931693638e768288936024808501948390030190829087803b1515610bb257fe5b6102c65a03f11515610bc057fe5b50506040515115159050610bd657506001610a7d565b600854421015610be857506002610a7d565b6009544211158015610bff5750610bfd6115f7565b155b15610c0c57506003610a7d565b610c1461131b565b15610c2157506004610a7d565b610c2961131b565b158015610c3857506000600b54115b8015610c485750600b54600d5410155b15610c5557506007610a7d565b506005610a7d565b5b5b5b5b5b5b5b5b90565b60005433600160a060020a03908116911614610c845760006000fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055604080516000602091820181905282517f614cb9040000000000000000000000000000000000000000000000000000000081529251949093169363614cb904936004808501948390030190829087803b1515610d0a57fe5b6102c65a03f11515610d1857fe5b505060405151151590506109ea5760006000fd5b5b5b50565b60106020526000908152604090205481565b600554600160a060020a031681565b60008054819033600160a060020a03908116911614610d715760006000fd5b600354604080516000602091820181905282517f313ce5670000000000000000000000000000000000000000000000000000000081529251600160a060020a039094169363313ce5679360048082019493918390030190829087803b1515610dd557fe5b6102c65a03f11515610de357fe5b5050506040518051905060ff16600a0a840291508383029050610e08600b5482611609565b600b55600a54610e189083611609565b600a55600160a060020a038516600090815260106020526040902054610e3e9082611609565b600160a060020a038616600090815260106020908152604080832093909355601190522054610e6d9083611609565b600160a060020a038616600090815260116020526040902055610e908583611ada565b60408051600160a060020a0387168152602081018390528082018490526000606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b5050505050565b600b5481565b60015b90565b6004805b610f01610a8c565b6007811115610f0c57fe5b14610f175760006000fd5b60005433600160a060020a03908116911614610f335760006000fd5b60015460a060020a900460ff1615610f4b5760006000fd5b600f5460ff1615610f5c5760006000fd5b600554600160a060020a031615610fda57600554604080517f0bf318a30000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691630bf318a39160048082019260009290919082900301818387803b1515610fc857fe5b6102c65a03f11515610fd657fe5b5050505b600f805460ff191660011790555b5b5b5b50565b60005433600160a060020a0390811691161461100a5760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117808355604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925193909416946304bbc2559483820194929383900390910190829087803b1515610d0a57fe5b6102c65a03f11515610d1857fe5b505060405151151590506109ea5760006000fd5b5b5b50565b600a5481565b60006007805b6110cc610a8c565b60078111156110d757fe5b146110e25760006000fd5b600160a060020a033316600090815260106020526040902054915081151561110a5760006000fd5b600160a060020a033316600090815260106020526040812055600e546111309083611609565b600e5560408051600160a060020a03331681526020810184905281517fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d929181900390910190a1604051600160a060020a0333169083156108fc029084906000818181858888f1935050505015156111a85760006000fd5b5b5b5050565b600f5463010000009004600160a060020a031681565b600e5481565b60005433600160a060020a039081169116146111e65760006000fd5b6001805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b60025481565b60005433600160a060020a039081169116146112305760006000fd5b8042111561123e5760006000fd5b60098190556040805182815290517fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3109181900360200190a15b5b50565b600454600160a060020a031681565b600d5481565b60015433600160a060020a039081169116146112ac5760006000fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039092169190911790555b565b600754600b5410155b90565b60005433600160a060020a039081169116146113435760006000fd5b600f805461ff001916610100831515810291909117918290556040805160ff928404831615158152620100008404909216151560208301526301000000909204600160a060020a03168183015290517f48d826081348f5f00e8a33c9ae8ce89ed4c6e88400b585a478bc203d9e8177d3916060908290030190a15b5b50565b60145481565b6005805b6113d4610a8c565b60078111156113df57fe5b146113ea5760006000fd5b3415156113f75760006000fd5b611403600d5434611609565b600d555b5b50565b60005433600160a060020a039081169116146114275760006000fd5b60138190555b5b50565b600054600160a060020a031681565b600654600160a060020a031681565b60116020526000908152604090205481565b6109ea33826116a5565b5b50565b60145482115b949350505050565b60008282111561148957fe5b508082035b92915050565b610276336109b2565b5b565b600554604080516000602091820181905282517f82771c8e00000000000000000000000000000000000000000000000000000000815292519093600160a060020a0316926382771c8e92600480830193919282900301818787803b1515610a6557fe5b6102c65a03f11515610a7357fe5b5050604051519150505b90565b60085481565b600f5460ff1681565b60015460a060020a900460ff1681565b60126020526000908152604090205460ff1681565b60005433600160a060020a0390811691161461156e5760006000fd5b60015460a060020a900460ff1615156115875760006000fd5b6001805474ff0000000000000000000000000000000000000000191690555b5b5b565b60008282028315806115c657508284828115156115c357fe5b04145b15156115ce57fe5b8091505b5092915050565b600f5462010000900460ff1681565b600154600160a060020a031681565b601454600b5410155b90565b600c5481565b6000828201838110156115ce57fe5b8091505b5092915050565b60005433600160a060020a0390811691161461163f5760006000fd5b600160a060020a038216600081815260126020908152604091829020805460ff191685151590811790915582519384529083015280517fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f264409281900390910190a15b5b5050565b600f5462010000900460ff16156116bc5760006000fd5b6fffffffffffffffffffffffffffffffff811615156116db5760006000fd5b6111a8828261179d565b5b5050565b60005433600160a060020a039081169116146117065760006000fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a0390811691161461174f5760006000fd5b600254600c5411156117615760006000fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600354600160a060020a031681565b600154600090819060a060020a900460ff16156117ba5760006000fd5b60025b6117c5610a8c565b60078111156117d057fe5b141561180357600160a060020a03841660009081526012602052604090205460ff1615156117fe5760006000fd5b61182a565b60035b61180e610a8c565b600781111561181957fe5b14156102705761182a565b60006000fd5b5b349150600460009054906101000a9004600160a060020a0316600160a060020a03166318a4155e83600b54600a5433600360009054906101000a9004600160a060020a0316600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156118b557fe5b6102c65a03f115156118c357fe5b505050604051805190506000604051602001526040518663ffffffff1660e060020a0281526004018086815260200185815260200184815260200183600160a060020a0316600160a060020a031681526020018260ff16815260200195505050505050602060405180830381600087803b151561193c57fe5b6102c65a03f1151561194a57fe5b5050604051519150508015156119605760006000fd5b600160a060020a038416600090815260106020526040902054151561198957600c805460010190555b600160a060020a0384166000908152601060205260409020546119ac9083611609565b600160a060020a0385166000908152601060209081526040808320939093556011905220546119db9082611609565b600160a060020a038516600090815260116020526040902055600b54611a019083611609565b600b55600a54611a119082611609565b600a81905550611a278282600b54600a5461146f565b15611a325760006000fd5b611a3c8482611ada565b600654604051600160a060020a039091169083156108fc029084906000818181858888f193505050501515611a715760006000fd5b60408051600160a060020a0386168152602081018490528082018390526fffffffffffffffffffffffffffffffff8516606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b50505050565b600354604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169182916340c10f199160448082019260009290919082900301818387803b1515611b4757fe5b6102c65a03f11515611b5557fe5b5050505b5050505600a165627a7a723058202a05afbaab507e81c1e0a84fc348ebfd5e38b6e37b7fe620cc5b285103d9bad000290000000000000000000000007654915a1b82d6d2d0afc37c52af556ea8983c7e0000000000000000000000002e5e995bdaa495abaf2af499d682b0277d4dd66b00000000000000000000000066e32d375642ce9c8202caea1f6a83b0c3caf32c00000000000000000000000000000000000000000000000000000000597465900000000000000000000000000000000000000000000000000000000059882c1000000000000000000000000000000000000000000000005150ae84a8cdf000000000000000000000000000000000000000000000000005ede20f01a459800000
Deployed Bytecode
0x6060604052361561026c5763ffffffff60e060020a6000350416630226401d811461027a57806303ca0eed1461029c57806303f9c793146102c0578063062b01ce146102d65780630a09284a146102fa57806313f4e9771461031c5780631865c57d1461033e57806319b667da146103725780631aae34601461039057806321d5c0f6146103be57806332013ac3146103ea5780634042b66f1461040e5780634551dd59146104305780634bb278f31461045457806350c6773414610466578063518ab2a814610484578063590e1ae3146104a65780635b7633d0146104b85780635da89ac0146104e45780635ed7ca5b146105065780636203f09f146105185780636e50eb3f1461053a57806378b99c241461054f578063797d94371461057b57806379ba50971461059d5780637c2e08a3146105af5780637f7d711e146105d357806384fe5029146105ea578063876121021461060c5780638d51faec146106165780638da5cb5b1461062b5780639075becf1461065757806397b150ca1461068357806399e9376c146106b15780639d3c663f146106d0578063a293d1e814610700578063a6f2ae3a14610728578063a7ba44c314610732578063af46868214610756578063b3f05b9714610778578063b9b8af0b1461079c578063cb16e6d0146107c0578063cb3e64fd146107f0578063d05c78da14610802578063d222dc041461082a578063d4ee1d901461084e578063d5d090211461087a578063d7e64c001461089e578063e6cb9013146108c0578063eac24932146108e8578063ef8694431461090b578063f2fde38b14610936578063f3283fba14610954578063fc0c546a14610972575b6102785b60006000fd5b565b005b341561028257fe5b61028a61099e565b60408051918252519081900360200190f35b34156102a457fe5b6102ac6109a4565b604080519115158252519081900360200190f35b610278600160a060020a03600435166109b2565b005b34156102de57fe5b6102ac6109ee565b604080519115158252519081900360200190f35b341561030257fe5b61028a610a80565b60408051918252519081900360200190f35b341561032457fe5b61028a610a86565b60408051918252519081900360200190f35b341561034657fe5b61034e610a8c565b6040518082600781111561035e57fe5b60ff16815260200191505060405180910390f35b341561037a57fe5b610278600160a060020a0360043516610c68565b005b341561039857fe5b61028a600160a060020a0360043516610d31565b60408051918252519081900360200190f35b34156103c657fe5b6103ce610d43565b60408051600160a060020a039092168252519081900360200190f35b34156103f257fe5b610278600160a060020a0360043516602435604435610d52565b005b341561041657fe5b61028a610ee9565b60408051918252519081900360200190f35b341561043857fe5b6102ac610eef565b604080519115158252519081900360200190f35b341561045c57fe5b610278610ef5565b005b341561046e57fe5b610278600160a060020a0360043516610fee565b005b341561048c57fe5b61028a6110b8565b60408051918252519081900360200190f35b34156104ae57fe5b6102786110be565b005b34156104c057fe5b6103ce6111ae565b60408051600160a060020a039092168252519081900360200190f35b34156104ec57fe5b61028a6111c4565b60408051918252519081900360200190f35b341561050e57fe5b6102786111ca565b005b341561052057fe5b61028a61120e565b60408051918252519081900360200190f35b341561054257fe5b610278600435611214565b005b341561055757fe5b6103ce61127b565b60408051600160a060020a039092168252519081900360200190f35b341561058357fe5b61028a61128a565b60408051918252519081900360200190f35b34156105a557fe5b610278611290565b005b34156105b757fe5b6102ac61131b565b604080519115158252519081900360200190f35b34156105db57fe5b6102786004351515611327565b005b34156105f257fe5b61028a6113c2565b60408051918252519081900360200190f35b6102786113c8565b005b341561061e57fe5b61027860043561140b565b005b341561063357fe5b6103ce611431565b60408051600160a060020a039092168252519081900360200190f35b341561065f57fe5b6103ce611440565b60408051600160a060020a039092168252519081900360200190f35b341561068b57fe5b61028a600160a060020a036004351661144f565b60408051918252519081900360200190f35b6102786fffffffffffffffffffffffffffffffff60043516611461565b005b34156106d857fe5b6102ac60043560243560443560643561146f565b604080519115158252519081900360200190f35b341561070857fe5b61028a60043560243561147d565b60408051918252519081900360200190f35b610278611494565b005b341561073a57fe5b6102ac6114a0565b604080519115158252519081900360200190f35b341561075e57fe5b61028a61151e565b60408051918252519081900360200190f35b341561078057fe5b6102ac611524565b604080519115158252519081900360200190f35b34156107a457fe5b6102ac61152d565b604080519115158252519081900360200190f35b34156107c857fe5b6102ac600160a060020a036004351661153d565b604080519115158252519081900360200190f35b34156107f857fe5b610278611552565b005b341561080a57fe5b61028a6004356024356115aa565b60408051918252519081900360200190f35b341561083257fe5b6102ac6115d9565b604080519115158252519081900360200190f35b341561085657fe5b6103ce6115e8565b60408051600160a060020a039092168252519081900360200190f35b341561088257fe5b6102ac6115f7565b604080519115158252519081900360200190f35b34156108a657fe5b61028a611603565b60408051918252519081900360200190f35b34156108c857fe5b61028a600435602435611609565b60408051918252519081900360200190f35b34156108f057fe5b610278600160a060020a03600435166024351515611623565b005b610278600160a060020a03600435166fffffffffffffffffffffffffffffffff602435166116a5565b005b341561093e57fe5b610278600160a060020a03600435166116ea565b005b341561095c57fe5b610278600160a060020a0360043516611733565b005b341561097a57fe5b6103ce61178e565b60408051600160a060020a039092168252519081900360200190f35b60135481565b600f54610100900460ff1681565b600f54610100900460ff16156109c85760006000fd5b600f5462010000900460ff16156109df5760006000fd5b6109ea81600061179d565b5b50565b6000600460009054906101000a9004600160a060020a0316600160a060020a0316638e768288306000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1515610a6557fe5b6102c65a03f11515610a7357fe5b5050604051519150505b90565b60095481565b60075481565b600f5460009060ff1615610aa257506006610a7d565b600554600160a060020a03161515610abc57506001610a7d565b600554604080516000602091820181905282517f82771c8e0000000000000000000000000000000000000000000000000000000081529251600160a060020a03909416936382771c8e9360048082019493918390030190829087803b1515610b2057fe5b6102c65a03f11515610b2e57fe5b50506040515115159050610b4457506001610a7d565b60048054604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a033081169682019690965292519490931693638e768288936024808501948390030190829087803b1515610bb257fe5b6102c65a03f11515610bc057fe5b50506040515115159050610bd657506001610a7d565b600854421015610be857506002610a7d565b6009544211158015610bff5750610bfd6115f7565b155b15610c0c57506003610a7d565b610c1461131b565b15610c2157506004610a7d565b610c2961131b565b158015610c3857506000600b54115b8015610c485750600b54600d5410155b15610c5557506007610a7d565b506005610a7d565b5b5b5b5b5b5b5b5b90565b60005433600160a060020a03908116911614610c845760006000fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055604080516000602091820181905282517f614cb9040000000000000000000000000000000000000000000000000000000081529251949093169363614cb904936004808501948390030190829087803b1515610d0a57fe5b6102c65a03f11515610d1857fe5b505060405151151590506109ea5760006000fd5b5b5b50565b60106020526000908152604090205481565b600554600160a060020a031681565b60008054819033600160a060020a03908116911614610d715760006000fd5b600354604080516000602091820181905282517f313ce5670000000000000000000000000000000000000000000000000000000081529251600160a060020a039094169363313ce5679360048082019493918390030190829087803b1515610dd557fe5b6102c65a03f11515610de357fe5b5050506040518051905060ff16600a0a840291508383029050610e08600b5482611609565b600b55600a54610e189083611609565b600a55600160a060020a038516600090815260106020526040902054610e3e9082611609565b600160a060020a038616600090815260106020908152604080832093909355601190522054610e6d9083611609565b600160a060020a038616600090815260116020526040902055610e908583611ada565b60408051600160a060020a0387168152602081018390528082018490526000606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b5050505050565b600b5481565b60015b90565b6004805b610f01610a8c565b6007811115610f0c57fe5b14610f175760006000fd5b60005433600160a060020a03908116911614610f335760006000fd5b60015460a060020a900460ff1615610f4b5760006000fd5b600f5460ff1615610f5c5760006000fd5b600554600160a060020a031615610fda57600554604080517f0bf318a30000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691630bf318a39160048082019260009290919082900301818387803b1515610fc857fe5b6102c65a03f11515610fd657fe5b5050505b600f805460ff191660011790555b5b5b5b50565b60005433600160a060020a0390811691161461100a5760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117808355604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925193909416946304bbc2559483820194929383900390910190829087803b1515610d0a57fe5b6102c65a03f11515610d1857fe5b505060405151151590506109ea5760006000fd5b5b5b50565b600a5481565b60006007805b6110cc610a8c565b60078111156110d757fe5b146110e25760006000fd5b600160a060020a033316600090815260106020526040902054915081151561110a5760006000fd5b600160a060020a033316600090815260106020526040812055600e546111309083611609565b600e5560408051600160a060020a03331681526020810184905281517fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d929181900390910190a1604051600160a060020a0333169083156108fc029084906000818181858888f1935050505015156111a85760006000fd5b5b5b5050565b600f5463010000009004600160a060020a031681565b600e5481565b60005433600160a060020a039081169116146111e65760006000fd5b6001805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b60025481565b60005433600160a060020a039081169116146112305760006000fd5b8042111561123e5760006000fd5b60098190556040805182815290517fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3109181900360200190a15b5b50565b600454600160a060020a031681565b600d5481565b60015433600160a060020a039081169116146112ac5760006000fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039092169190911790555b565b600754600b5410155b90565b60005433600160a060020a039081169116146113435760006000fd5b600f805461ff001916610100831515810291909117918290556040805160ff928404831615158152620100008404909216151560208301526301000000909204600160a060020a03168183015290517f48d826081348f5f00e8a33c9ae8ce89ed4c6e88400b585a478bc203d9e8177d3916060908290030190a15b5b50565b60145481565b6005805b6113d4610a8c565b60078111156113df57fe5b146113ea5760006000fd5b3415156113f75760006000fd5b611403600d5434611609565b600d555b5b50565b60005433600160a060020a039081169116146114275760006000fd5b60138190555b5b50565b600054600160a060020a031681565b600654600160a060020a031681565b60116020526000908152604090205481565b6109ea33826116a5565b5b50565b60145482115b949350505050565b60008282111561148957fe5b508082035b92915050565b610276336109b2565b5b565b600554604080516000602091820181905282517f82771c8e00000000000000000000000000000000000000000000000000000000815292519093600160a060020a0316926382771c8e92600480830193919282900301818787803b1515610a6557fe5b6102c65a03f11515610a7357fe5b5050604051519150505b90565b60085481565b600f5460ff1681565b60015460a060020a900460ff1681565b60126020526000908152604090205460ff1681565b60005433600160a060020a0390811691161461156e5760006000fd5b60015460a060020a900460ff1615156115875760006000fd5b6001805474ff0000000000000000000000000000000000000000191690555b5b5b565b60008282028315806115c657508284828115156115c357fe5b04145b15156115ce57fe5b8091505b5092915050565b600f5462010000900460ff1681565b600154600160a060020a031681565b601454600b5410155b90565b600c5481565b6000828201838110156115ce57fe5b8091505b5092915050565b60005433600160a060020a0390811691161461163f5760006000fd5b600160a060020a038216600081815260126020908152604091829020805460ff191685151590811790915582519384529083015280517fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f264409281900390910190a15b5b5050565b600f5462010000900460ff16156116bc5760006000fd5b6fffffffffffffffffffffffffffffffff811615156116db5760006000fd5b6111a8828261179d565b5b5050565b60005433600160a060020a039081169116146117065760006000fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a0390811691161461174f5760006000fd5b600254600c5411156117615760006000fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600354600160a060020a031681565b600154600090819060a060020a900460ff16156117ba5760006000fd5b60025b6117c5610a8c565b60078111156117d057fe5b141561180357600160a060020a03841660009081526012602052604090205460ff1615156117fe5760006000fd5b61182a565b60035b61180e610a8c565b600781111561181957fe5b14156102705761182a565b60006000fd5b5b349150600460009054906101000a9004600160a060020a0316600160a060020a03166318a4155e83600b54600a5433600360009054906101000a9004600160a060020a0316600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156118b557fe5b6102c65a03f115156118c357fe5b505050604051805190506000604051602001526040518663ffffffff1660e060020a0281526004018086815260200185815260200184815260200183600160a060020a0316600160a060020a031681526020018260ff16815260200195505050505050602060405180830381600087803b151561193c57fe5b6102c65a03f1151561194a57fe5b5050604051519150508015156119605760006000fd5b600160a060020a038416600090815260106020526040902054151561198957600c805460010190555b600160a060020a0384166000908152601060205260409020546119ac9083611609565b600160a060020a0385166000908152601060209081526040808320939093556011905220546119db9082611609565b600160a060020a038516600090815260116020526040902055600b54611a019083611609565b600b55600a54611a119082611609565b600a81905550611a278282600b54600a5461146f565b15611a325760006000fd5b611a3c8482611ada565b600654604051600160a060020a039091169083156108fc029084906000818181858888f193505050501515611a715760006000fd5b60408051600160a060020a0386168152602081018490528082018390526fffffffffffffffffffffffffffffffff8516606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b50505050565b600354604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169182916340c10f199160448082019260009290919082900301818387803b1515611b4757fe5b6102c65a03f11515611b5557fe5b5050505b5050505600a165627a7a723058202a05afbaab507e81c1e0a84fc348ebfd5e38b6e37b7fe620cc5b285103d9bad00029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007654915a1b82d6d2d0afc37c52af556ea8983c7e0000000000000000000000002e5e995bdaa495abaf2af499d682b0277d4dd66b00000000000000000000000066e32d375642ce9c8202caea1f6a83b0c3caf32c00000000000000000000000000000000000000000000000000000000597465900000000000000000000000000000000000000000000000000000000059882c1000000000000000000000000000000000000000000000005150ae84a8cdf000000000000000000000000000000000000000000000000005ede20f01a459800000
-----Decoded View---------------
Arg [0] : _token (address): 0x7654915A1b82D6D2D0AFc37c52Af556eA8983c7E
Arg [1] : _pricingStrategy (address): 0x2E5E995Bdaa495aBaf2Af499D682b0277D4dd66b
Arg [2] : _multisigWallet (address): 0x66e32d375642Ce9c8202CaEA1F6A83b0C3Caf32c
Arg [3] : _start (uint256): 1500800400
Arg [4] : _end (uint256): 1502096400
Arg [5] : _minimumFundingGoal (uint256): 1500000000000000000000
Arg [6] : _weiCap (uint256): 28000000000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000007654915a1b82d6d2d0afc37c52af556ea8983c7e
Arg [1] : 0000000000000000000000002e5e995bdaa495abaf2af499d682b0277d4dd66b
Arg [2] : 00000000000000000000000066e32d375642ce9c8202caea1f6a83b0c3caf32c
Arg [3] : 0000000000000000000000000000000000000000000000000000000059746590
Arg [4] : 0000000000000000000000000000000000000000000000000000000059882c10
Arg [5] : 00000000000000000000000000000000000000000000005150ae84a8cdf00000
Arg [6] : 0000000000000000000000000000000000000000000005ede20f01a459800000
Swarm Source
bzzr://2a05afbaab507e81c1e0a84fc348ebfd5e38b6e37b7fe620cc5b285103d9bad0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.