Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 12 from a total of 12 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Finalize | 7540862 | 2516 days ago | IN | 0 ETH | 0.00130696 | ||||
| Distribute Reser... | 7540860 | 2516 days ago | IN | 0 ETH | 0.00299473 | ||||
| Set Ends At | 7540013 | 2516 days ago | IN | 0 ETH | 0.00051885 | ||||
| Buy | 7528080 | 2518 days ago | IN | 3.99999999 ETH | 0.00022288 | ||||
| Buy | 7528024 | 2518 days ago | IN | 1.99999999 ETH | 0.00022288 | ||||
| Buy | 7527492 | 2518 days ago | IN | 1.99999999 ETH | 0.00045183 | ||||
| Buy | 6189125 | 2748 days ago | IN | 0.13454545 ETH | 0.00023403 | ||||
| Buy | 6189093 | 2748 days ago | IN | 9.99999999 ETH | 0.00040248 | ||||
| Set Ends At | 6097862 | 2764 days ago | IN | 0 ETH | 0.00051885 | ||||
| Set Ends At | 5614601 | 2847 days ago | IN | 0 ETH | 0.00020754 | ||||
| Set Finalize Age... | 5048631 | 2943 days ago | IN | 0 ETH | 0.00018427 | ||||
| Update Joined Cr... | 5048608 | 2943 days ago | IN | 0 ETH | 0.00058831 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
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:
MintedTokenCappedCrowdsaleExt
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 2018-02-07
*/
// Created using Token Wizard https://github.com/poanetwork/token-wizard by POA Network
// Temporarily have SafeMath here until all contracts have been migrated to SafeMathLib version from OpenZeppelin
pragma solidity ^0.4.8;
/**
* 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;
}
}
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* 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 SafeMathLibExt {
function times(uint a, uint b) returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function divides(uint a, uint b) returns (uint) {
assert(b > 0);
uint c = a / b;
assert(a == b * 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);
return c;
}
}
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/*
* 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 stopNonOwnersInEmergency {
if (halted && msg.sender != owner) 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;
}
}
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* Interface for defining crowdsale pricing.
*/
contract PricingStrategy {
address public tier;
/** 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;
}
/**
* @dev Pricing tells if this is a presale purchase or not.
@param purchaser Address of the purchaser
@return False by default, true if a presale purchaser
*/
function isPresalePurchase(address purchaser) public constant returns (bool) {
return false;
}
/* How many weis one token costs */
function updateRate(uint newOneTokenInWei) public;
/**
* 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 in the main token sale - this number excludes presale
* @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);
}
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* Finalize agent defines what happens at the end of succeseful crowdsale.
*
* - Allocate tokens for founders, bounties and community
* - Make tokens transferable
* - etc.
*/
contract FinalizeAgent {
bool public reservedTokensAreDistributed = false;
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);
function distributeReservedTokens(uint reservedTokensDistributionBatch);
/** Called once by crowdsale finalize() if the sale was success. */
function finalizeCrowdsale();
}
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public constant returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* A token that defines fractional units as decimals.
*/
contract FractionalERC20Ext is ERC20 {
uint public decimals;
uint public minCap;
}
/**
* 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 CrowdsaleExt is Haltable {
/* Max investment count when we are still allowed to change the multisig address */
uint public MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE = 5;
using SafeMathLibExt for uint;
/* The token we are selling */
FractionalERC20Ext public token;
/* How we are going to price our offering */
PricingStrategy public pricingStrategy;
/* Post-success callback */
FinalizeAgent public finalizeAgent;
/* name of the crowdsale tier */
string public name;
/* 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;
/* Has this crowdsale been finalized */
bool public finalized;
bool public isWhiteListed;
address[] public joinedCrowdsales;
uint8 public joinedCrowdsalesLen = 0;
uint8 public joinedCrowdsalesLenMax = 50;
struct JoinedCrowdsaleStatus {
bool isJoined;
uint8 position;
}
mapping (address => JoinedCrowdsaleStatus) joinedCrowdsaleState;
/** 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;
struct WhiteListData {
bool status;
uint minCap;
uint maxCap;
}
//is crowdsale updatable
bool public isUpdatable;
/** Addresses that are allowed to invest even before ICO offical opens. For testing, for ICO partners, etc. */
mapping (address => WhiteListData) public earlyParticipantWhitelist;
/** List of whitelisted addresses */
address[] public whitelistedParticipants;
/** 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
*/
enum State{Unknown, Preparing, PreFunding, Funding, Success, Failure, Finalized}
// A new investment was made
event Invested(address investor, uint weiAmount, uint tokenAmount, uint128 customerId);
// Address early participation whitelist status changed
event Whitelisted(address addr, bool status, uint minCap, uint maxCap);
event WhitelistItemChanged(address addr, bool status, uint minCap, uint maxCap);
// Crowdsale start time has been changed
event StartsAtChanged(uint newStartsAt);
// Crowdsale end time has been changed
event EndsAtChanged(uint newEndsAt);
function CrowdsaleExt(string _name, address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal, bool _isUpdatable, bool _isWhiteListed) {
owner = msg.sender;
name = _name;
token = FractionalERC20Ext(_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;
isUpdatable = _isUpdatable;
isWhiteListed = _isWhiteListed;
}
/**
* 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
throw;
} else if(getState() == State.Funding) {
// Retail participants can only come in when the crowdsale is running
// pass
if(isWhiteListed) {
if(!earlyParticipantWhitelist[receiver].status) {
throw;
}
}
} else {
// Unwanted state
throw;
}
uint weiAmount = msg.value;
// Account presale sales separately, so that they do not count against pricing tranches
uint tokenAmount = pricingStrategy.calculatePrice(weiAmount, weiRaised, tokensSold, msg.sender, token.decimals());
if(tokenAmount == 0) {
// Dust transaction
throw;
}
if(isWhiteListed) {
if(tokenAmount < earlyParticipantWhitelist[receiver].minCap && tokenAmountOf[receiver] == 0) {
// tokenAmount < minCap for investor
throw;
}
if(tokenAmount > earlyParticipantWhitelist[receiver].maxCap) {
// tokenAmount > maxCap for investor
throw;
}
// Check that we did not bust the investor's cap
if (isBreakingInvestorCap(receiver, tokenAmount)) {
throw;
}
} else {
if(tokenAmount < token.minCap() && tokenAmountOf[receiver] == 0) {
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(weiAmount, tokenAmount, weiRaised, tokensSold)) {
throw;
}
assignTokens(receiver, tokenAmount);
// Pocket the money
if(!multisigWallet.send(weiAmount)) throw;
if (isWhiteListed) {
updateInheritedEarlyParticipantWhitelist(tokenAmount);
}
// Tell us invest was success
Invested(receiver, weiAmount, tokenAmount, customerId);
}
/**
* Allow anonymous contributions to this crowdsale.
*/
function invest(address addr) public payable {
investInternal(addr, 0);
}
/**
* 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);
}
function distributeReservedTokens(uint reservedTokensDistributionBatch) 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) != address(0)) {
finalizeAgent.distributeReservedTokens(reservedTokensDistributionBatch);
}
}
function areReservedTokensDistributed() public constant returns (bool) {
return finalizeAgent.reservedTokensAreDistributed();
}
function canDistributeReservedTokens() public constant returns(bool) {
CrowdsaleExt lastTierCntrct = CrowdsaleExt(getLastTier());
if ((lastTierCntrct.getState() == State.Success) && !lastTierCntrct.halted() && !lastTierCntrct.finalized() && !lastTierCntrct.areReservedTokensDistributed()) return true;
return false;
}
/**
* 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) != address(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) public onlyOwner {
assert(address(addr) != address(0));
assert(address(finalizeAgent) == address(0));
finalizeAgent = addr;
// Don't allow setting bad agent
if(!finalizeAgent.isFinalizeAgent()) {
throw;
}
}
/**
* Allow addresses to do early participation.
*/
function setEarlyParticipantWhitelist(address addr, bool status, uint minCap, uint maxCap) public onlyOwner {
if (!isWhiteListed) throw;
assert(addr != address(0));
assert(maxCap > 0);
assert(minCap <= maxCap);
assert(now <= endsAt);
if (earlyParticipantWhitelist[addr].maxCap == 0) {
whitelistedParticipants.push(addr);
Whitelisted(addr, status, minCap, maxCap);
} else {
WhitelistItemChanged(addr, status, minCap, maxCap);
}
earlyParticipantWhitelist[addr] = WhiteListData({status:status, minCap:minCap, maxCap:maxCap});
}
function setEarlyParticipantWhitelistMultiple(address[] addrs, bool[] statuses, uint[] minCaps, uint[] maxCaps) public onlyOwner {
if (!isWhiteListed) throw;
assert(now <= endsAt);
assert(addrs.length == statuses.length);
assert(statuses.length == minCaps.length);
assert(minCaps.length == maxCaps.length);
for (uint iterator = 0; iterator < addrs.length; iterator++) {
setEarlyParticipantWhitelist(addrs[iterator], statuses[iterator], minCaps[iterator], maxCaps[iterator]);
}
}
function updateInheritedEarlyParticipantWhitelist(uint tokensBought) private {
if (!isWhiteListed) throw;
if (tokensBought < earlyParticipantWhitelist[msg.sender].minCap) throw;
uint8 tierPosition = getTierPosition(this);
for (uint8 j = tierPosition; j < joinedCrowdsalesLen; j++) {
CrowdsaleExt crowdsale = CrowdsaleExt(joinedCrowdsales[j]);
crowdsale.updateEarlyParticipantWhitelist(msg.sender, tokensBought);
}
}
function updateEarlyParticipantWhitelist(address addr, uint tokensBought) public {
if (!isWhiteListed) throw;
assert(addr != address(0));
assert(now <= endsAt);
assert(isTierJoined(msg.sender));
if (tokensBought < earlyParticipantWhitelist[addr].minCap) throw;
//if (addr != msg.sender && contractAddr != msg.sender) throw;
uint newMaxCap = earlyParticipantWhitelist[addr].maxCap;
newMaxCap = newMaxCap.minus(tokensBought);
earlyParticipantWhitelist[addr] = WhiteListData({status:earlyParticipantWhitelist[addr].status, minCap:0, maxCap:newMaxCap});
}
function whitelistedParticipantsLength() public constant returns (uint) {
return whitelistedParticipants.length;
}
function isTierJoined(address addr) public constant returns(bool) {
return joinedCrowdsaleState[addr].isJoined;
}
function getTierPosition(address addr) public constant returns(uint8) {
return joinedCrowdsaleState[addr].position;
}
function getLastTier() public constant returns(address) {
if (joinedCrowdsalesLen > 0)
return joinedCrowdsales[joinedCrowdsalesLen - 1];
else
return address(0);
}
function setJoinedCrowdsales(address addr) private onlyOwner {
assert(addr != address(0));
assert(joinedCrowdsalesLen <= joinedCrowdsalesLenMax);
assert(!isTierJoined(addr));
joinedCrowdsales.push(addr);
joinedCrowdsaleState[addr] = JoinedCrowdsaleStatus({
isJoined: true,
position: joinedCrowdsalesLen
});
joinedCrowdsalesLen++;
}
function updateJoinedCrowdsalesMultiple(address[] addrs) public onlyOwner {
assert(addrs.length > 0);
assert(joinedCrowdsalesLen == 0);
assert(addrs.length <= joinedCrowdsalesLenMax);
for (uint8 iter = 0; iter < addrs.length; iter++) {
setJoinedCrowdsales(addrs[iter]);
}
}
function setStartsAt(uint time) onlyOwner {
assert(!finalized);
assert(isUpdatable);
assert(now <= time); // Don't change past
assert(time <= endsAt);
assert(now <= startsAt);
CrowdsaleExt lastTierCntrct = CrowdsaleExt(getLastTier());
if (lastTierCntrct.finalized()) throw;
uint8 tierPosition = getTierPosition(this);
//start time should be greater then end time of previous tiers
for (uint8 j = 0; j < tierPosition; j++) {
CrowdsaleExt crowdsale = CrowdsaleExt(joinedCrowdsales[j]);
assert(time >= crowdsale.endsAt());
}
startsAt = time;
StartsAtChanged(startsAt);
}
/**
* 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) public onlyOwner {
assert(!finalized);
assert(isUpdatable);
assert(now <= time);// Don't change past
assert(startsAt <= time);
assert(now <= endsAt);
CrowdsaleExt lastTierCntrct = CrowdsaleExt(getLastTier());
if (lastTierCntrct.finalized()) throw;
uint8 tierPosition = getTierPosition(this);
for (uint8 j = tierPosition + 1; j < joinedCrowdsalesLen; j++) {
CrowdsaleExt crowdsale = CrowdsaleExt(joinedCrowdsales[j]);
assert(time <= crowdsale.startsAt());
}
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) public onlyOwner {
assert(address(_pricingStrategy) != address(0));
assert(address(pricingStrategy) == address(0));
pricingStrategy = _pricingStrategy;
// Don't allow setting bad agent
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;
}
/**
* @return true if the crowdsale has raised enough money to be a successful.
*/
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 return State.Failure;
}
/** 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) {
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) public constant returns (bool limitBroken);
function isBreakingInvestorCap(address receiver, uint tokenAmount) public 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;
}
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* 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 {
/* 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;
/* Interface declaration */
function isToken() public constant returns (bool weAre) {
return true;
}
function transfer(address _to, uint _value) 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) returns (bool success) {
uint _allowance = allowed[_from][msg.sender];
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];
}
}
/**
* 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 MintableTokenExt is StandardToken, Ownable {
using SafeMathLibExt for uint;
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 );
/** inPercentageUnit is percents of tokens multiplied to 10 up to percents decimals.
* For example, for reserved tokens in percents 2.54%
* inPercentageUnit = 254
* inPercentageDecimals = 2
*/
struct ReservedTokensData {
uint inTokens;
uint inPercentageUnit;
uint inPercentageDecimals;
bool isReserved;
bool isDistributed;
}
mapping (address => ReservedTokensData) public reservedTokensList;
address[] public reservedTokensDestinations;
uint public reservedTokensDestinationsLen = 0;
bool reservedTokensDestinationsAreSet = false;
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;
_;
}
function finalizeReservedAddress(address addr) public onlyMintAgent canMint {
ReservedTokensData storage reservedTokensData = reservedTokensList[addr];
reservedTokensData.isDistributed = true;
}
function isAddressReserved(address addr) public constant returns (bool isReserved) {
return reservedTokensList[addr].isReserved;
}
function areTokensDistributedForAddress(address addr) public constant returns (bool isDistributed) {
return reservedTokensList[addr].isDistributed;
}
function getReservedTokens(address addr) public constant returns (uint inTokens) {
return reservedTokensList[addr].inTokens;
}
function getReservedPercentageUnit(address addr) public constant returns (uint inPercentageUnit) {
return reservedTokensList[addr].inPercentageUnit;
}
function getReservedPercentageDecimals(address addr) public constant returns (uint inPercentageDecimals) {
return reservedTokensList[addr].inPercentageDecimals;
}
function setReservedTokensListMultiple(
address[] addrs,
uint[] inTokens,
uint[] inPercentageUnit,
uint[] inPercentageDecimals
) public canMint onlyOwner {
assert(!reservedTokensDestinationsAreSet);
assert(addrs.length == inTokens.length);
assert(inTokens.length == inPercentageUnit.length);
assert(inPercentageUnit.length == inPercentageDecimals.length);
for (uint iterator = 0; iterator < addrs.length; iterator++) {
if (addrs[iterator] != address(0)) {
setReservedTokensList(addrs[iterator], inTokens[iterator], inPercentageUnit[iterator], inPercentageDecimals[iterator]);
}
}
reservedTokensDestinationsAreSet = true;
}
/**
* 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);
// 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);
}
function setReservedTokensList(address addr, uint inTokens, uint inPercentageUnit, uint inPercentageDecimals) private canMint onlyOwner {
assert(addr != address(0));
if (!isAddressReserved(addr)) {
reservedTokensDestinations.push(addr);
reservedTokensDestinationsLen++;
}
reservedTokensList[addr] = ReservedTokensData({
inTokens: inTokens,
inPercentageUnit: inPercentageUnit,
inPercentageDecimals: inPercentageDecimals,
isReserved: true,
isDistributed: false
});
}
}
/**
* ICO crowdsale contract that is capped by amout of tokens.
*
* - Tokens are dynamically created during the crowdsale
*
*
*/
contract MintedTokenCappedCrowdsaleExt is CrowdsaleExt {
/* Maximum amount of tokens this crowdsale can sell. */
uint public maximumSellableTokens;
function MintedTokenCappedCrowdsaleExt(
string _name,
address _token,
PricingStrategy _pricingStrategy,
address _multisigWallet,
uint _start, uint _end,
uint _minimumFundingGoal,
uint _maximumSellableTokens,
bool _isUpdatable,
bool _isWhiteListed
) CrowdsaleExt(_name, _token, _pricingStrategy, _multisigWallet, _start, _end, _minimumFundingGoal, _isUpdatable, _isWhiteListed) {
maximumSellableTokens = _maximumSellableTokens;
}
// Crowdsale maximumSellableTokens has been changed
event MaximumSellableTokensChanged(uint newMaximumSellableTokens);
/**
* 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) public constant returns (bool limitBroken) {
return tokensSoldTotal > maximumSellableTokens;
}
function isBreakingInvestorCap(address addr, uint tokenAmount) public constant returns (bool limitBroken) {
assert(isWhiteListed);
uint maxCap = earlyParticipantWhitelist[addr].maxCap;
return (tokenAmountOf[addr].plus(tokenAmount)) > maxCap;
}
function isCrowdsaleFull() public constant returns (bool) {
return tokensSold >= maximumSellableTokens;
}
function setMaximumSellableTokens(uint tokens) public onlyOwner {
assert(!finalized);
assert(isUpdatable);
assert(now <= startsAt);
CrowdsaleExt lastTierCntrct = CrowdsaleExt(getLastTier());
assert(!lastTierCntrct.finalized());
maximumSellableTokens = tokens;
MaximumSellableTokensChanged(maximumSellableTokens);
}
function updateRate(uint newOneTokenInWei) public onlyOwner {
assert(!finalized);
assert(isUpdatable);
assert(now <= startsAt);
CrowdsaleExt lastTierCntrct = CrowdsaleExt(getLastTier());
assert(!lastTierCntrct.finalized());
pricingStrategy.updateRate(newOneTokenInWei);
}
/**
* Dynamically create tokens and assign them to the investor.
*/
function assignTokens(address receiver, uint tokenAmount) private {
MintableTokenExt mintableToken = MintableTokenExt(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":false,"inputs":[{"name":"addr","type":"address"}],"name":"invest","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"},{"name":"tokenAmount","type":"uint256"}],"name":"isBreakingInvestorCap","outputs":[{"name":"limitBroken","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addrs","type":"address[]"}],"name":"updateJoinedCrowdsalesMultiple","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isPricingSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"endsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isUpdatable","outputs":[{"name":"","type":"bool"}],"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":"whitelistedParticipantsLength","outputs":[{"name":"","type":"uint256"}],"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":true,"inputs":[{"name":"addr","type":"address"}],"name":"isTierJoined","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"areReservedTokensDistributed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"setMaximumSellableTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maximumSellableTokens","outputs":[{"name":"","type":"uint256"}],"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":"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":"newOneTokenInWei","type":"uint256"}],"name":"updateRate","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":"isMinimumGoalReached","outputs":[{"name":"reached","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"joinedCrowdsalesLenMax","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"status","type":"bool"},{"name":"minCap","type":"uint256"},{"name":"maxCap","type":"uint256"}],"name":"setEarlyParticipantWhitelist","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":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":"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":"addr","type":"address"}],"name":"getTierPosition","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addrs","type":"address[]"},{"name":"statuses","type":"bool[]"},{"name":"minCaps","type":"uint256[]"},{"name":"maxCaps","type":"uint256[]"}],"name":"setEarlyParticipantWhitelistMultiple","outputs":[],"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":"canDistributeReservedTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"joinedCrowdsales","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"time","type":"uint256"}],"name":"setStartsAt","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"tokensBought","type":"uint256"}],"name":"updateEarlyParticipantWhitelist","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getLastTier","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"earlyParticipantWhitelist","outputs":[{"name":"status","type":"bool"},{"name":"minCap","type":"uint256"},{"name":"maxCap","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unhalt","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"reservedTokensDistributionBatch","type":"uint256"}],"name":"distributeReservedTokens","outputs":[],"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":true,"inputs":[{"name":"","type":"uint256"}],"name":"whitelistedParticipants","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"joinedCrowdsalesLen","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isWhiteListed","outputs":[{"name":"","type":"bool"}],"payable":false,"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":"_name","type":"string"},{"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":"_maximumSellableTokens","type":"uint256"},{"name":"_isUpdatable","type":"bool"},{"name":"_isWhiteListed","type":"bool"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newMaximumSellableTokens","type":"uint256"}],"name":"MaximumSellableTokensChanged","type":"event"},{"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":"addr","type":"address"},{"indexed":false,"name":"status","type":"bool"},{"indexed":false,"name":"minCap","type":"uint256"},{"indexed":false,"name":"maxCap","type":"uint256"}],"name":"Whitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"status","type":"bool"},{"indexed":false,"name":"minCap","type":"uint256"},{"indexed":false,"name":"maxCap","type":"uint256"}],"name":"WhitelistItemChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newStartsAt","type":"uint256"}],"name":"StartsAtChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newEndsAt","type":"uint256"}],"name":"EndsAtChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]Contract Creation Code
606060405260056001556000600a819055600b819055600c55600f805461ffff191661320017905534156200003057fe5b604051620031573803806200315783398101604090815281516020830151918301516060840151608085015160a086015160c087015160e08801516101008901516101208a01519790990198959694959394929391929091905b8989898989898988885b5b60008054600160a060020a03191633600160a060020a03161790555b60008054600160a060020a03191633600160a060020a03161790558851620000e19060059060208c0190620002a9565b5060028054600160a060020a031916600160a060020a038a161790556200011687640100000000620001c28102620014051704565b60068054600160a060020a031916600160a060020a038881169190911791829055161515620001455760006000fd5b841515620001535760006000fd5b6008859055831515620001665760006000fd5b60098490556008548490106200017c5760006000fd5b60078390556013805460ff1916831515179055600d805461ff001916610100831515021790555b50505060178990555050505050505b5050505050505050505062000353565b60005433600160a060020a03908116911614620001df5760006000fd5b600160a060020a0381161515620001f257fe5b600354600160a060020a0316156200020657fe5b60038054600160a060020a031916600160a060020a038381169190911791829055604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925194909316936304bbc255936004808501948390030190829087803b15156200028057fe5b6102c65a03f115156200028f57fe5b50506040515115159050620002a45760006000fd5b5b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002ec57805160ff19168380011785556200031c565b828001600101855582156200031c579182015b828111156200031c578251825591602001919060010190620002ff565b5b506200032b9291506200032f565b5090565b6200035091905b808211156200032b576000815560010162000336565b5090565b90565b612df480620003636000396000f300606060405236156102985763ffffffff60e060020a6000350416630226401d81146102a657806303f9c793146102c8578063045b1a0c146102de57806304fc7c6d14610311578063062b01ce1461036657806306fdde031461038a5780630a09284a1461041a5780630e1d2ec81461043c57806313f4e977146104605780631865c57d1461048257806319b667da146104b65780631a98d0de146104d45780631aae3460146104f657806321d5c0f614610524578063253ebd921461055057806325e0671f146105805780632c2de40a146105a45780633ad075ea146105b95780634042b66f146105db5780634551dd59146105fd5780634bb278f31461062157806350c6773414610633578063518ab2a8146106515780635ed7ca5b146106735780636203f09f1461068557806369ea1771146106a75780636e50eb3f146106bc57806378b99c24146106d15780637c2e08a3146106fd5780638507bee814610721578063895594f6146107475780638da5cb5b146107705780639075becf1461079c57806397b150ca146107c85780639d3c663f146107f6578063a6f2ae3a14610826578063a7ba44c314610830578063af46868214610854578063af58574a14610876578063b1cb574b146108a8578063b3f05b97146109a5578063b9b8af0b146109c9578063bd719336146109ed578063bede2cac14610a11578063bf5fc2ee14610a40578063c12eb19114610a55578063c24becf314610a76578063cb16e6d014610aa2578063cb3e64fd14610ade578063cddaf24114610af0578063d5d0902114610b05578063d7e64c0014610b29578063e6d04d5e14610b4b578063ebdfa45514610b7a578063ef674e6614610ba0578063f2fde38b14610bc4578063f3283fba14610be2578063fc0c546a14610c00575b6102a45b60006000fd5b565b005b34156102ae57fe5b6102b6610c2c565b60408051918252519081900360200190f35b6102a4600160a060020a0360043516610c32565b005b34156102e657fe5b6102fd600160a060020a0360043516602435610c41565b604080519115158252519081900360200190f35b341561031957fe5b6102a4600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843750949650610d0495505050505050565b005b341561036e57fe5b6102fd610d93565b604080519115158252519081900360200190f35b341561039257fe5b61039a610e1c565b6040805160208082528351818301528351919283929083019185019080838382156103e0575b8051825260208311156103e057601f1990920191602091820191016103c0565b505050905090810190601f16801561040c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561042257fe5b6102b6610eaa565b60408051918252519081900360200190f35b341561044457fe5b6102fd610eb0565b604080519115158252519081900360200190f35b341561046857fe5b6102b6610eb9565b60408051918252519081900360200190f35b341561048a57fe5b610492610ebf565b604051808260068111156104a257fe5b60ff16815260200191505060405180910390f35b34156104be57fe5b6102a4600160a060020a036004351661105d565b005b34156104dc57fe5b6102b661114c565b60408051918252519081900360200190f35b34156104fe57fe5b6102b6600160a060020a0360043516611153565b60408051918252519081900360200190f35b341561052c57fe5b610534611165565b60408051600160a060020a039092168252519081900360200190f35b341561055857fe5b6102fd600160a060020a0360043516611174565b604080519115158252519081900360200190f35b341561058857fe5b6102fd611196565b604080519115158252519081900360200190f35b34156105ac57fe5b6102a460043561120e565b005b34156105c157fe5b6102b66112fd565b60408051918252519081900360200190f35b34156105e357fe5b6102b6611303565b60408051918252519081900360200190f35b341561060557fe5b6102fd611309565b604080519115158252519081900360200190f35b341561062957fe5b6102a461130f565b005b341561063b57fe5b6102a4600160a060020a0360043516611405565b005b341561065957fe5b6102b66114f3565b60408051918252519081900360200190f35b341561067b57fe5b6102a46114f9565b005b341561068d57fe5b6102b661153d565b60408051918252519081900360200190f35b34156106af57fe5b6102a4600435611543565b005b34156106c457fe5b6102a460043561166d565b005b34156106d957fe5b610534611848565b60408051600160a060020a039092168252519081900360200190f35b341561070557fe5b6102fd611857565b604080519115158252519081900360200190f35b341561072957fe5b610731611863565b6040805160ff9092168252519081900360200190f35b341561074f57fe5b6102a4600160a060020a03600435166024351515604435606435611871565b005b341561077857fe5b610534611a32565b60408051600160a060020a039092168252519081900360200190f35b34156107a457fe5b610534611a41565b60408051600160a060020a039092168252519081900360200190f35b34156107d057fe5b6102b6600160a060020a0360043516611a50565b60408051918252519081900360200190f35b34156107fe57fe5b6102fd600435602435604435606435611a62565b604080519115158252519081900360200190f35b6102a4611a70565b005b341561083857fe5b6102fd611a7c565b604080519115158252519081900360200190f35b341561085c57fe5b6102b6611af4565b60408051918252519081900360200190f35b341561087e57fe5b610731600160a060020a0360043516611afa565b6040805160ff9092168252519081900360200190f35b34156108b057fe5b6102a4600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843750506040805187358901803560208181028481018201909552818452989a998901989297509082019550935083925085019084908082843750506040805187358901803560208181028481018201909552818452989a998901989297509082019550935083925085019084908082843750506040805187358901803560208181028481018201909552818452989a998901989297509082019550935083925085019084908082843750949650611b2195505050505050565b005b34156109ad57fe5b6102fd611c09565b604080519115158252519081900360200190f35b34156109d157fe5b6102fd611c12565b604080519115158252519081900360200190f35b34156109f557fe5b6102fd611c22565b604080519115158252519081900360200190f35b3415610a1957fe5b610534600435611de1565b60408051600160a060020a039092168252519081900360200190f35b3415610a4857fe5b6102a4600435611e13565b005b3415610a5d57fe5b6102a4600160a060020a0360043516602435611fe8565b005b3415610a7e57fe5b610534612161565b60408051600160a060020a039092168252519081900360200190f35b3415610aaa57fe5b610abe600160a060020a03600435166121c1565b604080519315158452602084019290925282820152519081900360600190f35b3415610ae657fe5b6102a46121e6565b005b3415610af857fe5b6102a460043561223e565b005b3415610b0d57fe5b6102fd612330565b604080519115158252519081900360200190f35b3415610b3157fe5b6102b661233c565b60408051918252519081900360200190f35b3415610b5357fe5b610534600435612342565b60408051600160a060020a039092168252519081900360200190f35b3415610b8257fe5b610731612374565b6040805160ff9092168252519081900360200190f35b3415610ba857fe5b6102fd61237d565b604080519115158252519081900360200190f35b3415610bcc57fe5b6102a4600160a060020a036004351661238b565b005b3415610bea57fe5b6102a4600160a060020a0360043516612423565b005b3415610c0857fe5b61053461247e565b60408051600160a060020a039092168252519081900360200190f35b60165481565b610c3d81600061248d565b5b50565b600d546000908190610100900460ff161515610c5957fe5b50600160a060020a03831660009081526014602090815260408083206002015460128352818420548251840194909452815160e060020a6366098d4f02815260048101949094526024840186905290519092839273f250d60cda9afe528aa21bb565bdc5d74b7addaf926366098d4f926044808201939291829003018186803b1515610ce157fe5b6102c65a03f41515610cef57fe5b505050604051805190501191505b5092915050565b6000805433600160a060020a03908116911614610d215760006000fd5b815160009011610d2d57fe5b600f5460ff1615610d3a57fe5b600f54825161010090910460ff16901115610d5157fe5b5060005b81518160ff161015610d8d57610d84828260ff16815181101515610d7557fe5b90602001906020020151612adb565b5b600101610d55565b5b5b5050565b600354604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a033081166004830152935191949390931692638e76828892602480830193919282900301818787803b1515610e0157fe5b6102c65a03f11515610e0f57fe5b5050604051519150505b90565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610ea25780601f10610e7757610100808354040283529160200191610ea2565b820191906000526020600020905b815481529060010190602001808311610e8557829003601f168201915b505050505081565b60095481565b60135460ff1681565b60075481565b600d5460009060ff1615610ed557506006610e19565b600454600160a060020a03161515610eef57506001610e19565b600460009054906101000a9004600160a060020a0316600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515610f4a57fe5b6102c65a03f11515610f5857fe5b50506040515115159050610f6e57506001610e19565b600354604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a03308116600483015293519390941693638e768288936024808301949391928390030190829087803b1515610fdc57fe5b6102c65a03f11515610fea57fe5b5050604051511515905061100057506001610e19565b60085442101561101257506002610e19565b60095442111580156110295750611027612330565b155b1561103657506003610e19565b61103e611857565b1561104b57506004610e19565b506005610e19565b5b5b5b5b5b5b5b90565b60005433600160a060020a039081169116146110795760006000fd5b600160a060020a038116151561108b57fe5b600454600160a060020a03161561109e57fe5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117808355604080516000602091820181905282517f614cb9040000000000000000000000000000000000000000000000000000000081529251939094169463614cb9049483820194929383900390910190829087803b151561112557fe5b6102c65a03f1151561113357fe5b50506040515115159050610c3d5760006000fd5b5b5b50565b6015545b90565b60116020526000908152604090205481565b600454600160a060020a031681565b600160a060020a03811660009081526010602052604090205460ff165b919050565b6000600460009054906101000a9004600160a060020a0316600160a060020a031663f9cb6d7a6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515610e0157fe5b6102c65a03f11515610e0f57fe5b5050604051519150505b90565b6000805433600160a060020a0390811691161461122b5760006000fd5b600d5460ff161561123857fe5b60135460ff16151561124657fe5b60085442111561125257fe5b61125a612161565b905080600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156112a257fe5b6102c65a03f115156112b057fe5b5050604051511590506112bf57fe5b60178290556040805183815290517f7df545c7a1df0d2a1ba979e94124b026facab86a15ed46b6b4a732d995f9e1829181900360200190a15b5b5050565b60175481565b600b5481565b60015b90565b6004805b61131b610ebf565b600681111561132657fe5b146113315760006000fd5b60005433600160a060020a0390811691161461134d5760006000fd5b60005460a060020a900460ff16156113655760006000fd5b600d5460ff16156113765760006000fd5b600454600160a060020a0316156113f15760048054604080517f0bf318a30000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921692630bf318a392828201926000929082900301818387803b15156113df57fe5b6102c65a03f115156113ed57fe5b5050505b600d805460ff191660011790555b5b5b5b50565b60005433600160a060020a039081169116146114215760006000fd5b600160a060020a038116151561143357fe5b600354600160a060020a03161561144657fe5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925194909316936304bbc255936004808501948390030190829087803b151561112557fe5b6102c65a03f1151561113357fe5b50506040515115159050610c3d5760006000fd5b5b5b50565b600a5481565b60005433600160a060020a039081169116146115155760006000fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b60015481565b6000805433600160a060020a039081169116146115605760006000fd5b600d5460ff161561156d57fe5b60135460ff16151561157b57fe5b60085442111561158757fe5b61158f612161565b905080600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156115d757fe5b6102c65a03f115156115e557fe5b5050604051511590506115f457fe5b600354604080517f69ea1771000000000000000000000000000000000000000000000000000000008152600481018590529051600160a060020a03909216916369ea17719160248082019260009290919082900301818387803b151561165657fe5b6102c65a03f1151561166457fe5b5050505b5b5050565b6000805481908190819033600160a060020a039081169116146116905760006000fd5b600d5460ff161561169d57fe5b60135460ff1615156116ab57fe5b42859011156116b657fe5b600854859011156116c357fe5b6009544211156116cf57fe5b6116d7612161565b935083600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561171f57fe5b6102c65a03f1151561172d57fe5b5050604051511590506117405760006000fd5b61174930611afa565b92508260010191505b600f5460ff908116908316101561180757600e805460ff841690811061177457fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316905080600160a060020a031663af4686826000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156117dc57fe5b6102c65a03f115156117ea57fe5b50506040515186111590506117fb57fe5b5b600190910190611752565b60098590556040805186815290517fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3109181900360200190a15b5b5050505050565b600354600160a060020a031681565b600754600b5410155b90565b600f54610100900460ff1681565b60005433600160a060020a0390811691161461188d5760006000fd5b600d54610100900460ff1615156118a45760006000fd5b600160a060020a03841615156118b657fe5b600081116118c057fe5b808211156118ca57fe5b6009544211156118d657fe5b600160a060020a038416600090815260146020526040902060020154151561198757601580546001810161190a8382612d7d565b916000526020600020900160005b8154600160a060020a038089166101009390930a8381029102199091161790915560408051918252851515602083015281810185905260608201849052517fc03e2cbfed65ba7e1df8d32da4afaccb75208d8a6b188f67800ceb19cb9d526492509081900360800190a16119d9565b60408051600160a060020a038616815284151560208201528082018490526060810183905290517f618943c36e69f6b3bae8b5bc48231e8911852a0c844743af41be110450a2a58f9181900360800190a15b6040805160608101825284151581526020808201858152828401858152600160a060020a03891660009081526014909352939091209151825460ff191690151517825551600182015590516002909101555b5b50505050565b600054600160a060020a031681565b600654600160a060020a031681565b60126020526000908152604090205481565b60175481115b949350505050565b6102a233610c32565b5b565b6000600460009054906101000a9004600160a060020a0316600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515610e0157fe5b6102c65a03f11515610e0f57fe5b5050604051519150505b90565b60085481565b600160a060020a038116600090815260106020526040902054610100900460ff165b919050565b6000805433600160a060020a03908116911614611b3e5760006000fd5b600d54610100900460ff161515611b555760006000fd5b600954421115611b6157fe5b8351855114611b6c57fe5b8251845114611b7757fe5b8151835114611b8257fe5b5060005b845181101561166457611bf78582815181101515611ba057fe5b906020019060200201518583815181101515611bb857fe5b906020019060200201518584815181101515611bd057fe5b906020019060200201518585815181101515611be857fe5b90602001906020020151611871565b5b600101611b86565b5b5b5050505050565b600d5460ff1681565b60005460a060020a900460ff1681565b60006000611c2e612161565b905060045b81600160a060020a0316631865c57d6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611c7957fe5b6102c65a03f11515611c8757fe5b50506040515190506006811115611c9a57fe5b148015611d00575080600160a060020a031663b9b8af0b6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611ce857fe5b6102c65a03f11515611cf657fe5b5050604051511590505b8015611d65575080600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611d4d57fe5b6102c65a03f11515611d5b57fe5b5050604051511590505b8015611dca575080600160a060020a03166325e0671f6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611db257fe5b6102c65a03f11515611dc057fe5b5050604051511590505b15611dd85760019150611ddd565b600091505b5090565b600e805482908110611def57fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b6000805481908190819033600160a060020a03908116911614611e365760006000fd5b600d5460ff1615611e4357fe5b60135460ff161515611e5157fe5b4285901115611e5c57fe5b600954851115611e6857fe5b600854421115611e7457fe5b611e7c612161565b935083600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611ec457fe5b6102c65a03f11515611ed257fe5b505060405151159050611ee55760006000fd5b611eee30611afa565b9250600091505b8260ff168260ff161015611fa757600e805460ff8416908110611f1457fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316905080600160a060020a0316630a09284a6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611f7c57fe5b6102c65a03f11515611f8a57fe5b5050604051518610159050611f9b57fe5b5b600190910190611ef5565b60088590556040805186815290517fa3f2a813a039e5195c620dabcd490267a9aa5a50e4e1383bc474e9b800f7defe9181900360200190a15b5b5050505050565b600d54600090610100900460ff1615156120025760006000fd5b600160a060020a038316151561201457fe5b60095442111561202057fe5b61202933611174565b151561203157fe5b600160a060020a03831660009081526014602052604090206001015482101561205a5760006000fd5b50600160a060020a038216600090815260146020908152604080832060020154815183019390935280517ff4f3bdc10000000000000000000000000000000000000000000000000000000081526004810184905260248101859052905173f250d60cda9afe528aa21bb565bdc5d74b7addaf9263f4f3bdc19260448082019391829003018186803b15156120ea57fe5b6102c65a03f415156120f857fe5b5050604080518051606082018352600160a060020a038716600081815260146020818152868320805460ff811615158852828801858152988801878152959094529190529351151560ff199091161783559251600183015591516002909101559150505b505050565b600f5460009060ff16819011156121b557600f54600e8054909160001960ff918216011690811061218e57fe5b906000526020600020900160005b9054906101000a9004600160a060020a03169050610e19565b506000610e19565b5b90565b60146020526000908152604090208054600182015460029092015460ff909116919083565b60005433600160a060020a039081169116146122025760006000fd5b60005460a060020a900460ff16151561221b5760006000fd5b6000805474ff0000000000000000000000000000000000000000191690555b5b5b565b6004805b61224a610ebf565b600681111561225557fe5b146122605760006000fd5b60005433600160a060020a0390811691161461227c5760006000fd5b60005460a060020a900460ff16156122945760006000fd5b600d5460ff16156122a55760006000fd5b600454600160a060020a031615610d8d5760048054604080517fcddaf24100000000000000000000000000000000000000000000000000000000815292830185905251600160a060020a039091169163cddaf24191602480830192600092919082900301818387803b151561165657fe5b6102c65a03f1151561166457fe5b5050505b5b5b5b5b5050565b601754600a5410155b90565b600c5481565b6015805482908110611def57fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b600f5460ff1681565b600d54610100900460ff1681565b60005433600160a060020a039081169116146123a75760006000fd5b600160a060020a03811615156123bd5760006000fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a0390811691161461243f5760006000fd5b600154600c5411156124515760006000fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600254600160a060020a031681565b60008054819060a060020a900460ff16156124a85760006000fd5b60025b6124b3610ebf565b60068111156124be57fe5b14156124ca5760006000fd5b60035b6124d5610ebf565b60068111156124e057fe5b141561029c57600d54610100900460ff161561251e57600160a060020a03841660009081526014602052604090205460ff16151561251e5760006000fd5b5b61252a565b60006000fd5b5b349150600360009054906101000a9004600160a060020a0316600160a060020a03166318a4155e83600b54600a5433600260009054906101000a9004600160a060020a0316600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156125b557fe5b6102c65a03f115156125c357fe5b505050604051805190506000604051602001526040518663ffffffff1660e060020a0281526004018086815260200185815260200184815260200183600160a060020a0316600160a060020a0316815260200182815260200195505050505050602060405180830381600087803b151561263957fe5b6102c65a03f1151561264757fe5b50506040515191505080151561265d5760006000fd5b600d54610100900460ff16156126fb57600160a060020a038416600090815260146020526040902060010154811080156126ad5750600160a060020a038416600090815260126020526040902054155b156126b85760006000fd5b600160a060020a0384166000908152601460205260409020600201548111156126e15760006000fd5b6126eb8482610c41565b156126f65760006000fd5b6127a4565b600254604080516000602091820181905282517f3fa615b00000000000000000000000000000000000000000000000000000000081529251600160a060020a0390941693633fa615b09360048082019493918390030190829087803b151561275f57fe5b6102c65a03f1151561276d57fe5b5050604051518210905080156127995750600160a060020a038416600090815260126020526040902054155b156127a45760006000fd5b5b600160a060020a03841660009081526011602052604090205415156127ce57600c805460010190555b600160a060020a0384166000908152601160209081526040808320548151830193909352805160e060020a6366098d4f0281526004810193909352602483018590525173f250d60cda9afe528aa21bb565bdc5d74b7addaf926366098d4f926044808301939192829003018186803b151561284557fe5b6102c65a03f4151561285357fe5b5050604080518051600160a060020a03881660009081526011602090815284822092909255601282528381205492820152825160e060020a6366098d4f028152600481019290925260248201859052915173f250d60cda9afe528aa21bb565bdc5d74b7addaf93506366098d4f92604480840193919291829003018186803b15156128da57fe5b6102c65a03f415156128e857fe5b5050604080518051600160a060020a03881660009081526012602090815284822092909255600b5492820152825160e060020a6366098d4f028152600481019290925260248201869052915173f250d60cda9afe528aa21bb565bdc5d74b7addaf93506366098d4f92604480840193919291829003018186803b151561296a57fe5b6102c65a03f4151561297857fe5b5050604080518051600b55600a546000602092830152825160e060020a6366098d4f028152600481019190915260248101859052915173f250d60cda9afe528aa21bb565bdc5d74b7addaf93506366098d4f926044808201939291829003018186803b15156129e357fe5b6102c65a03f415156129f157fe5b505060405151600a819055600b54612a0e92508491849190611a62565b15612a195760006000fd5b612a238482612bd8565b600654604051600160a060020a039091169083156108fc029084906000818181858888f193505050501515612a585760006000fd5b600d54610100900460ff1615612a7157612a7181612c5c565b5b60408051600160a060020a0386168152602081018490528082018390526fffffffffffffffffffffffffffffffff8516606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b50505050565b60005433600160a060020a03908116911614612af75760006000fd5b600160a060020a0381161515612b0957fe5b600f5460ff6101008204811691161115612b1f57fe5b612b2881611174565b15612b2f57fe5b600e805460018101612b418382612d7d565b916000526020600020900160005b8154600160a060020a0380861661010093840a818102920219909216179092556040805180820182526001808252600f805460ff908116602080860191825260009889526010905294909620925183549451871690950261ff001995151560ff1995861617959095169490941790915582548085169091019093169216919091179055505b5b50565b600254604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169182916340c10f199160448082019260009290919082900301818387803b1515612c4557fe5b6102c65a03f11515612c5357fe5b5050505b505050565b600060006000600d60019054906101000a900460ff161515612c7e5760006000fd5b600160a060020a033316600090815260146020526040902060010154841015612ca75760006000fd5b612cb030611afa565b92508291505b600f5460ff9081169083161015611a2b57600e805460ff8416908110612cd857fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316905080600160a060020a031663c12eb19133866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1515612d5957fe5b6102c65a03f11515612d6757fe5b5050505b600190910190612cb6565b5b50505050565b81548183558181151161215c5760008381526020902061215c918101908301612da7565b5b505050565b610e1991905b80821115611ddd5760008155600101612dad565b5090565b905600a165627a7a7230582022ef8e62f01bedf56105e66de603a33b5b9af1d03e183b05662f2dbc24ac392300290000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f3981e5ff82caaa5d4cb4fba540b06c20c3d3dbe000000000000000000000000d248139a37218fd03a29b015f0a4507f878bfa610000000000000000000000007d330b024f59e7d881d6c30c03bc3d20d3989870000000000000000000000000000000000000000000000000000000005ac9b1c0000000000000000000000000000000000000000000000000000000005b1a1d400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000422ca8b0a00a44a40be40000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4d65726974756d2049434f200000000000000000000000000000000000000000
Deployed Bytecode
0x606060405236156102985763ffffffff60e060020a6000350416630226401d81146102a657806303f9c793146102c8578063045b1a0c146102de57806304fc7c6d14610311578063062b01ce1461036657806306fdde031461038a5780630a09284a1461041a5780630e1d2ec81461043c57806313f4e977146104605780631865c57d1461048257806319b667da146104b65780631a98d0de146104d45780631aae3460146104f657806321d5c0f614610524578063253ebd921461055057806325e0671f146105805780632c2de40a146105a45780633ad075ea146105b95780634042b66f146105db5780634551dd59146105fd5780634bb278f31461062157806350c6773414610633578063518ab2a8146106515780635ed7ca5b146106735780636203f09f1461068557806369ea1771146106a75780636e50eb3f146106bc57806378b99c24146106d15780637c2e08a3146106fd5780638507bee814610721578063895594f6146107475780638da5cb5b146107705780639075becf1461079c57806397b150ca146107c85780639d3c663f146107f6578063a6f2ae3a14610826578063a7ba44c314610830578063af46868214610854578063af58574a14610876578063b1cb574b146108a8578063b3f05b97146109a5578063b9b8af0b146109c9578063bd719336146109ed578063bede2cac14610a11578063bf5fc2ee14610a40578063c12eb19114610a55578063c24becf314610a76578063cb16e6d014610aa2578063cb3e64fd14610ade578063cddaf24114610af0578063d5d0902114610b05578063d7e64c0014610b29578063e6d04d5e14610b4b578063ebdfa45514610b7a578063ef674e6614610ba0578063f2fde38b14610bc4578063f3283fba14610be2578063fc0c546a14610c00575b6102a45b60006000fd5b565b005b34156102ae57fe5b6102b6610c2c565b60408051918252519081900360200190f35b6102a4600160a060020a0360043516610c32565b005b34156102e657fe5b6102fd600160a060020a0360043516602435610c41565b604080519115158252519081900360200190f35b341561031957fe5b6102a4600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843750949650610d0495505050505050565b005b341561036e57fe5b6102fd610d93565b604080519115158252519081900360200190f35b341561039257fe5b61039a610e1c565b6040805160208082528351818301528351919283929083019185019080838382156103e0575b8051825260208311156103e057601f1990920191602091820191016103c0565b505050905090810190601f16801561040c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561042257fe5b6102b6610eaa565b60408051918252519081900360200190f35b341561044457fe5b6102fd610eb0565b604080519115158252519081900360200190f35b341561046857fe5b6102b6610eb9565b60408051918252519081900360200190f35b341561048a57fe5b610492610ebf565b604051808260068111156104a257fe5b60ff16815260200191505060405180910390f35b34156104be57fe5b6102a4600160a060020a036004351661105d565b005b34156104dc57fe5b6102b661114c565b60408051918252519081900360200190f35b34156104fe57fe5b6102b6600160a060020a0360043516611153565b60408051918252519081900360200190f35b341561052c57fe5b610534611165565b60408051600160a060020a039092168252519081900360200190f35b341561055857fe5b6102fd600160a060020a0360043516611174565b604080519115158252519081900360200190f35b341561058857fe5b6102fd611196565b604080519115158252519081900360200190f35b34156105ac57fe5b6102a460043561120e565b005b34156105c157fe5b6102b66112fd565b60408051918252519081900360200190f35b34156105e357fe5b6102b6611303565b60408051918252519081900360200190f35b341561060557fe5b6102fd611309565b604080519115158252519081900360200190f35b341561062957fe5b6102a461130f565b005b341561063b57fe5b6102a4600160a060020a0360043516611405565b005b341561065957fe5b6102b66114f3565b60408051918252519081900360200190f35b341561067b57fe5b6102a46114f9565b005b341561068d57fe5b6102b661153d565b60408051918252519081900360200190f35b34156106af57fe5b6102a4600435611543565b005b34156106c457fe5b6102a460043561166d565b005b34156106d957fe5b610534611848565b60408051600160a060020a039092168252519081900360200190f35b341561070557fe5b6102fd611857565b604080519115158252519081900360200190f35b341561072957fe5b610731611863565b6040805160ff9092168252519081900360200190f35b341561074f57fe5b6102a4600160a060020a03600435166024351515604435606435611871565b005b341561077857fe5b610534611a32565b60408051600160a060020a039092168252519081900360200190f35b34156107a457fe5b610534611a41565b60408051600160a060020a039092168252519081900360200190f35b34156107d057fe5b6102b6600160a060020a0360043516611a50565b60408051918252519081900360200190f35b34156107fe57fe5b6102fd600435602435604435606435611a62565b604080519115158252519081900360200190f35b6102a4611a70565b005b341561083857fe5b6102fd611a7c565b604080519115158252519081900360200190f35b341561085c57fe5b6102b6611af4565b60408051918252519081900360200190f35b341561087e57fe5b610731600160a060020a0360043516611afa565b6040805160ff9092168252519081900360200190f35b34156108b057fe5b6102a4600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843750506040805187358901803560208181028481018201909552818452989a998901989297509082019550935083925085019084908082843750506040805187358901803560208181028481018201909552818452989a998901989297509082019550935083925085019084908082843750506040805187358901803560208181028481018201909552818452989a998901989297509082019550935083925085019084908082843750949650611b2195505050505050565b005b34156109ad57fe5b6102fd611c09565b604080519115158252519081900360200190f35b34156109d157fe5b6102fd611c12565b604080519115158252519081900360200190f35b34156109f557fe5b6102fd611c22565b604080519115158252519081900360200190f35b3415610a1957fe5b610534600435611de1565b60408051600160a060020a039092168252519081900360200190f35b3415610a4857fe5b6102a4600435611e13565b005b3415610a5d57fe5b6102a4600160a060020a0360043516602435611fe8565b005b3415610a7e57fe5b610534612161565b60408051600160a060020a039092168252519081900360200190f35b3415610aaa57fe5b610abe600160a060020a03600435166121c1565b604080519315158452602084019290925282820152519081900360600190f35b3415610ae657fe5b6102a46121e6565b005b3415610af857fe5b6102a460043561223e565b005b3415610b0d57fe5b6102fd612330565b604080519115158252519081900360200190f35b3415610b3157fe5b6102b661233c565b60408051918252519081900360200190f35b3415610b5357fe5b610534600435612342565b60408051600160a060020a039092168252519081900360200190f35b3415610b8257fe5b610731612374565b6040805160ff9092168252519081900360200190f35b3415610ba857fe5b6102fd61237d565b604080519115158252519081900360200190f35b3415610bcc57fe5b6102a4600160a060020a036004351661238b565b005b3415610bea57fe5b6102a4600160a060020a0360043516612423565b005b3415610c0857fe5b61053461247e565b60408051600160a060020a039092168252519081900360200190f35b60165481565b610c3d81600061248d565b5b50565b600d546000908190610100900460ff161515610c5957fe5b50600160a060020a03831660009081526014602090815260408083206002015460128352818420548251840194909452815160e060020a6366098d4f02815260048101949094526024840186905290519092839273f250d60cda9afe528aa21bb565bdc5d74b7addaf926366098d4f926044808201939291829003018186803b1515610ce157fe5b6102c65a03f41515610cef57fe5b505050604051805190501191505b5092915050565b6000805433600160a060020a03908116911614610d215760006000fd5b815160009011610d2d57fe5b600f5460ff1615610d3a57fe5b600f54825161010090910460ff16901115610d5157fe5b5060005b81518160ff161015610d8d57610d84828260ff16815181101515610d7557fe5b90602001906020020151612adb565b5b600101610d55565b5b5b5050565b600354604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a033081166004830152935191949390931692638e76828892602480830193919282900301818787803b1515610e0157fe5b6102c65a03f11515610e0f57fe5b5050604051519150505b90565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610ea25780601f10610e7757610100808354040283529160200191610ea2565b820191906000526020600020905b815481529060010190602001808311610e8557829003601f168201915b505050505081565b60095481565b60135460ff1681565b60075481565b600d5460009060ff1615610ed557506006610e19565b600454600160a060020a03161515610eef57506001610e19565b600460009054906101000a9004600160a060020a0316600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515610f4a57fe5b6102c65a03f11515610f5857fe5b50506040515115159050610f6e57506001610e19565b600354604080516000602091820181905282517f8e768288000000000000000000000000000000000000000000000000000000008152600160a060020a03308116600483015293519390941693638e768288936024808301949391928390030190829087803b1515610fdc57fe5b6102c65a03f11515610fea57fe5b5050604051511515905061100057506001610e19565b60085442101561101257506002610e19565b60095442111580156110295750611027612330565b155b1561103657506003610e19565b61103e611857565b1561104b57506004610e19565b506005610e19565b5b5b5b5b5b5b5b90565b60005433600160a060020a039081169116146110795760006000fd5b600160a060020a038116151561108b57fe5b600454600160a060020a03161561109e57fe5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117808355604080516000602091820181905282517f614cb9040000000000000000000000000000000000000000000000000000000081529251939094169463614cb9049483820194929383900390910190829087803b151561112557fe5b6102c65a03f1151561113357fe5b50506040515115159050610c3d5760006000fd5b5b5b50565b6015545b90565b60116020526000908152604090205481565b600454600160a060020a031681565b600160a060020a03811660009081526010602052604090205460ff165b919050565b6000600460009054906101000a9004600160a060020a0316600160a060020a031663f9cb6d7a6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515610e0157fe5b6102c65a03f11515610e0f57fe5b5050604051519150505b90565b6000805433600160a060020a0390811691161461122b5760006000fd5b600d5460ff161561123857fe5b60135460ff16151561124657fe5b60085442111561125257fe5b61125a612161565b905080600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156112a257fe5b6102c65a03f115156112b057fe5b5050604051511590506112bf57fe5b60178290556040805183815290517f7df545c7a1df0d2a1ba979e94124b026facab86a15ed46b6b4a732d995f9e1829181900360200190a15b5b5050565b60175481565b600b5481565b60015b90565b6004805b61131b610ebf565b600681111561132657fe5b146113315760006000fd5b60005433600160a060020a0390811691161461134d5760006000fd5b60005460a060020a900460ff16156113655760006000fd5b600d5460ff16156113765760006000fd5b600454600160a060020a0316156113f15760048054604080517f0bf318a30000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921692630bf318a392828201926000929082900301818387803b15156113df57fe5b6102c65a03f115156113ed57fe5b5050505b600d805460ff191660011790555b5b5b5b50565b60005433600160a060020a039081169116146114215760006000fd5b600160a060020a038116151561143357fe5b600354600160a060020a03161561144657fe5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055604080516000602091820181905282517f04bbc255000000000000000000000000000000000000000000000000000000008152925194909316936304bbc255936004808501948390030190829087803b151561112557fe5b6102c65a03f1151561113357fe5b50506040515115159050610c3d5760006000fd5b5b5b50565b600a5481565b60005433600160a060020a039081169116146115155760006000fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1790555b5b565b60015481565b6000805433600160a060020a039081169116146115605760006000fd5b600d5460ff161561156d57fe5b60135460ff16151561157b57fe5b60085442111561158757fe5b61158f612161565b905080600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156115d757fe5b6102c65a03f115156115e557fe5b5050604051511590506115f457fe5b600354604080517f69ea1771000000000000000000000000000000000000000000000000000000008152600481018590529051600160a060020a03909216916369ea17719160248082019260009290919082900301818387803b151561165657fe5b6102c65a03f1151561166457fe5b5050505b5b5050565b6000805481908190819033600160a060020a039081169116146116905760006000fd5b600d5460ff161561169d57fe5b60135460ff1615156116ab57fe5b42859011156116b657fe5b600854859011156116c357fe5b6009544211156116cf57fe5b6116d7612161565b935083600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561171f57fe5b6102c65a03f1151561172d57fe5b5050604051511590506117405760006000fd5b61174930611afa565b92508260010191505b600f5460ff908116908316101561180757600e805460ff841690811061177457fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316905080600160a060020a031663af4686826000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156117dc57fe5b6102c65a03f115156117ea57fe5b50506040515186111590506117fb57fe5b5b600190910190611752565b60098590556040805186815290517fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3109181900360200190a15b5b5050505050565b600354600160a060020a031681565b600754600b5410155b90565b600f54610100900460ff1681565b60005433600160a060020a0390811691161461188d5760006000fd5b600d54610100900460ff1615156118a45760006000fd5b600160a060020a03841615156118b657fe5b600081116118c057fe5b808211156118ca57fe5b6009544211156118d657fe5b600160a060020a038416600090815260146020526040902060020154151561198757601580546001810161190a8382612d7d565b916000526020600020900160005b8154600160a060020a038089166101009390930a8381029102199091161790915560408051918252851515602083015281810185905260608201849052517fc03e2cbfed65ba7e1df8d32da4afaccb75208d8a6b188f67800ceb19cb9d526492509081900360800190a16119d9565b60408051600160a060020a038616815284151560208201528082018490526060810183905290517f618943c36e69f6b3bae8b5bc48231e8911852a0c844743af41be110450a2a58f9181900360800190a15b6040805160608101825284151581526020808201858152828401858152600160a060020a03891660009081526014909352939091209151825460ff191690151517825551600182015590516002909101555b5b50505050565b600054600160a060020a031681565b600654600160a060020a031681565b60126020526000908152604090205481565b60175481115b949350505050565b6102a233610c32565b5b565b6000600460009054906101000a9004600160a060020a0316600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515610e0157fe5b6102c65a03f11515610e0f57fe5b5050604051519150505b90565b60085481565b600160a060020a038116600090815260106020526040902054610100900460ff165b919050565b6000805433600160a060020a03908116911614611b3e5760006000fd5b600d54610100900460ff161515611b555760006000fd5b600954421115611b6157fe5b8351855114611b6c57fe5b8251845114611b7757fe5b8151835114611b8257fe5b5060005b845181101561166457611bf78582815181101515611ba057fe5b906020019060200201518583815181101515611bb857fe5b906020019060200201518584815181101515611bd057fe5b906020019060200201518585815181101515611be857fe5b90602001906020020151611871565b5b600101611b86565b5b5b5050505050565b600d5460ff1681565b60005460a060020a900460ff1681565b60006000611c2e612161565b905060045b81600160a060020a0316631865c57d6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611c7957fe5b6102c65a03f11515611c8757fe5b50506040515190506006811115611c9a57fe5b148015611d00575080600160a060020a031663b9b8af0b6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611ce857fe5b6102c65a03f11515611cf657fe5b5050604051511590505b8015611d65575080600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611d4d57fe5b6102c65a03f11515611d5b57fe5b5050604051511590505b8015611dca575080600160a060020a03166325e0671f6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611db257fe5b6102c65a03f11515611dc057fe5b5050604051511590505b15611dd85760019150611ddd565b600091505b5090565b600e805482908110611def57fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b6000805481908190819033600160a060020a03908116911614611e365760006000fd5b600d5460ff1615611e4357fe5b60135460ff161515611e5157fe5b4285901115611e5c57fe5b600954851115611e6857fe5b600854421115611e7457fe5b611e7c612161565b935083600160a060020a031663b3f05b976000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611ec457fe5b6102c65a03f11515611ed257fe5b505060405151159050611ee55760006000fd5b611eee30611afa565b9250600091505b8260ff168260ff161015611fa757600e805460ff8416908110611f1457fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316905080600160a060020a0316630a09284a6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611f7c57fe5b6102c65a03f11515611f8a57fe5b5050604051518610159050611f9b57fe5b5b600190910190611ef5565b60088590556040805186815290517fa3f2a813a039e5195c620dabcd490267a9aa5a50e4e1383bc474e9b800f7defe9181900360200190a15b5b5050505050565b600d54600090610100900460ff1615156120025760006000fd5b600160a060020a038316151561201457fe5b60095442111561202057fe5b61202933611174565b151561203157fe5b600160a060020a03831660009081526014602052604090206001015482101561205a5760006000fd5b50600160a060020a038216600090815260146020908152604080832060020154815183019390935280517ff4f3bdc10000000000000000000000000000000000000000000000000000000081526004810184905260248101859052905173f250d60cda9afe528aa21bb565bdc5d74b7addaf9263f4f3bdc19260448082019391829003018186803b15156120ea57fe5b6102c65a03f415156120f857fe5b5050604080518051606082018352600160a060020a038716600081815260146020818152868320805460ff811615158852828801858152988801878152959094529190529351151560ff199091161783559251600183015591516002909101559150505b505050565b600f5460009060ff16819011156121b557600f54600e8054909160001960ff918216011690811061218e57fe5b906000526020600020900160005b9054906101000a9004600160a060020a03169050610e19565b506000610e19565b5b90565b60146020526000908152604090208054600182015460029092015460ff909116919083565b60005433600160a060020a039081169116146122025760006000fd5b60005460a060020a900460ff16151561221b5760006000fd5b6000805474ff0000000000000000000000000000000000000000191690555b5b5b565b6004805b61224a610ebf565b600681111561225557fe5b146122605760006000fd5b60005433600160a060020a0390811691161461227c5760006000fd5b60005460a060020a900460ff16156122945760006000fd5b600d5460ff16156122a55760006000fd5b600454600160a060020a031615610d8d5760048054604080517fcddaf24100000000000000000000000000000000000000000000000000000000815292830185905251600160a060020a039091169163cddaf24191602480830192600092919082900301818387803b151561165657fe5b6102c65a03f1151561166457fe5b5050505b5b5b5b5b5050565b601754600a5410155b90565b600c5481565b6015805482908110611def57fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b600f5460ff1681565b600d54610100900460ff1681565b60005433600160a060020a039081169116146123a75760006000fd5b600160a060020a03811615156123bd5760006000fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a0390811691161461243f5760006000fd5b600154600c5411156124515760006000fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600254600160a060020a031681565b60008054819060a060020a900460ff16156124a85760006000fd5b60025b6124b3610ebf565b60068111156124be57fe5b14156124ca5760006000fd5b60035b6124d5610ebf565b60068111156124e057fe5b141561029c57600d54610100900460ff161561251e57600160a060020a03841660009081526014602052604090205460ff16151561251e5760006000fd5b5b61252a565b60006000fd5b5b349150600360009054906101000a9004600160a060020a0316600160a060020a03166318a4155e83600b54600a5433600260009054906101000a9004600160a060020a0316600160a060020a031663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156125b557fe5b6102c65a03f115156125c357fe5b505050604051805190506000604051602001526040518663ffffffff1660e060020a0281526004018086815260200185815260200184815260200183600160a060020a0316600160a060020a0316815260200182815260200195505050505050602060405180830381600087803b151561263957fe5b6102c65a03f1151561264757fe5b50506040515191505080151561265d5760006000fd5b600d54610100900460ff16156126fb57600160a060020a038416600090815260146020526040902060010154811080156126ad5750600160a060020a038416600090815260126020526040902054155b156126b85760006000fd5b600160a060020a0384166000908152601460205260409020600201548111156126e15760006000fd5b6126eb8482610c41565b156126f65760006000fd5b6127a4565b600254604080516000602091820181905282517f3fa615b00000000000000000000000000000000000000000000000000000000081529251600160a060020a0390941693633fa615b09360048082019493918390030190829087803b151561275f57fe5b6102c65a03f1151561276d57fe5b5050604051518210905080156127995750600160a060020a038416600090815260126020526040902054155b156127a45760006000fd5b5b600160a060020a03841660009081526011602052604090205415156127ce57600c805460010190555b600160a060020a0384166000908152601160209081526040808320548151830193909352805160e060020a6366098d4f0281526004810193909352602483018590525173f250d60cda9afe528aa21bb565bdc5d74b7addaf926366098d4f926044808301939192829003018186803b151561284557fe5b6102c65a03f4151561285357fe5b5050604080518051600160a060020a03881660009081526011602090815284822092909255601282528381205492820152825160e060020a6366098d4f028152600481019290925260248201859052915173f250d60cda9afe528aa21bb565bdc5d74b7addaf93506366098d4f92604480840193919291829003018186803b15156128da57fe5b6102c65a03f415156128e857fe5b5050604080518051600160a060020a03881660009081526012602090815284822092909255600b5492820152825160e060020a6366098d4f028152600481019290925260248201869052915173f250d60cda9afe528aa21bb565bdc5d74b7addaf93506366098d4f92604480840193919291829003018186803b151561296a57fe5b6102c65a03f4151561297857fe5b5050604080518051600b55600a546000602092830152825160e060020a6366098d4f028152600481019190915260248101859052915173f250d60cda9afe528aa21bb565bdc5d74b7addaf93506366098d4f926044808201939291829003018186803b15156129e357fe5b6102c65a03f415156129f157fe5b505060405151600a819055600b54612a0e92508491849190611a62565b15612a195760006000fd5b612a238482612bd8565b600654604051600160a060020a039091169083156108fc029084906000818181858888f193505050501515612a585760006000fd5b600d54610100900460ff1615612a7157612a7181612c5c565b5b60408051600160a060020a0386168152602081018490528082018390526fffffffffffffffffffffffffffffffff8516606082015290517f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc433509181900360800190a15b5b50505050565b60005433600160a060020a03908116911614612af75760006000fd5b600160a060020a0381161515612b0957fe5b600f5460ff6101008204811691161115612b1f57fe5b612b2881611174565b15612b2f57fe5b600e805460018101612b418382612d7d565b916000526020600020900160005b8154600160a060020a0380861661010093840a818102920219909216179092556040805180820182526001808252600f805460ff908116602080860191825260009889526010905294909620925183549451871690950261ff001995151560ff1995861617959095169490941790915582548085169091019093169216919091179055505b5b50565b600254604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169182916340c10f199160448082019260009290919082900301818387803b1515612c4557fe5b6102c65a03f11515612c5357fe5b5050505b505050565b600060006000600d60019054906101000a900460ff161515612c7e5760006000fd5b600160a060020a033316600090815260146020526040902060010154841015612ca75760006000fd5b612cb030611afa565b92508291505b600f5460ff9081169083161015611a2b57600e805460ff8416908110612cd857fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316905080600160a060020a031663c12eb19133866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1515612d5957fe5b6102c65a03f11515612d6757fe5b5050505b600190910190612cb6565b5b50505050565b81548183558181151161215c5760008381526020902061215c918101908301612da7565b5b505050565b610e1991905b80821115611ddd5760008155600101612dad565b5090565b905600a165627a7a7230582022ef8e62f01bedf56105e66de603a33b5b9af1d03e183b05662f2dbc24ac39230029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f3981e5ff82caaa5d4cb4fba540b06c20c3d3dbe000000000000000000000000d248139a37218fd03a29b015f0a4507f878bfa610000000000000000000000007d330b024f59e7d881d6c30c03bc3d20d3989870000000000000000000000000000000000000000000000000000000005ac9b1c0000000000000000000000000000000000000000000000000000000005b1a1d400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000422ca8b0a00a44a40be40000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4d65726974756d2049434f200000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Meritum ICO
Arg [1] : _token (address): 0xF3981E5ff82CAAA5d4cb4fbA540b06c20c3d3dbE
Arg [2] : _pricingStrategy (address): 0xd248139a37218fd03a29B015F0A4507f878bFa61
Arg [3] : _multisigWallet (address): 0x7D330B024f59e7d881d6c30C03bc3D20D3989870
Arg [4] : _start (uint256): 1523167680
Arg [5] : _end (uint256): 1528438080
Arg [6] : _minimumFundingGoal (uint256): 0
Arg [7] : _maximumSellableTokens (uint256): 80000000000000010000000000
Arg [8] : _isUpdatable (bool): True
Arg [9] : _isWhiteListed (bool): False
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 000000000000000000000000f3981e5ff82caaa5d4cb4fba540b06c20c3d3dbe
Arg [2] : 000000000000000000000000d248139a37218fd03a29b015f0a4507f878bfa61
Arg [3] : 0000000000000000000000007d330b024f59e7d881d6c30c03bc3d20d3989870
Arg [4] : 000000000000000000000000000000000000000000000000000000005ac9b1c0
Arg [5] : 000000000000000000000000000000000000000000000000000000005b1a1d40
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000422ca8b0a00a44a40be400
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [11] : 4d65726974756d2049434f200000000000000000000000000000000000000000
Swarm Source
bzzr://22ef8e62f01bedf56105e66de603a33b5b9af1d03e183b05662f2dbc24ac3923
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.