Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 15,816 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 13900675 | 1533 days ago | IN | 0.006 ETH | 0.002625 | ||||
| Transfer | 4624960 | 3027 days ago | IN | 0.005 ETH | 0.0015 | ||||
| Transfer | 4359823 | 3072 days ago | IN | 0.0067 ETH | 0.0000252 | ||||
| Transfer | 4330661 | 3082 days ago | IN | 0 ETH | 0.00525 | ||||
| Transfer | 4248317 | 3107 days ago | IN | 0.08560537 ETH | 0.00086821 | ||||
| Transfer | 4248305 | 3107 days ago | IN | 0.00570543 ETH | 0.00086821 | ||||
| Transfer | 4175967 | 3126 days ago | IN | 0.00599198 ETH | 0.00060772 | ||||
| Buy With Custome... | 3947728 | 3177 days ago | IN | 0.5 ETH | 0.05 | ||||
| Transfer | 3914704 | 3184 days ago | IN | 0.06937809 ETH | 0.0030583 | ||||
| Buy With Custome... | 3913426 | 3184 days ago | IN | 0.1 ETH | 0.000525 | ||||
| Transfer | 3911349 | 3184 days ago | IN | 0.85522161 ETH | 0.13218945 | ||||
| Buy With Custome... | 3903211 | 3186 days ago | IN | 4.9 ETH | 0.00625 | ||||
| Buy With Custome... | 3895245 | 3188 days ago | IN | 9.98475 ETH | 0.00525 | ||||
| Buy With Custome... | 3894770 | 3188 days ago | IN | 0.65490715 ETH | 0.00525 | ||||
| Transfer | 3894586 | 3188 days ago | IN | 0.02 ETH | 0.00525 | ||||
| Buy With Custome... | 3894524 | 3188 days ago | IN | 0.05 ETH | 0.00525 | ||||
| Buy With Custome... | 3894070 | 3188 days ago | IN | 0.27972536 ETH | 0.000525 | ||||
| Transfer | 3893964 | 3188 days ago | IN | 0.1 ETH | 0.000441 | ||||
| Buy With Custome... | 3893820 | 3188 days ago | IN | 0.1 ETH | 0.00525 | ||||
| Buy With Custome... | 3893786 | 3188 days ago | IN | 0.79018553 ETH | 0.00517857 | ||||
| Buy With Custome... | 3893753 | 3188 days ago | IN | 0.1 ETH | 0.00525 | ||||
| Buy With Custome... | 3893638 | 3188 days ago | IN | 0.1 ETH | 0.00525 | ||||
| Transfer | 3893584 | 3188 days ago | IN | 0.2 ETH | 0.09389858 | ||||
| Buy With Custome... | 3893504 | 3188 days ago | IN | 0.2 ETH | 0.00525 | ||||
| Buy With Custome... | 3893451 | 3188 days ago | IN | 0.20525 ETH | 0.00525 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 3892206 | 3188 days ago | 1 ETH | ||||
| Transfer | 3892206 | 3188 days ago | 5.99 ETH | ||||
| Transfer | 3892206 | 3188 days ago | 0.3 ETH | ||||
| Transfer | 3892204 | 3188 days ago | 2 ETH | ||||
| Transfer | 3892204 | 3188 days ago | 9 ETH | ||||
| Transfer | 3892204 | 3188 days ago | 1.49212331 ETH | ||||
| Transfer | 3892201 | 3188 days ago | 4.99 ETH | ||||
| Transfer | 3892201 | 3188 days ago | 30.24485488 ETH | ||||
| Transfer | 3892201 | 3188 days ago | 13 ETH | ||||
| Transfer | 3892201 | 3188 days ago | 0.985 ETH | ||||
| Transfer | 3892201 | 3188 days ago | 1 ETH | ||||
| Transfer | 3892200 | 3188 days ago | 0.5 ETH | ||||
| Transfer | 3892200 | 3188 days ago | 22.1 ETH | ||||
| Transfer | 3892200 | 3188 days ago | 0.06 ETH | ||||
| Transfer | 3892200 | 3188 days ago | 1 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 3 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 2 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 0.03910681 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 1 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 1.16544235 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 4.4 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 5 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 26 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 17 ETH | ||||
| Transfer | 3892198 | 3188 days ago | 4 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract contains unverified libraries: SafeMathLib
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
MintedEthCappedCrowdsale
Compiler Version
v0.4.8+commit.60cc1668
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2017-05-17
*/
/**
* Safe unsigned safe math.
*
* https://blog.aragon.one/library-driven-development-in-solidity-2bebcaf88736#.750gwtwli
*
* Originally from https://raw.githubusercontent.com/AragonOne/zeppelin-solidity/master/contracts/SafeMathLib.sol
*
* Maintained here until merged to mainline zeppelin-solidity.
*
*/
library SafeMathLib {
function times(uint a, uint b) returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function minus(uint a, uint b) returns (uint) {
assert(b <= a);
return a - b;
}
function plus(uint a, uint b) returns (uint) {
uint c = a + b;
assert(c>=a && c>=b);
return c;
}
function assert(bool assertion) private {
if (!assertion) throw;
}
}
/*
* Ownable
*
* Base contract with an owner.
* Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner.
*/
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != owner) {
throw;
}
_;
}
function transferOwnership(address newOwner) onlyOwner {
if (newOwner != address(0)) {
owner = newOwner;
}
}
}
/*
* 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 {
if (halted) throw;
_;
}
modifier onlyInEmergency {
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;
}
}
/**
* 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 tokensSold, uint weiRaised, address msgSender, uint decimals) public constant returns (uint tokenAmount);
}
/**
* 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();
}
/*
* ERC20 interface
* see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function allowance(address owner, address spender) constant returns (uint);
function transfer(address to, uint value) returns (bool ok);
function transferFrom(address from, address to, uint value) returns (bool ok);
function approve(address spender, uint value) returns (bool ok);
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
}
/**
* A token that defines fractional units as decimals.
*/
contract FractionalERC20 is ERC20 {
uint public decimals;
}
/**
* 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 {
using SafeMathLib for uint;
/* 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;
if(multisigWallet == 0) {
throw;
}
if(_start == 0) {
throw;
}
startsAt = _start;
if(_end == 0) {
throw;
}
endsAt = _end;
// Don't mess the dates
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
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());
if(tokenAmount == 0) {
// Dust transaction
throw;
}
if(investedAmountOf[receiver] == 0) {
// A new investor
investorCount++;
}
// Update investor
investedAmountOf[receiver] = investedAmountOf[receiver].plus(weiAmount);
tokenAmountOf[receiver] = tokenAmountOf[receiver].plus(tokenAmount);
// Update totals
weiRaised = weiRaised.plus(weiAmount);
tokensSold = tokensSold.plus(tokenAmount);
// Check that we did not bust the cap
if(isBreakingCap(tokenAmount, weiAmount, 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**token.decimals();
uint weiAmount = weiPrice * tokenAmount; // This can be also 0, we give out tokens for free
weiRaised = weiRaised.plus(weiAmount);
tokensSold = tokensSold.plus(tokenAmount);
investedAmountOf[receiver] = investedAmountOf[receiver].plus(weiAmount);
tokenAmountOf[receiver] = tokenAmountOf[receiver].plus(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;
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 {
if(requiredSignedAddress) throw; // Crowdsale allows only server-side signed participants
if(customerId == 0) throw; // UUIDv4 sanity check
investInternal(addr, customerId);
}
/**
* Allow anonymous contributions to this crowdsale.
*/
function invest(address addr) public payable {
if(requireCustomerId) throw; // Crowdsale needs to track partipants for thank you email
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
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
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
if(!pricingStrategy.isPricingStrategy()) {
throw;
}
}
/**
* 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) {
if(msg.value == 0) throw;
loadedRefund = loadedRefund.plus(msg.value);
}
/**
* Investors can claim refund.
*/
function refund() public inState(State.Refunding) {
uint256 weiValue = investedAmountOf[msg.sender];
if (weiValue == 0) throw;
investedAmountOf[msg.sender] = 0;
weiRefunded = weiRefunded.plus(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;
}
/**
* 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;
}
//
// Modifiers
//
/** Modified allowing execution only if the crowdsale is currently running. */
modifier inState(State 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;
}
/**
* Math operations with safety checks
*/
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint a, uint b) internal returns (uint) {
assert(b > 0);
uint c = a / b;
assert(a == b * c + a % b);
return c;
}
function safeSub(uint a, uint b) internal returns (uint) {
assert(b <= a);
return a - b;
}
function safeAdd(uint a, uint b) internal returns (uint) {
uint c = a + b;
assert(c>=a && c>=b);
return c;
}
function max64(uint64 a, uint64 b) internal constant returns (uint64) {
return a >= b ? a : b;
}
function min64(uint64 a, uint64 b) internal constant returns (uint64) {
return a < b ? a : b;
}
function max256(uint256 a, uint256 b) internal constant returns (uint256) {
return a >= b ? a : b;
}
function min256(uint256 a, uint256 b) internal constant returns (uint256) {
return a < b ? a : b;
}
function assert(bool assertion) internal {
if (!assertion) {
throw;
}
}
}
/**
* Standard ERC20 token with Short Hand Attack and approve() race condition mitigation.
*
* Based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/
contract StandardToken is ERC20, SafeMath {
mapping(address => uint) balances;
mapping (address => mapping (address => uint)) allowed;
/**
*
* Fix for the ERC20 short address attack
*
* http://vessenes.com/the-erc20-short-address-attack-explained/
*/
modifier onlyPayloadSize(uint size) {
if(msg.data.length != size + 4) {
throw;
}
_;
}
function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], _value);
balances[_to] = safeAdd(balances[_to], _value);
Transfer(msg.sender, _to, _value);
return true;
}
function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(3 * 32) returns (bool success) {
var _allowance = allowed[_from][msg.sender];
// Check is not needed because safeSub(_allowance, _value) will already throw if this condition is not met
// if (_value > _allowance) throw;
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;
}
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
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];
}
/**
* Atomic increment of approved spending
*
* Works around https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
*/
function addApproval(address _spender, uint _addedValue)
onlyPayloadSize(2 * 32)
returns (bool success) {
uint oldValue = allowed[msg.sender][_spender];
allowed[msg.sender][_spender] = safeAdd(oldValue, _addedValue);
return true;
}
/**
* Atomic decrement of approved spending.
*
* Works around https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*/
function subApproval(address _spender, uint _subtractedValue)
onlyPayloadSize(2 * 32)
returns (bool success) {
uint oldVal = allowed[msg.sender][_spender];
if (_subtractedValue > oldVal) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = safeSub(oldVal, _subtractedValue);
}
return true;
}
}
/**
* 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 {
using SafeMathLib for uint;
bool public mintingFinished = false;
/** List of agents that are allowed to create new tokens */
mapping (address => bool) public mintAgents;
/**
* 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 = totalSupply.plus(amount);
balances[receiver] = balances[receiver].plus(amount);
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;
}
modifier onlyMintAgent() {
// Only crowdsale contracts are allowed to mint new tokens
if(!mintAgents[msg.sender]) {
throw;
}
_;
}
/** Make sure we are not done yet. */
modifier canMint() {
if(mintingFinished) throw;
_;
}
}
/**
* 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);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":"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":false,"inputs":[{"name":"addr","type":"address"},{"name":"customerId","type":"uint128"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"investWithSignedAddress","outputs":[],"payable":true,"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":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":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":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":"buy","outputs":[],"payable":true,"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":true,"inputs":[],"name":"requiredSignedAddress","outputs":[{"name":"","type":"bool"}],"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":"addr","type":"address"},{"name":"status","type":"bool"}],"name":"setEarlyParicipantWhitelist","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"bool"},{"name":"_signerAddress","type":"address"}],"name":"setRequireSignedAddress","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":"customerId","type":"uint128"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"buyWithSignedAddress","outputs":[],"payable":true,"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"}]Contract Creation Code
6060604052600060085560006009556000600a556000600b556000600c5534620000005760405160e08062001e7383398101604090815281516020830151918301516060840151608085015160a086015160c09096015193959293919290915b8686868686865b5b60008054600160a060020a03191633600160a060020a03161790555b60008054600160a060020a03338116600160a060020a0319928316179092556001805492891692909116919091179055620000cc8564010000000062000fdd6200015182021704565b60048054600160a060020a031916600160a060020a038681169190911791829055161515620000fb5762000000565b821515620001095762000000565b60068390558115156200011c5762000000565b6007829055600654829010620001325762000000565b60058190555b50505060128490555050505b505050505050506200020a565b60005433600160a060020a039081169116146200016e5762000000565b60028054600160a060020a031916600160a060020a038381169190911791829055604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925194909316936304bbc255936004808501948390030190829087803b15620000005760325a03f115620000005750506040515115159050620002055762000000565b5b5b50565b611c59806200021a6000396000f3006060604052361561021f5763ffffffff60e060020a6000350416630226401d811461022c57806303ca0eed1461024b57806303f9c7931461026c5780630a09284a1461028257806313f4e977146102a15780631865c57d146102c057806319b667da146102ee5780631a49803b146103095780631aae34601461033757806321d5c0f61461036257806332013ac31461038b5780634042b66f146103ac5780634bb278f3146103cb57806350c67734146103da578063518ab2a8146103f5578063590e1ae3146104145780635b7633d0146104235780635da89ac01461044c5780635ed7ca5b1461046b5780636e50eb3f1461047a57806378b99c241461048c578063797d9437146104b55780637c2e08a3146104d45780637f7d711e146104f557806384fe50291461050957806387612102146105285780638d51faec146105325780638da5cb5b146105445780639075becf1461056d57806397b150ca1461059657806399e9376c146105c15780639d3c663f146105d7578063a6f2ae3a14610604578063af4686821461060e578063b3f05b971461062d578063b9b8af0b1461064e578063cb16e6d01461066f578063cb3e64fd1461069c578063d222dc04146106ab578063d5d09021146106cc578063d7e64c00146106ed578063eac249321461070c578063ed68ff2c1461072c578063ef8694431461074c578063f2fde38b1461076e578063f486972614610789578063fc0c546a146107ab575b61022a5b610000565b565b005b34610000576102396107d4565b60408051918252519081900360200190f35b34610000576102586107da565b604080519115158252519081900360200190f35b61022a600160a060020a03600435166107e8565b005b3461000057610239610822565b60408051918252519081900360200190f35b3461000057610239610828565b60408051918252519081900360200190f35b34610000576102cd61082e565b6040518082600781116100005760ff16815260200191505060405180910390f35b346100005761022a600160a060020a03600435166109f8565b005b61022a600160a060020a03600435166001608060020a036024351660ff60443516606435608435610aab565b005b3461000057610239600160a060020a0360043516610bb6565b60408051918252519081900360200190f35b346100005761036f610bc8565b60408051600160a060020a039092168252519081900360200190f35b346100005761022a600160a060020a0360043516602435604435610bd7565b005b3461000057610239610eed565b60408051918252519081900360200190f35b346100005761022a610ef3565b005b346100005761022a600160a060020a0360043516610fdd565b005b3461000057610239611090565b60408051918252519081900360200190f35b346100005761022a611096565b005b346100005761036f6111e1565b60408051600160a060020a039092168252519081900360200190f35b34610000576102396111f7565b60408051918252519081900360200190f35b346100005761022a6111fd565b005b346100005761022a600435611240565b005b346100005761036f6112a5565b60408051600160a060020a039092168252519081900360200190f35b34610000576102396112b4565b60408051918252519081900360200190f35b34610000576102586112ba565b604080519115158252519081900360200190f35b346100005761022a60043515156112c6565b005b3461000057610239611360565b60408051918252519081900360200190f35b61022a611366565b005b346100005761022a600435611408565b005b346100005761036f61142d565b60408051600160a060020a039092168252519081900360200190f35b346100005761036f61143c565b60408051600160a060020a039092168252519081900360200190f35b3461000057610239600160a060020a036004351661144b565b60408051918252519081900360200190f35b61022a6001608060020a036004351661145d565b005b346100005761025860043560243560443560643561146b565b604080519115158252519081900360200190f35b61022a611479565b005b3461000057610239611485565b60408051918252519081900360200190f35b346100005761025861148b565b604080519115158252519081900360200190f35b3461000057610258611494565b604080519115158252519081900360200190f35b3461000057610258600160a060020a03600435166114a4565b604080519115158252519081900360200190f35b346100005761022a6114b9565b005b346100005761025861150f565b604080519115158252519081900360200190f35b346100005761025861151e565b604080519115158252519081900360200190f35b346100005761023961152a565b60408051918252519081900360200190f35b346100005761022a600160a060020a03600435166024351515611530565b005b346100005761022a6004351515600160a060020a03602435166115b1565b005b61022a600160a060020a03600435166001608060020a036024351661166f565b005b346100005761022a600160a060020a03600435166116a9565b005b61022a6001608060020a036004351660ff602435166044356064356116f4565b005b346100005761036f611708565b60408051600160a060020a039092168252519081900360200190f35b60115481565b600d54610100900460ff1681565b600d54610100900460ff16156107fd57610000565b600d5462010000900460ff161561081357610000565b61081e816000611717565b5b50565b60075481565b60055481565b600d5460009060ff1615610844575060066109ed565b600354600160a060020a0316151561085e575060016109ed565b600354604080516000602091820181905282517f82771c8e0000000000000000000000000000000000000000000000000000000081529251600160a060020a03909416936382771c8e9360048082019493918390030190829087803b156100005760325a03f11561000057505060405151151590506108df575060016109ed565b600254604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a03308116600483015293519390941693638e768288936024808301949391928390030190829087803b156100005760325a03f115610000575050604051511515905061096a575060016109ed565b60065442101561097c575060026109ed565b6007544211158015610993575061099161151e565b155b156109a0575060036109ed565b6109a86112ba565b156109b5575060046109ed565b6109bd6112ba565b1580156109cc57506000600954115b80156109dc5750600954600b5410155b156109e9575060076109ed565b5060055b5b5b5b5b5b5b5b5b90565b60005433600160a060020a03908116911614610a1357610000565b60038054600160a060020a031916600160a060020a038381169190911791829055604080516000602091820181905282517f614cb9040000000000000000000000000000000000000000000000000000000081529251949093169363614cb904936004808501948390030190829087803b156100005760325a03f115610000575050604051511515905061081e57610000565b5b5b50565b60006002866000604051602001526040518082600160a060020a0316600160a060020a03166c010000000000000000000000000281526014019150506020604051808303816000866161da5a03f115610000575050604080518051600d54600083815260208085018652938501819052845183815260ff8a16818601528086018990526060810188905294519295506301000000909104600160a060020a0316936001936080808301949193601f198301938390039091019190866161da5a03f115610000575050604051601f190151600160a060020a031614610b8e57610000565b6001608060020a0385161515610ba357610000565b610bad8686611717565b5b505050505050565b600e6020526000908152604090205481565b600354600160a060020a031681565b60008054819033600160a060020a03908116911614610bf557610000565b600154604080516000602091820181905282517f313ce5670000000000000000000000000000000000000000000000000000000081529251600160a060020a039094169363313ce5679360048082019493918390030190829087803b156100005760325a03f1156100005750505060405180519050600a0a84029150818302905060095473d73affd658e8eff4df0da39492b24bb8e8713d3f6366098d4f9091836000604051602001526040518363ffffffff1660e060020a028152600401808381526020018281526020019250505060206040518083038186803b156100005760325a03f4156100005750506040805180516009556008546000602092830152825160e060020a6366098d4f028152600481019190915260248101869052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f926044808201939291829003018186803b156100005760325a03f415610000575050604080518051600855600160a060020a0388166000908152600e60209081528382205492810191909152825160e060020a6366098d4f028152600481019290925260248201859052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f415610000575050604080518051600160a060020a0389166000908152600e602090815284822092909255600f82528381205492820152825160e060020a6366098d4f028152600481019290925260248201869052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f4156100005750506040805151600160a060020a0388166000908152600f602052919091205550610e948583611bb0565b60408051600160a060020a0387168152602081018390528082018490526000606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b5050505050565b60095481565b600480610efe61082e565b600781116100005714610f1057610000565b60005433600160a060020a03908116911614610f2b57610000565b60005460a060020a900460ff1615610f4257610000565b600d5460ff1615610f5257610000565b600354600160a060020a031615610fc957600354604080517f0bf318a30000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691630bf318a39160048082019260009290919082900301818387803b156100005760325a03f115610000575050505b600d805460ff191660011790555b5b5b5b50565b60005433600160a060020a03908116911614610ff857610000565b60028054600160a060020a031916600160a060020a038381169190911791829055604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925194909316936304bbc255936004808501948390030190829087803b156100005760325a03f115610000575050604051511515905061081e57610000565b5b5b50565b60085481565b60006007806110a361082e565b6007811161000057146110b557610000565b600160a060020a0333166000908152600e602052604090205491508115156110dc57610000565b600160a060020a0333166000908152600e60209081526040808320839055600c548151830193909352805160e060020a6366098d4f0281526004810193909352602483018590525173d73affd658e8eff4df0da39492b24bb8e8713d3f926366098d4f926044808301939192829003018186803b156100005760325a03f415610000575050604080518051600c55600160a060020a03331681526020810185905281517fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d93509081900390910190a1604051600160a060020a0333169083156108fc029084906000818181858888f1935050505015156111db57610000565b5b5b5050565b600d5463010000009004600160a060020a031681565b600c5481565b60005433600160a060020a0390811691161461121857610000565b6000805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b60005433600160a060020a0390811691161461125b57610000565b8042111561126857610000565b60078190556040805182815290517fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3109181900360200190a15b5b50565b600254600160a060020a031681565b600b5481565b60055460095410155b90565b60005433600160a060020a039081169116146112e157610000565b600d805461ff001916610100831515810291909117918290556040805160ff928404831615158152620100008404909216151560208301526301000000909204600160a060020a03168183015290517f48d826081348f5f00e8a33c9ae8ce89ed4c6e88400b585a478bc203d9e8177d3916060908290030190a15b5b50565b60125481565b60058061137161082e565b60078111610000571461138357610000565b34151561138f57610000565b600b5473d73affd658e8eff4df0da39492b24bb8e8713d3f6366098d4f9091346000604051602001526040518363ffffffff1660e060020a028152600401808381526020018281526020019250505060206040518083038186803b156100005760325a03f41561000057505060405151600b55505b5b50565b60005433600160a060020a0390811691161461142357610000565b60118190555b5b50565b600054600160a060020a031681565b600454600160a060020a031681565b600f6020526000908152604090205481565b61081e338261166f565b5b50565b60125482115b949350505050565b610228336107e8565b5b565b60065481565b600d5460ff1681565b60005460a060020a900460ff1681565b60106020526000908152604090205460ff1681565b60005433600160a060020a039081169116146114d457610000565b60005460a060020a900460ff1615156114ec57610000565b6000805474ff0000000000000000000000000000000000000000191690555b5b5b565b600d5462010000900460ff1681565b60125460095410155b90565b600a5481565b60005433600160a060020a0390811691161461154b57610000565b600160a060020a038216600081815260106020908152604091829020805460ff191685151590811790915582519384529083015280517fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f264409281900390910190a15b5b5050565b60005433600160a060020a039081169116146115cc57610000565b600d805462ff000019166201000084151581029190911776ffffffffffffffffffffffffffffffffffffffff00000019166301000000600160a060020a03858116820292909217938490556040805160ff6101008704811615158252948604909416151560208501529304168183015290517f48d826081348f5f00e8a33c9ae8ce89ed4c6e88400b585a478bc203d9e8177d3916060908290030190a15b5b5050565b600d5462010000900460ff161561168557610000565b6001608060020a038116151561169a57610000565b6111db8282611717565b5b5050565b60005433600160a060020a039081169116146116c457610000565b600160a060020a0381161561081e5760008054600160a060020a031916600160a060020a0383161790555b5b5b50565b6117013385858585610aab565b5b50505050565b600154600160a060020a031681565b60008054819060a060020a900460ff161561173157610000565b600261173b61082e565b6007811161000057141561177557600160a060020a03841660009081526010602052604090205460ff16151561177057610000565b611797565b600361177f61082e565b6007811161000057141561022357611797565b610000565b5b349150600260009054906101000a9004600160a060020a0316600160a060020a03166318a4155e8360095460085433600160009054906101000a9004600160a060020a0316600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b156100005760325a03f11561000057505050604051805190506000604051602001526040518663ffffffff1660e060020a0281526004018086815260200185815260200184815260200183600160a060020a0316600160a060020a0316815260200182815260200195505050505050602060405180830381600087803b156100005760325a03f115610000575050604051519150508015156118bb57610000565b600160a060020a0384166000908152600e602052604090205415156118e457600a805460010190555b600160a060020a0384166000908152600e60209081526040808320548151830193909352805160e060020a6366098d4f0281526004810193909352602483018590525173d73affd658e8eff4df0da39492b24bb8e8713d3f926366098d4f926044808301939192829003018186803b156100005760325a03f415610000575050604080518051600160a060020a0388166000908152600e602090815284822092909255600f82528381205492820152825160e060020a6366098d4f028152600481019290925260248201859052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f415610000575050604080518051600160a060020a0388166000908152600f60209081528482209290925560095492820152825160e060020a6366098d4f028152600481019290925260248201869052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f4156100005750506040805180516009556008546000602092830152825160e060020a6366098d4f028152600481019190915260248101859052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f926044808201939291829003018186803b156100005760325a03f415610000575050604051516008819055600954611b089250839185919061146b565b15611b1257610000565b611b1c8482611bb0565b600454604051600160a060020a039091169083156108fc029084906000818181858888f193505050501515611b5057610000565b60408051600160a060020a0386168152602081018490528082018390526001608060020a038516606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b50505050565b600154604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169182916340c10f199160448082019260009290919082900301818387803b156100005760325a03f115610000575050505b5050505600a165627a7a72305820d9b09d3991ab14d9fcad8fa26c5b76b92f406e7cafbfd0f9f9da786a4f8f7c3a0029000000000000000000000000b04cfa8a26d602fb50232cee0daf29060264e04b00000000000000000000000021d73e07481fcf2d2deac1d1a58eb421d747d58a000000000000000000000000f9a5e0436c01cc15708449e480fa5f2d6a5b55ca00000000000000000000000000000000000000000000000000000000591d6998000000000000000000000000000000000000000000000000000000005946481800000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000bc3ab70c8588dde00000
Deployed Bytecode
0x6060604052361561021f5763ffffffff60e060020a6000350416630226401d811461022c57806303ca0eed1461024b57806303f9c7931461026c5780630a09284a1461028257806313f4e977146102a15780631865c57d146102c057806319b667da146102ee5780631a49803b146103095780631aae34601461033757806321d5c0f61461036257806332013ac31461038b5780634042b66f146103ac5780634bb278f3146103cb57806350c67734146103da578063518ab2a8146103f5578063590e1ae3146104145780635b7633d0146104235780635da89ac01461044c5780635ed7ca5b1461046b5780636e50eb3f1461047a57806378b99c241461048c578063797d9437146104b55780637c2e08a3146104d45780637f7d711e146104f557806384fe50291461050957806387612102146105285780638d51faec146105325780638da5cb5b146105445780639075becf1461056d57806397b150ca1461059657806399e9376c146105c15780639d3c663f146105d7578063a6f2ae3a14610604578063af4686821461060e578063b3f05b971461062d578063b9b8af0b1461064e578063cb16e6d01461066f578063cb3e64fd1461069c578063d222dc04146106ab578063d5d09021146106cc578063d7e64c00146106ed578063eac249321461070c578063ed68ff2c1461072c578063ef8694431461074c578063f2fde38b1461076e578063f486972614610789578063fc0c546a146107ab575b61022a5b610000565b565b005b34610000576102396107d4565b60408051918252519081900360200190f35b34610000576102586107da565b604080519115158252519081900360200190f35b61022a600160a060020a03600435166107e8565b005b3461000057610239610822565b60408051918252519081900360200190f35b3461000057610239610828565b60408051918252519081900360200190f35b34610000576102cd61082e565b6040518082600781116100005760ff16815260200191505060405180910390f35b346100005761022a600160a060020a03600435166109f8565b005b61022a600160a060020a03600435166001608060020a036024351660ff60443516606435608435610aab565b005b3461000057610239600160a060020a0360043516610bb6565b60408051918252519081900360200190f35b346100005761036f610bc8565b60408051600160a060020a039092168252519081900360200190f35b346100005761022a600160a060020a0360043516602435604435610bd7565b005b3461000057610239610eed565b60408051918252519081900360200190f35b346100005761022a610ef3565b005b346100005761022a600160a060020a0360043516610fdd565b005b3461000057610239611090565b60408051918252519081900360200190f35b346100005761022a611096565b005b346100005761036f6111e1565b60408051600160a060020a039092168252519081900360200190f35b34610000576102396111f7565b60408051918252519081900360200190f35b346100005761022a6111fd565b005b346100005761022a600435611240565b005b346100005761036f6112a5565b60408051600160a060020a039092168252519081900360200190f35b34610000576102396112b4565b60408051918252519081900360200190f35b34610000576102586112ba565b604080519115158252519081900360200190f35b346100005761022a60043515156112c6565b005b3461000057610239611360565b60408051918252519081900360200190f35b61022a611366565b005b346100005761022a600435611408565b005b346100005761036f61142d565b60408051600160a060020a039092168252519081900360200190f35b346100005761036f61143c565b60408051600160a060020a039092168252519081900360200190f35b3461000057610239600160a060020a036004351661144b565b60408051918252519081900360200190f35b61022a6001608060020a036004351661145d565b005b346100005761025860043560243560443560643561146b565b604080519115158252519081900360200190f35b61022a611479565b005b3461000057610239611485565b60408051918252519081900360200190f35b346100005761025861148b565b604080519115158252519081900360200190f35b3461000057610258611494565b604080519115158252519081900360200190f35b3461000057610258600160a060020a03600435166114a4565b604080519115158252519081900360200190f35b346100005761022a6114b9565b005b346100005761025861150f565b604080519115158252519081900360200190f35b346100005761025861151e565b604080519115158252519081900360200190f35b346100005761023961152a565b60408051918252519081900360200190f35b346100005761022a600160a060020a03600435166024351515611530565b005b346100005761022a6004351515600160a060020a03602435166115b1565b005b61022a600160a060020a03600435166001608060020a036024351661166f565b005b346100005761022a600160a060020a03600435166116a9565b005b61022a6001608060020a036004351660ff602435166044356064356116f4565b005b346100005761036f611708565b60408051600160a060020a039092168252519081900360200190f35b60115481565b600d54610100900460ff1681565b600d54610100900460ff16156107fd57610000565b600d5462010000900460ff161561081357610000565b61081e816000611717565b5b50565b60075481565b60055481565b600d5460009060ff1615610844575060066109ed565b600354600160a060020a0316151561085e575060016109ed565b600354604080516000602091820181905282517f82771c8e0000000000000000000000000000000000000000000000000000000081529251600160a060020a03909416936382771c8e9360048082019493918390030190829087803b156100005760325a03f11561000057505060405151151590506108df575060016109ed565b600254604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a03308116600483015293519390941693638e768288936024808301949391928390030190829087803b156100005760325a03f115610000575050604051511515905061096a575060016109ed565b60065442101561097c575060026109ed565b6007544211158015610993575061099161151e565b155b156109a0575060036109ed565b6109a86112ba565b156109b5575060046109ed565b6109bd6112ba565b1580156109cc57506000600954115b80156109dc5750600954600b5410155b156109e9575060076109ed565b5060055b5b5b5b5b5b5b5b5b90565b60005433600160a060020a03908116911614610a1357610000565b60038054600160a060020a031916600160a060020a038381169190911791829055604080516000602091820181905282517f614cb9040000000000000000000000000000000000000000000000000000000081529251949093169363614cb904936004808501948390030190829087803b156100005760325a03f115610000575050604051511515905061081e57610000565b5b5b50565b60006002866000604051602001526040518082600160a060020a0316600160a060020a03166c010000000000000000000000000281526014019150506020604051808303816000866161da5a03f115610000575050604080518051600d54600083815260208085018652938501819052845183815260ff8a16818601528086018990526060810188905294519295506301000000909104600160a060020a0316936001936080808301949193601f198301938390039091019190866161da5a03f115610000575050604051601f190151600160a060020a031614610b8e57610000565b6001608060020a0385161515610ba357610000565b610bad8686611717565b5b505050505050565b600e6020526000908152604090205481565b600354600160a060020a031681565b60008054819033600160a060020a03908116911614610bf557610000565b600154604080516000602091820181905282517f313ce5670000000000000000000000000000000000000000000000000000000081529251600160a060020a039094169363313ce5679360048082019493918390030190829087803b156100005760325a03f1156100005750505060405180519050600a0a84029150818302905060095473d73affd658e8eff4df0da39492b24bb8e8713d3f6366098d4f9091836000604051602001526040518363ffffffff1660e060020a028152600401808381526020018281526020019250505060206040518083038186803b156100005760325a03f4156100005750506040805180516009556008546000602092830152825160e060020a6366098d4f028152600481019190915260248101869052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f926044808201939291829003018186803b156100005760325a03f415610000575050604080518051600855600160a060020a0388166000908152600e60209081528382205492810191909152825160e060020a6366098d4f028152600481019290925260248201859052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f415610000575050604080518051600160a060020a0389166000908152600e602090815284822092909255600f82528381205492820152825160e060020a6366098d4f028152600481019290925260248201869052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f4156100005750506040805151600160a060020a0388166000908152600f602052919091205550610e948583611bb0565b60408051600160a060020a0387168152602081018390528082018490526000606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b5050505050565b60095481565b600480610efe61082e565b600781116100005714610f1057610000565b60005433600160a060020a03908116911614610f2b57610000565b60005460a060020a900460ff1615610f4257610000565b600d5460ff1615610f5257610000565b600354600160a060020a031615610fc957600354604080517f0bf318a30000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691630bf318a39160048082019260009290919082900301818387803b156100005760325a03f115610000575050505b600d805460ff191660011790555b5b5b5b50565b60005433600160a060020a03908116911614610ff857610000565b60028054600160a060020a031916600160a060020a038381169190911791829055604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925194909316936304bbc255936004808501948390030190829087803b156100005760325a03f115610000575050604051511515905061081e57610000565b5b5b50565b60085481565b60006007806110a361082e565b6007811161000057146110b557610000565b600160a060020a0333166000908152600e602052604090205491508115156110dc57610000565b600160a060020a0333166000908152600e60209081526040808320839055600c548151830193909352805160e060020a6366098d4f0281526004810193909352602483018590525173d73affd658e8eff4df0da39492b24bb8e8713d3f926366098d4f926044808301939192829003018186803b156100005760325a03f415610000575050604080518051600c55600160a060020a03331681526020810185905281517fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d93509081900390910190a1604051600160a060020a0333169083156108fc029084906000818181858888f1935050505015156111db57610000565b5b5b5050565b600d5463010000009004600160a060020a031681565b600c5481565b60005433600160a060020a0390811691161461121857610000565b6000805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b60005433600160a060020a0390811691161461125b57610000565b8042111561126857610000565b60078190556040805182815290517fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3109181900360200190a15b5b50565b600254600160a060020a031681565b600b5481565b60055460095410155b90565b60005433600160a060020a039081169116146112e157610000565b600d805461ff001916610100831515810291909117918290556040805160ff928404831615158152620100008404909216151560208301526301000000909204600160a060020a03168183015290517f48d826081348f5f00e8a33c9ae8ce89ed4c6e88400b585a478bc203d9e8177d3916060908290030190a15b5b50565b60125481565b60058061137161082e565b60078111610000571461138357610000565b34151561138f57610000565b600b5473d73affd658e8eff4df0da39492b24bb8e8713d3f6366098d4f9091346000604051602001526040518363ffffffff1660e060020a028152600401808381526020018281526020019250505060206040518083038186803b156100005760325a03f41561000057505060405151600b55505b5b50565b60005433600160a060020a0390811691161461142357610000565b60118190555b5b50565b600054600160a060020a031681565b600454600160a060020a031681565b600f6020526000908152604090205481565b61081e338261166f565b5b50565b60125482115b949350505050565b610228336107e8565b5b565b60065481565b600d5460ff1681565b60005460a060020a900460ff1681565b60106020526000908152604090205460ff1681565b60005433600160a060020a039081169116146114d457610000565b60005460a060020a900460ff1615156114ec57610000565b6000805474ff0000000000000000000000000000000000000000191690555b5b5b565b600d5462010000900460ff1681565b60125460095410155b90565b600a5481565b60005433600160a060020a0390811691161461154b57610000565b600160a060020a038216600081815260106020908152604091829020805460ff191685151590811790915582519384529083015280517fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f264409281900390910190a15b5b5050565b60005433600160a060020a039081169116146115cc57610000565b600d805462ff000019166201000084151581029190911776ffffffffffffffffffffffffffffffffffffffff00000019166301000000600160a060020a03858116820292909217938490556040805160ff6101008704811615158252948604909416151560208501529304168183015290517f48d826081348f5f00e8a33c9ae8ce89ed4c6e88400b585a478bc203d9e8177d3916060908290030190a15b5b5050565b600d5462010000900460ff161561168557610000565b6001608060020a038116151561169a57610000565b6111db8282611717565b5b5050565b60005433600160a060020a039081169116146116c457610000565b600160a060020a0381161561081e5760008054600160a060020a031916600160a060020a0383161790555b5b5b50565b6117013385858585610aab565b5b50505050565b600154600160a060020a031681565b60008054819060a060020a900460ff161561173157610000565b600261173b61082e565b6007811161000057141561177557600160a060020a03841660009081526010602052604090205460ff16151561177057610000565b611797565b600361177f61082e565b6007811161000057141561022357611797565b610000565b5b349150600260009054906101000a9004600160a060020a0316600160a060020a03166318a4155e8360095460085433600160009054906101000a9004600160a060020a0316600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b156100005760325a03f11561000057505050604051805190506000604051602001526040518663ffffffff1660e060020a0281526004018086815260200185815260200184815260200183600160a060020a0316600160a060020a0316815260200182815260200195505050505050602060405180830381600087803b156100005760325a03f115610000575050604051519150508015156118bb57610000565b600160a060020a0384166000908152600e602052604090205415156118e457600a805460010190555b600160a060020a0384166000908152600e60209081526040808320548151830193909352805160e060020a6366098d4f0281526004810193909352602483018590525173d73affd658e8eff4df0da39492b24bb8e8713d3f926366098d4f926044808301939192829003018186803b156100005760325a03f415610000575050604080518051600160a060020a0388166000908152600e602090815284822092909255600f82528381205492820152825160e060020a6366098d4f028152600481019290925260248201859052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f415610000575050604080518051600160a060020a0388166000908152600f60209081528482209290925560095492820152825160e060020a6366098d4f028152600481019290925260248201869052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f92604480840193919291829003018186803b156100005760325a03f4156100005750506040805180516009556008546000602092830152825160e060020a6366098d4f028152600481019190915260248101859052915173d73affd658e8eff4df0da39492b24bb8e8713d3f93506366098d4f926044808201939291829003018186803b156100005760325a03f415610000575050604051516008819055600954611b089250839185919061146b565b15611b1257610000565b611b1c8482611bb0565b600454604051600160a060020a039091169083156108fc029084906000818181858888f193505050501515611b5057610000565b60408051600160a060020a0386168152602081018490528082018390526001608060020a038516606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b50505050565b600154604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169182916340c10f199160448082019260009290919082900301818387803b156100005760325a03f115610000575050505b5050505600a165627a7a72305820d9b09d3991ab14d9fcad8fa26c5b76b92f406e7cafbfd0f9f9da786a4f8f7c3a0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b04cfa8a26d602fb50232cee0daf29060264e04b00000000000000000000000021d73e07481fcf2d2deac1d1a58eb421d747d58a000000000000000000000000f9a5e0436c01cc15708449e480fa5f2d6a5b55ca00000000000000000000000000000000000000000000000000000000591d6998000000000000000000000000000000000000000000000000000000005946481800000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000bc3ab70c8588dde00000
-----Decoded View---------------
Arg [0] : _token (address): 0xB04cfa8a26D602fb50232CEe0DaF29060264e04B
Arg [1] : _pricingStrategy (address): 0x21D73e07481fcf2d2dEAC1d1A58eB421D747D58a
Arg [2] : _multisigWallet (address): 0xf9A5e0436C01cc15708449E480fa5f2D6a5B55CA
Arg [3] : _start (uint256): 1495099800
Arg [4] : _end (uint256): 1497778200
Arg [5] : _minimumFundingGoal (uint256): 5000000000000000000000
Arg [6] : _weiCap (uint256): 888888000000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000b04cfa8a26d602fb50232cee0daf29060264e04b
Arg [1] : 00000000000000000000000021d73e07481fcf2d2deac1d1a58eb421d747d58a
Arg [2] : 000000000000000000000000f9a5e0436c01cc15708449e480fa5f2d6a5b55ca
Arg [3] : 00000000000000000000000000000000000000000000000000000000591d6998
Arg [4] : 0000000000000000000000000000000000000000000000000000000059464818
Arg [5] : 00000000000000000000000000000000000000000000010f0cf064dd59200000
Arg [6] : 00000000000000000000000000000000000000000000bc3ab70c8588dde00000
Swarm Source
bzzr://d9b09d3991ab14d9fcad8fa26c5b76b92f406e7cafbfd0f9f9da786a4f8f7c3a
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 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.