More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 17,731 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy With KYC Dat... | 5870275 | 2484 days ago | IN | 1 ETH | 0.00914277 | ||||
Buy With KYC Dat... | 5870275 | 2484 days ago | IN | 1 ETH | 0.00749199 | ||||
Buy With KYC Dat... | 5870266 | 2484 days ago | IN | 1 ETH | 0.00685708 | ||||
Buy With KYC Dat... | 5838664 | 2490 days ago | IN | 1 ETH | 0.00380757 | ||||
Buy With KYC Dat... | 5819366 | 2493 days ago | IN | 1 ETH | 0.00634915 | ||||
Buy With KYC Dat... | 5813211 | 2494 days ago | IN | 1 ETH | 0.01142847 | ||||
Buy With KYC Dat... | 5804499 | 2496 days ago | IN | 1 ETH | 0.00660311 | ||||
Buy With KYC Dat... | 5799778 | 2496 days ago | IN | 0.9 ETH | 0.0126983 | ||||
Buy With KYC Dat... | 5799341 | 2496 days ago | IN | 1 ETH | 0.00380373 | ||||
Buy With KYC Dat... | 5798535 | 2497 days ago | IN | 1 ETH | 0.00698406 | ||||
Buy With KYC Dat... | 5797997 | 2497 days ago | IN | 1 ETH | 0.01523796 | ||||
Buy With KYC Dat... | 5795656 | 2497 days ago | IN | 1 ETH | 0.00761514 | ||||
Buy With KYC Dat... | 5794348 | 2497 days ago | IN | 1 ETH | 0.00977769 | ||||
Buy With KYC Dat... | 5794220 | 2497 days ago | IN | 1 ETH | 0.00825389 | ||||
Buy With KYC Dat... | 5793997 | 2497 days ago | IN | 1 ETH | 0.00380757 | ||||
Buy With KYC Dat... | 5793668 | 2497 days ago | IN | 1 ETH | 0.01257131 | ||||
Buy With KYC Dat... | 5793565 | 2497 days ago | IN | 1 ETH | 0.01078811 | ||||
Buy With KYC Dat... | 5793565 | 2497 days ago | IN | 1 ETH | 0.00634595 | ||||
Buy With KYC Dat... | 5792710 | 2498 days ago | IN | 0.95 ETH | 0.0126983 | ||||
Buy With KYC Dat... | 5792460 | 2498 days ago | IN | 1 ETH | 0.00380949 | ||||
Buy With KYC Dat... | 5792139 | 2498 days ago | IN | 1 ETH | 0.00608787 | ||||
Buy With KYC Dat... | 5792058 | 2498 days ago | IN | 0.2 ETH | 0.00380949 | ||||
Buy With KYC Dat... | 5792055 | 2498 days ago | IN | 0.2 ETH | 0.00380949 | ||||
Buy With KYC Dat... | 5792055 | 2498 days ago | IN | 0.25 ETH | 0.00380949 | ||||
Buy With KYC Dat... | 5792055 | 2498 days ago | IN | 0.3 ETH | 0.00380949 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 5744117 | 2506 days ago | 0.00892466 ETH | ||||
Transfer | 5744028 | 2506 days ago | 0.01 ETH | ||||
Transfer | 5743803 | 2506 days ago | 0.2 ETH | ||||
Transfer | 5743801 | 2506 days ago | 0.2 ETH | ||||
Transfer | 5743800 | 2506 days ago | 0.48 ETH | ||||
Transfer | 5743800 | 2506 days ago | 1 ETH | ||||
Transfer | 5743800 | 2506 days ago | 1 ETH | ||||
Transfer | 5743800 | 2506 days ago | 1 ETH | ||||
Transfer | 5743800 | 2506 days ago | 1 ETH | ||||
Transfer | 5743800 | 2506 days ago | 1 ETH | ||||
Transfer | 5743799 | 2506 days ago | 1 ETH | ||||
Transfer | 5743799 | 2506 days ago | 0.47 ETH | ||||
Transfer | 5743799 | 2506 days ago | 1 ETH | ||||
Transfer | 5743799 | 2506 days ago | 1 ETH | ||||
Transfer | 5743799 | 2506 days ago | 1 ETH | ||||
Transfer | 5743799 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH | ||||
Transfer | 5743798 | 2506 days ago | 1 ETH |
Loading...
Loading
This contract contains unverified libraries: BytesDeserializer, SafeMathLib
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
KYCCrowdsale
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-06-05 */ /** * 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 */ /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } } /* * 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 */ /** * Safe unsigned safe math. * * https://blog.aragon.one/library-driven-development-in-solidity-2bebcaf88736#.750gwtwli * * Originally from https://raw.githubusercontent.com/AragonOne/zeppelin-solidity/master/contracts/SafeMathLib.sol * * Maintained here until merged to mainline zeppelin-solidity. * */ library SafeMathLib { function times(uint a, uint b) returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function minus(uint a, uint b) returns (uint) { assert(b <= a); return a - b; } function plus(uint a, uint b) returns (uint) { uint c = a + b; assert(c>=a); 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 */ /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * A token that defines fractional units as decimals. */ contract FractionalERC20 is ERC20 { uint public decimals; } /** * 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 { /** 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; } /** * 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 { function isFinalizeAgent() public constant returns(bool) { return true; } /** Return true if we can run finalizeCrowdsale() properly. * * This is a safety check function that doesn't allow crowdsale to begin * unless the finalizer has been set up properly. */ function isSane() public constant returns (bool); /** Called once by crowdsale finalize() if the sale was success. */ function finalizeCrowdsale(); } /** * Crowdsale state machine without buy functionality. * * Implements basic state machine logic, but leaves out all buy functions, * so that subclasses can implement their own buying logic. * * * For the default buy() implementation see Crowdsale.sol. */ contract CrowdsaleBase is Haltable { /* Max investment count when we are still allowed to change the multisig address */ uint public MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE = 5; using SafeMathLib for uint; /* The token we are selling */ FractionalERC20 public token; /* How we are going to price our offering */ PricingStrategy public pricingStrategy; /* Post-success callback */ FinalizeAgent public finalizeAgent; /* tokens will be transfered from this address */ address public multisigWallet; /* if the funding goal is not reached, investors may withdraw their funds */ uint public minimumFundingGoal; /* the UNIX timestamp start date of the crowdsale */ uint public startsAt; /* the UNIX timestamp end date of the crowdsale */ uint public endsAt; /* the number of tokens already sold through this contract*/ uint public tokensSold = 0; /* How many wei of funding we have raised */ uint public weiRaised = 0; /* Calculate incoming funds from presale contracts and addresses */ uint public presaleWeiRaised = 0; /* How many distinct addresses have invested */ uint public investorCount = 0; /* How much wei we have returned back to the contract after a failed crowdfund. */ uint public loadedRefund = 0; /* How much wei we have given back to investors.*/ uint public weiRefunded = 0; /* Has this crowdsale been finalized */ bool public finalized; /** How much ETH each address has invested to this crowdsale */ mapping (address => uint256) public investedAmountOf; /** How much tokens this crowdsale has credited for each investor address */ mapping (address => uint256) public tokenAmountOf; /** Addresses that are allowed to invest even before ICO offical opens. For testing, for ICO partners, etc. */ mapping (address => bool) public earlyParticipantWhitelist; /** This is for manul testing for the interaction from owner wallet. You can set it to any value and inspect this in blockchain explorer to see that crowdsale interaction works. */ uint public ownerTestValue; /** State machine * * - Preparing: All contract initialization calls and variables have not been set yet * - Prefunding: We have not passed start time yet * - Funding: Active crowdsale * - Success: Minimum funding goal reached * - Failure: Minimum funding goal not reached before ending time * - Finalized: The finalized has been called and succesfully executed * - Refunding: Refunds are loaded on the contract for reclaim. */ enum State{Unknown, Preparing, PreFunding, Funding, Success, Failure, Finalized, Refunding} // A new investment was made event Invested(address investor, uint weiAmount, uint tokenAmount, uint128 customerId); // Refund was processed for a contributor event Refund(address investor, uint weiAmount); // The rules were changed what kind of investments we accept event InvestmentPolicyChanged(bool newRequireCustomerId, bool newRequiredSignedAddress, address newSignerAddress); // Address early participation whitelist status changed event Whitelisted(address addr, bool status); // Crowdsale end time has been changed event EndsAtChanged(uint newEndsAt); function CrowdsaleBase(address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal) { owner = msg.sender; token = FractionalERC20(_token); setPricingStrategy(_pricingStrategy); multisigWallet = _multisigWallet; if(multisigWallet == 0) { throw; } if(_start == 0) { throw; } startsAt = _start; if(_end == 0) { throw; } endsAt = _end; // Don't mess the dates if(startsAt >= endsAt) { throw; } // Minimum funding goal can be zero minimumFundingGoal = _minimumFundingGoal; } /** * Don't expect to just send in money and get tokens. */ function() payable { throw; } /** * @dev 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' * @param tokenAmount Amount of tokens which be credited to receiver * * @return tokensBought How mony tokens were bought */ function buyTokens(address receiver, uint128 customerId, uint256 tokenAmount) stopInEmergency internal returns(uint tokensBought) { // Determine if it's a good time to accept investment from this participant if(getState() == State.PreFunding) { // Are we whitelisted for early deposit if(!earlyParticipantWhitelist[receiver]) { throw; } } else if(getState() == State.Funding) { // Retail participants can only come in when the crowdsale is running // pass } else { // Unwanted state throw; } uint weiAmount = msg.value; // Dust transaction require(tokenAmount != 0); 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); if(pricingStrategy.isPresalePurchase(receiver)) { presaleWeiRaised = presaleWeiRaised.plus(weiAmount); } // Check that we did not bust the cap require(!isBreakingCap(weiAmount, tokenAmount, weiRaised, tokensSold)); assignTokens(receiver, tokenAmount); // Pocket the money, or fail the crowdsale if we for some reason cannot send the money to our multisig if(!multisigWallet.send(weiAmount)) throw; // Tell us invest was success Invested(receiver, weiAmount, tokenAmount, customerId); return tokenAmount; } /** * @dev Make an investment based on pricing strategy * * This is a wrapper for buyTokens(), but the amount of tokens receiver will * have depends on the pricing strategy used. * * @param receiver The Ethereum address who receives the tokens * @param customerId (optional) UUID v4 to track the successful payments on the server side' * * @return tokensBought How mony tokens were bought */ function investInternal(address receiver, uint128 customerId) stopInEmergency internal returns(uint tokensBought) { return buyTokens(receiver, customerId, pricingStrategy.calculatePrice(msg.value, weiRaised - presaleWeiRaised, tokensSold, msg.sender, token.decimals())); } /** * @dev Calculate tokens user will have for their purchase * * @param weisTotal How much ethers (in wei) the user putssssss in * @param pricePerToken What is the price for one token * * @return tokensTotal which is received tokens, token decimals included */ function calculateTokens(uint256 weisTotal, uint256 pricePerToken) public constant returns(uint tokensTotal) { // pricePerToken is how many full tokens, token decimal place included, you get for wei amount. // Because, in theory, decimal amount can vary, we do the exponent calculation here, // though gas wise using 10**18 constant would be much simpler. // Furthermore we could use rough amounts and take in raw wei per tokens amount, // but we lose too much accuracy for generic calculations, thus all these are // practically implemented as 10**18 fixed points. uint multiplier = 10 ** token.decimals(); return weisTotal.times(multiplier)/pricePerToken; } /** * Finalize a succcesful crowdsale. * * The owner can triggre a call the contract that provides post-crowdsale actions, like releasing the tokens. */ function finalize() public inState(State.Success) onlyOwner stopInEmergency { // Already finalized if(finalized) { throw; } // Finalizing is optional. We only call it if we are given a finalizing agent. if(address(finalizeAgent) != 0) { finalizeAgent.finalizeCrowdsale(); } finalized = true; } /** * Allow to (re)set finalize agent. * * Design choice: no state restrictions on setting this, so that we can fix fat finger mistakes. */ function setFinalizeAgent(FinalizeAgent addr) onlyOwner { finalizeAgent = addr; // Don't allow setting bad agent if(!finalizeAgent.isFinalizeAgent()) { throw; } } /** * Allow crowdsale owner to close early or extend the crowdsale. * * This is useful e.g. for a manual soft cap implementation: * - after X amount is reached determine manual closing * * This may put the crowdsale to an invalid state, * but we trust owners know what they are doing. * */ function setEndsAt(uint time) onlyOwner { if(now > time) { throw; // Don't change past } if(startsAt > time) { throw; // Prevent human mistakes } endsAt = time; EndsAtChanged(endsAt); } /** * Allow to (re)set pricing strategy. * * Design choice: no state restrictions on the set, so that we can fix fat finger mistakes. */ function setPricingStrategy(PricingStrategy _pricingStrategy) onlyOwner { pricingStrategy = _pricingStrategy; // Don't allow setting bad agent if(!pricingStrategy.isPricingStrategy()) { throw; } } /** * Allow to change the team multisig address in the case of emergency. * * This allows to save a deployed crowdsale wallet in the case the crowdsale has not yet begun * (we have done only few test transactions). After the crowdsale is going * then multisig address stays locked for the safety reasons. */ function setMultisig(address addr) public onlyOwner { // Change if(investorCount > MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE) { throw; } multisigWallet = addr; } /** * Allow load refunds back on the contract for the refunding. * * The team can transfer the funds back on the smart contract in the case the minimum goal was not reached.. */ function loadRefund() public payable inState(State.Failure) { if(msg.value == 0) throw; loadedRefund = loadedRefund.plus(msg.value); } /** * Investors can claim refund. * * Note that any refunds from proxy buyers should be handled separately, * and not through this contract. */ function refund() public inState(State.Refunding) { uint256 weiValue = investedAmountOf[msg.sender]; if (weiValue == 0) throw; investedAmountOf[msg.sender] = 0; weiRefunded = weiRefunded.plus(weiValue); Refund(msg.sender, weiValue); if (!msg.sender.send(weiValue)) throw; } /** * @return true if the crowdsale has raised enough money to be a 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 if (!isMinimumGoalReached() && weiRaised > 0 && loadedRefund >= weiRaised) return State.Refunding; else return State.Failure; } /** This is for manual testing of multisig wallet interaction */ function setOwnerTestValue(uint val) onlyOwner { ownerTestValue = val; } /** * Allow addresses to do early participation. * * TODO: Fix spelling error in the name */ function setEarlyParicipantWhitelist(address addr, bool status) onlyOwner { earlyParticipantWhitelist[addr] = status; Whitelisted(addr, status); } /** 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) 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) internal; } /** * 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 */ /** * A mixin that is selling tokens from a preallocated pool * * - Tokens have precreated supply "premined" * * - Token owner must transfer sellable tokens to the crowdsale contract using ERC20.approve() * * - The mixin does not implement buy entry point. * */ contract AllocatedCrowdsaleMixin is CrowdsaleBase { /* The party who holds the full token pool and has approve()'ed tokens for this crowdsale */ address public beneficiary; /** * @param _beneficiary The account who has performed approve() to allocate tokens for the token sale. * */ function AllocatedCrowdsaleMixin(address _beneficiary) { beneficiary = _beneficiary; } /** * Called from invest() to confirm if the curret investment does not break our cap rule. */ function isBreakingCap(uint weiAmount, uint tokenAmount, uint weiRaisedTotal, uint tokensSoldTotal) constant returns (bool limitBroken) { if(tokenAmount > getTokensLeft()) { return true; } else { return false; } } /** * We are sold out when our approve pool becomes empty. */ function isCrowdsaleFull() public constant returns (bool) { return getTokensLeft() == 0; } /** * Get the amount of unsold tokens allocated to this contract; */ function getTokensLeft() public constant returns (uint) { return token.allowance(owner, this); } /** * Transfer tokens from approve() pool to the buyer. * * Use approve() given to this crowdsale to distribute the tokens. */ function assignTokens(address receiver, uint tokenAmount) internal { if(!token.transferFrom(beneficiary, receiver, tokenAmount)) throw; } } /** * 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 */ /** * Deserialize bytes payloads. * * Values are in big-endian byte order. * */ library BytesDeserializer { /** * Extract 256-bit worth of data from the bytes stream. */ function slice32(bytes b, uint offset) constant returns (bytes32) { bytes32 out; for (uint i = 0; i < 32; i++) { out |= bytes32(b[offset + i] & 0xFF) >> (i * 8); } return out; } /** * Extract Ethereum address worth of data from the bytes stream. */ function sliceAddress(bytes b, uint offset) constant returns (address) { bytes32 out; for (uint i = 0; i < 20; i++) { out |= bytes32(b[offset + i] & 0xFF) >> ((i+12) * 8); } return address(uint(out)); } /** * Extract 128-bit worth of data from the bytes stream. */ function slice16(bytes b, uint offset) constant returns (bytes16) { bytes16 out; for (uint i = 0; i < 16; i++) { out |= bytes16(b[offset + i] & 0xFF) >> (i * 8); } return out; } /** * Extract 32-bit worth of data from the bytes stream. */ function slice4(bytes b, uint offset) constant returns (bytes4) { bytes4 out; for (uint i = 0; i < 4; i++) { out |= bytes4(b[offset + i] & 0xFF) >> (i * 8); } return out; } /** * Extract 16-bit worth of data from the bytes stream. */ function slice2(bytes b, uint offset) constant returns (bytes2) { bytes2 out; for (uint i = 0; i < 2; i++) { out |= bytes2(b[offset + i] & 0xFF) >> (i * 8); } return out; } } /** * A mix-in contract to decode different signed KYC payloads. * * @notice This should be a library, but for the complexity and toolchain fragility risks involving of linking library inside library, we currently use this as a helper method mix-in. */ contract KYCPayloadDeserializer { using BytesDeserializer for bytes; // @notice this struct describes what kind of data we include in the payload, we do not use this directly // The bytes payload set on the server side // total 56 bytes struct KYCPayload { /** Customer whitelisted address where the deposit can come from */ address whitelistedAddress; // 20 bytes /** Customer id, UUID v4 */ uint128 customerId; // 16 bytes /** * Min amount this customer needs to invest in ETH. Set zero if no minimum. Expressed as parts of 10000. 1 ETH = 10000. * @notice Decided to use 32-bit words to make the copy-pasted Data field for the ICO transaction less lenghty. */ uint32 minETH; // 4 bytes /** Max amount this customer can to invest in ETH. Set zero if no maximum. Expressed as parts of 10000. 1 ETH = 10000. */ uint32 maxETH; // 4 bytes /** * Information about the price promised for this participant. It can be pricing tier id or directly one token price in weis. * @notice This is a later addition and not supported in all scenarios yet. */ uint256 pricingInfo; } /** * Same as above, but with pricing information included in the payload as the last integer. * * @notice In a long run, deprecate the legacy methods above and only use this payload. */ function getKYCPayload(bytes dataframe) public constant returns(address whitelistedAddress, uint128 customerId, uint32 minEth, uint32 maxEth, uint256 pricingInfo) { address _whitelistedAddress = dataframe.sliceAddress(0); uint128 _customerId = uint128(dataframe.slice16(20)); uint32 _minETH = uint32(dataframe.slice4(36)); uint32 _maxETH = uint32(dataframe.slice4(40)); uint256 _pricingInfo = uint256(dataframe.slice32(44)); return (_whitelistedAddress, _customerId, _minETH, _maxETH, _pricingInfo); } } /** * A crowdsale that allows buys only from signed payload with server-side specified limits and price. * * The token distribution happens as in the allocated crowdsale. * */ contract KYCCrowdsale is AllocatedCrowdsaleMixin, KYCPayloadDeserializer { /* Server holds the private key to this address to sign incoming buy payloads to signal we have KYC records in the books for these users. */ address public signerAddress; /* A new server-side signer key was set to be effective */ event SignerChanged(address signer); /** * Constructor. */ function KYCCrowdsale(address _token, PricingStrategy _pricingStrategy, address _multisigWallet, uint _start, uint _end, uint _minimumFundingGoal, address _beneficiary) CrowdsaleBase(_token, _pricingStrategy, _multisigWallet, _start, _end, _minimumFundingGoal) AllocatedCrowdsaleMixin(_beneficiary) { } /** * A token purchase with anti-money laundering * * ©return tokenAmount How many tokens where bought */ function buyWithKYCData(bytes dataframe, uint8 v, bytes32 r, bytes32 s) public payable returns(uint tokenAmount) { uint _tokenAmount; uint multiplier = 10 ** 18; // Perform signature check for normal addresses // (not deployment accounts, etc.) if(earlyParticipantWhitelist[msg.sender]) { // Deployment provided early participant list is for deployment and diagnostics // For test purchases use this faux customer id 0x1000 _tokenAmount = investInternal(msg.sender, 0x1000); } else { // User comes through the server, check that the signature to ensure ther server // side KYC has passed for this customer id and whitelisted Ethereum address bytes32 hash = sha256(dataframe); var (whitelistedAddress, customerId, minETH, maxETH, pricingInfo) = getKYCPayload(dataframe); // Check that the KYC data is signed by our server require(ecrecover(hash, v, r, s) == signerAddress); // Only whitelisted address can participate the transaction require(whitelistedAddress == msg.sender); // Server gives us information what is the buy price for this user uint256 tokensTotal = calculateTokens(msg.value, pricingInfo); _tokenAmount = buyTokens(msg.sender, customerId, tokensTotal); } if(!earlyParticipantWhitelist[msg.sender]) { // We assume there is no serious min and max fluctuations for the customer, unless // especially set in the server side per customer manual override. // Otherwise the customer can reuse old data payload with different min or max value // to work around the per customer cap. require(investedAmountOf[msg.sender] >= minETH * multiplier / 10000); require(investedAmountOf[msg.sender] <= maxETH * multiplier / 10000); } return _tokenAmount; } /// @dev This function can set the server side address /// @param _signerAddress The address derived from server's private key function setSignerAddress(address _signerAddress) onlyOwner { signerAddress = _signerAddress; SignerChanged(signerAddress); } }
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,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isPricingSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"endsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minimumFundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"setFinalizeAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"investedAmountOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finalizeAgent","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isCrowdsale","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_pricingStrategy","type":"address"}],"name":"setPricingStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"signerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRefunded","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"halt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"MAX_INVESTMENTS_BEFORE_MULTISIG_CHANGE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"time","type":"uint256"}],"name":"setEndsAt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"dataframe","type":"bytes"}],"name":"getKYCPayload","outputs":[{"name":"whitelistedAddress","type":"address"},{"name":"customerId","type":"uint128"},{"name":"minEth","type":"uint32"},{"name":"maxEth","type":"uint32"},{"name":"pricingInfo","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pricingStrategy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"loadedRefund","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isMinimumGoalReached","outputs":[{"name":"reached","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"loadRefund","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"val","type":"uint256"}],"name":"setOwnerTestValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"weisTotal","type":"uint256"},{"name":"pricePerToken","type":"uint256"}],"name":"calculateTokens","outputs":[{"name":"tokensTotal","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"multisigWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"tokenAmountOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isFinalizerSane","outputs":[{"name":"sane","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startsAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"halted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"earlyParticipantWhitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unhalt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isCrowdsaleFull","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dataframe","type":"bytes"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"buyWithKYCData","outputs":[{"name":"tokenAmount","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"investorCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTokensLeft","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"status","type":"bool"}],"name":"setEarlyParicipantWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"setMultisig","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"presaleWeiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_pricingStrategy","type":"address"},{"name":"_multisigWallet","type":"address"},{"name":"_start","type":"uint256"},{"name":"_end","type":"uint256"},{"name":"_minimumFundingGoal","type":"uint256"},{"name":"_beneficiary","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"signer","type":"address"}],"name":"SignerChanged","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":"investor","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequireCustomerId","type":"bool"},{"indexed":false,"name":"newRequiredSignedAddress","type":"bool"},{"indexed":false,"name":"newSignerAddress","type":"address"}],"name":"InvestmentPolicyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"status","type":"bool"}],"name":"Whitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"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
6060604052600560015560006009556000600a556000600b556000600c556000600d556000600e5534156200003357600080fd5b60405160e080620023f78339810160405280805191906020018051919060200180519190602001805191906020018051919060200180519190602001805160008054600160a060020a03338116600160a060020a0319928316811783161790925560028054928c16929091169190911790559150819050878787878787620000c98564010000000062000bf36200016282021704565b60058054600160a060020a031916600160a060020a038681169190911791829055161515620000f757600080fd5b8215156200010457600080fd5b60078390558115156200011657600080fd5b60088290556007548290106200012b57600080fd5b600655505060148054600160a060020a031916600160a060020a039590951694909417909355506200022198505050505050505050565b60005433600160a060020a039081169116146200017e57600080fd5b60038054600160a060020a031916600160a060020a038381169190911791829055166304bbc2556000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620001f657600080fd5b6102c65a03f115156200020857600080fd5b5050506040518051905015156200021e57600080fd5b50565b6121c680620002316000396000f3006060604052600436106102215763ffffffff60e060020a6000350416630226401d8114610226578063046dc1661461024b578063062b01ce1461026c5780630a09284a1461029357806313f4e977146102a65780631865c57d146102b957806319b667da146102f05780631aae34601461030f57806321d5c0f61461032e57806338af3eed1461035d5780634042b66f146103705780634551dd59146103835780634bb278f31461039657806350c67734146103a9578063518ab2a8146103c8578063590e1ae3146103db5780635b7633d0146103ee5780635da89ac0146104015780635ed7ca5b146104145780636203f09f146104275780636e50eb3f1461043a57806373752db41461045057806378b99c24146104f7578063797d94371461050a5780637c2e08a31461051d57806387612102146105305780638d51faec146105385780638da5cb5b1461054e578063903cc583146105615780639075becf1461057a57806397b150ca1461058d5780639d3c663f146105ac578063a7ba44c3146105cb578063af468682146105de578063b3f05b97146105f1578063b9b8af0b14610604578063cb16e6d014610617578063cb3e64fd14610636578063d5d0902114610649578063d7c7159c1461065c578063d7e64c00146106b2578063de5f9866146106c5578063eac24932146106d8578063f2fde38b146106fc578063f3283fba1461071b578063f7c00e2f1461073a578063fc0c546a1461074d575b600080fd5b341561023157600080fd5b610239610760565b60405190815260200160405180910390f35b341561025657600080fd5b61026a600160a060020a0360043516610766565b005b341561027757600080fd5b61027f6107f0565b604051901515815260200160405180910390f35b341561029e57600080fd5b61023961086b565b34156102b157600080fd5b610239610871565b34156102c457600080fd5b6102cc610877565b604051808260078111156102dc57fe5b60ff16815260200191505060405180910390f35b34156102fb57600080fd5b61026a600160a060020a0360043516610a21565b341561031a57600080fd5b610239600160a060020a0360043516610ad0565b341561033957600080fd5b610341610ae2565b604051600160a060020a03909116815260200160405180910390f35b341561036857600080fd5b610341610af1565b341561037b57600080fd5b610239610b00565b341561038e57600080fd5b61027f610b06565b34156103a157600080fd5b61026a610b0b565b34156103b457600080fd5b61026a600160a060020a0360043516610bf3565b34156103d357600080fd5b610239610c79565b34156103e657600080fd5b61026a610c7f565b34156103f957600080fd5b610341610dda565b341561040c57600080fd5b610239610de9565b341561041f57600080fd5b61026a610def565b341561043257600080fd5b610239610e41565b341561044557600080fd5b61026a600435610e47565b341561045b57600080fd5b6104a160046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610eb995505050505050565b604051600160a060020a0390951685526fffffffffffffffffffffffffffffffff909316602085015263ffffffff91821660408086019190915291166060840152608083019190915260a0909101905180910390f35b341561050257600080fd5b610341611360565b341561051557600080fd5b61023961136f565b341561052857600080fd5b61027f611375565b61026a611380565b341561054357600080fd5b61026a60043561142e565b341561055957600080fd5b61034161144e565b341561056c57600080fd5b61023960043560243561145d565b341561058557600080fd5b610341611555565b341561059857600080fd5b610239600160a060020a0360043516611564565b34156105b757600080fd5b61027f600435602435604435606435611576565b34156105d657600080fd5b61027f61159b565b34156105e957600080fd5b6102396115e5565b34156105fc57600080fd5b61027f6115eb565b341561060f57600080fd5b61027f6115f4565b341561062257600080fd5b61027f600160a060020a0360043516611615565b341561064157600080fd5b61026a61162a565b341561065457600080fd5b61027f61168e565b61023960046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496505060ff853516946020810135945060400135925061169e915050565b34156106bd57600080fd5b6102396118e9565b34156106d057600080fd5b6102396118ef565b34156106e357600080fd5b61026a600160a060020a03600435166024351515611959565b341561070757600080fd5b61026a600160a060020a03600435166119e5565b341561072657600080fd5b61026a600160a060020a0360043516611a80565b341561074557600080fd5b610239611adb565b341561075857600080fd5b610341611ae1565b60135481565b60005433600160a060020a0390811691161461078157600080fd5b6015805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290557f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d9116604051600160a060020a03909116815260200160405180910390a150565b600354600090600160a060020a0316638e76828830836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561084b57600080fd5b6102c65a03f1151561085c57600080fd5b50505060405180519150505b90565b60085481565b60065481565b600f5460009060ff161561088d57506006610868565b600454600160a060020a031615156108a757506001610868565b600454600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156108ef57600080fd5b6102c65a03f1151561090057600080fd5b50505060405180519050151561091857506001610868565b600354600160a060020a0316638e7682883060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561097157600080fd5b6102c65a03f1151561098257600080fd5b50505060405180519050151561099a57506001610868565b6007544210156109ac57506002610868565b60085442111580156109c357506109c161168e565b155b156109d057506003610868565b6109d8611375565b156109e557506004610868565b6109ed611375565b1580156109fc57506000600a54115b8015610a0c5750600a54600d5410155b15610a1957506007610868565b506005610868565b60005433600160a060020a03908116911614610a3c57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290551663614cb9046000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610aa757600080fd5b6102c65a03f11515610ab857600080fd5b505050604051805190501515610acd57600080fd5b50565b60106020526000908152604090205481565b600454600160a060020a031681565b601454600160a060020a031681565b600a5481565b600190565b600480610b16610877565b6007811115610b2157fe5b14610b2b57600080fd5b60005433600160a060020a03908116911614610b4657600080fd5b60005474010000000000000000000000000000000000000000900460ff1615610b6e57600080fd5b600f5460ff1615610b7e57600080fd5b600454600160a060020a031615610be357600454600160a060020a0316630bf318a36040518163ffffffff1660e060020a028152600401600060405180830381600087803b1515610bce57600080fd5b6102c65a03f11515610bdf57600080fd5b5050505b50600f805460ff19166001179055565b60005433600160a060020a03908116911614610c0e57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055166304bbc2556000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610aa757600080fd5b60095481565b6000600780610c8c610877565b6007811115610c9757fe5b14610ca157600080fd5b600160a060020a0333166000908152601060205260409020549150811515610cc857600080fd5b600160a060020a033316600090815260106020526040808220829055600e54730c7117e2341d2e3704a5be19e1569a96f249d751926366098d4f92869190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515610d4457600080fd5b6102c65a03f41515610d5557600080fd5b5050506040518051600e55507fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d3383604051600160a060020a03909216825260208201526040908101905180910390a1600160a060020a03331682156108fc0283604051600060405180830381858888f193505050501515610dd657600080fd5b5050565b601554600160a060020a031681565b600e5481565b60005433600160a060020a03908116911614610e0a57600080fd5b6000805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b60015481565b60005433600160a060020a03908116911614610e6257600080fd5b80421115610e6f57600080fd5b806007541115610e7e57600080fd5b60088190557fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3108160405190815260200160405180910390a150565b6000808080808080808080731a141dd6f804d121acca724bda518d646e5fa1aa63b655e1388c8380604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610f3d578082015183820152602001610f25565b50505050905090810190601f168015610f6a5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1515610f8757600080fd5b6102c65a03f41515610f9857600080fd5b50505060405180519550731a141dd6f804d121acca724bda518d646e5fa1aa90506316419aa78c60146000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561101f578082015183820152602001611007565b50505050905090810190601f16801561104c5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561106957600080fd5b6102c65a03f4151561107a57600080fd5b505050604051805170010000000000000000000000000000000090049450731a141dd6f804d121acca724bda518d646e5fa1aa905063d54dd8f98c60246000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156111155780820151838201526020016110fd565b50505050905090810190601f1680156111425780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561115f57600080fd5b6102c65a03f4151561117057600080fd5b505050604051805160e060020a90049350731a141dd6f804d121acca724bda518d646e5fa1aa905063d54dd8f98c60286000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156111fe5780820151838201526020016111e6565b50505050905090810190601f16801561122b5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561124857600080fd5b6102c65a03f4151561125957600080fd5b505050604051805160e060020a90049250731a141dd6f804d121acca724bda518d646e5fa1aa9050632e1eb7fe8c602c6000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156112e75780820151838201526020016112cf565b50505050905090810190601f1680156113145780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561133157600080fd5b6102c65a03f4151561134257600080fd5b5050506040518051959c949b50929950909750929550909350505050565b600354600160a060020a031681565b600d5481565b600654600a54101590565b60058061138b610877565b600781111561139657fe5b146113a057600080fd5b3415156113ac57600080fd5b600d54730c7117e2341d2e3704a5be19e1569a96f249d7516366098d4f90913460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561140e57600080fd5b6102c65a03f4151561141f57600080fd5b5050506040518051600d555050565b60005433600160a060020a0390811691161461144957600080fd5b601355565b600054600160a060020a031681565b6002546000908190600160a060020a031663313ce56782604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156114a957600080fd5b6102c65a03f115156114ba57600080fd5b5050506040518051600a0a9150839050730c7117e2341d2e3704a5be19e1569a96f249d751631d3b9edf868460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561152857600080fd5b6102c65a03f4151561153957600080fd5b5050506040518051905081151561154c57fe5b04949350505050565b600554600160a060020a031681565b60116020526000908152604090205481565b60006115806118ef565b84111561158f57506001611593565b5060005b949350505050565b600454600090600160a060020a03166382771c8e82604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561084b57600080fd5b60075481565b600f5460ff1681565b60005474010000000000000000000000000000000000000000900460ff1681565b60126020526000908152604090205460ff1681565b60005433600160a060020a0390811691161461164557600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561166e57600080fd5b6000805474ff000000000000000000000000000000000000000019169055565b60006116986118ef565b15905090565b600160a060020a0333166000908152601260205260408120548190670de0b6b3a764000090829081908190819081908190819060ff16156116ec576116e533611000611af0565b9850611851565b60028e6000604051602001526040518082805190602001908083835b602083106117275780518252601f199092019160209182019101611708565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561176957600080fd5b505060405180519050965061177d8e610eb9565b601554949a5092985090965094509250600160a060020a03166001888f8f8f6040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f115156117fb57600080fd5b505060206040510351600160a060020a03161461181757600080fd5b33600160a060020a031686600160a060020a031614151561183757600080fd5b611841348361145d565b905061184e338683611c2e565b98505b600160a060020a03331660009081526012602052604090205460ff1615156118d75733600160a060020a031660009081526010602052604090205461271063ffffffff86168a02049010156118a557600080fd5b33600160a060020a031660009081526010602052604090205461271063ffffffff85168a02049011156118d757600080fd5b50969c9b505050505050505050505050565b600c5481565b600254600080549091600160a060020a039081169163dd62ed3e911630846040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b151561084b57600080fd5b60005433600160a060020a0390811691161461197457600080fd5b600160a060020a03821660009081526012602052604090819020805460ff19168315151790557fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b60005433600160a060020a03908116911614611a0057600080fd5b600160a060020a0381161515611a1557600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614611a9b57600080fd5b600154600c541115611aac57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600b5481565b600254600160a060020a031681565b6000805474010000000000000000000000000000000000000000900460ff1615611b1957600080fd5b600354600b54600a54600954600254611c279488948894600160a060020a03928316946318a4155e9434949390920392909133911663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611b8a57600080fd5b6102c65a03f11515611b9b57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8816028152600481019590955260248501939093526044840191909152600160a060020a03166064830152608482015260a401602060405180830381600087803b1515611c0757600080fd5b6102c65a03f11515611c1857600080fd5b50505060405180519050611c2e565b9392505050565b60008054819074010000000000000000000000000000000000000000900460ff1615611c5957600080fd5b6002611c63610877565b6007811115611c6e57fe5b1415611ca057600160a060020a03851660009081526012602052604090205460ff161515611c9b57600080fd5b611cbc565b6003611caa610877565b6007811115611cb557fe5b1415610221575b5034821515611cca57600080fd5b600160a060020a0385166000908152601060205260409020541515611cf357600c805460010190555b600160a060020a03851660009081526010602052604080822054730c7117e2341d2e3704a5be19e1569a96f249d751926366098d4f92859190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611d6a57600080fd5b6102c65a03f41515611d7b57600080fd5b5050506040518051600160a060020a0387166000908152601060209081526040808320939093556011905281812054730c7117e2341d2e3704a5be19e1569a96f249d75193506366098d4f9290918791516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611e0957600080fd5b6102c65a03f41515611e1a57600080fd5b5050506040518051600160a060020a03871660009081526011602052604080822092909255600a54730c7117e2341d2e3704a5be19e1569a96f249d75193506366098d4f9290918591516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611ea157600080fd5b6102c65a03f41515611eb257600080fd5b5050506040518051600a5550600954730c7117e2341d2e3704a5be19e1569a96f249d751906366098d4f908560006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611f2057600080fd5b6102c65a03f41515611f3157600080fd5b505050604051805160095550600354600160a060020a031663f14ae17d8660006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515611f9657600080fd5b6102c65a03f11515611fa757600080fd5b505050604051805190501561203657600b54730c7117e2341d2e3704a5be19e1569a96f249d7516366098d4f90918360006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561201857600080fd5b6102c65a03f4151561202957600080fd5b5050506040518051600b55505b6120468184600a54600954611576565b1561205057600080fd5b61205a8584612101565b600554600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561208d57600080fd5b7f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc4335085828587604051600160a060020a03909416845260208401929092526040808401919091526fffffffffffffffffffffffffffffffff90911660608301526080909101905180910390a150909392505050565b600254601454600160a060020a03918216916323b872dd9116848460006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561217457600080fd5b6102c65a03f1151561218557600080fd5b505050604051805190501515610dd657600080fd00a165627a7a723058201b963740e269ab1ff3e83081f17a2bd545177ff7670d9f0f623adb6a3f09bda8002900000000000000000000000097aeb5066e1a590e868b511457beb6fe99d329f50000000000000000000000006e44e4ee28aa26cfeffaccaceaf618ca5a81baff0000000000000000000000007bb187351421c3affda57c7a5132e304f73167c800000000000000000000000000000000000000000000000000000000387b6190000000000000000000000000000000000000000000000000000000005b37b71000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007bb187351421c3affda57c7a5132e304f73167c8
Deployed Bytecode
0x6060604052600436106102215763ffffffff60e060020a6000350416630226401d8114610226578063046dc1661461024b578063062b01ce1461026c5780630a09284a1461029357806313f4e977146102a65780631865c57d146102b957806319b667da146102f05780631aae34601461030f57806321d5c0f61461032e57806338af3eed1461035d5780634042b66f146103705780634551dd59146103835780634bb278f31461039657806350c67734146103a9578063518ab2a8146103c8578063590e1ae3146103db5780635b7633d0146103ee5780635da89ac0146104015780635ed7ca5b146104145780636203f09f146104275780636e50eb3f1461043a57806373752db41461045057806378b99c24146104f7578063797d94371461050a5780637c2e08a31461051d57806387612102146105305780638d51faec146105385780638da5cb5b1461054e578063903cc583146105615780639075becf1461057a57806397b150ca1461058d5780639d3c663f146105ac578063a7ba44c3146105cb578063af468682146105de578063b3f05b97146105f1578063b9b8af0b14610604578063cb16e6d014610617578063cb3e64fd14610636578063d5d0902114610649578063d7c7159c1461065c578063d7e64c00146106b2578063de5f9866146106c5578063eac24932146106d8578063f2fde38b146106fc578063f3283fba1461071b578063f7c00e2f1461073a578063fc0c546a1461074d575b600080fd5b341561023157600080fd5b610239610760565b60405190815260200160405180910390f35b341561025657600080fd5b61026a600160a060020a0360043516610766565b005b341561027757600080fd5b61027f6107f0565b604051901515815260200160405180910390f35b341561029e57600080fd5b61023961086b565b34156102b157600080fd5b610239610871565b34156102c457600080fd5b6102cc610877565b604051808260078111156102dc57fe5b60ff16815260200191505060405180910390f35b34156102fb57600080fd5b61026a600160a060020a0360043516610a21565b341561031a57600080fd5b610239600160a060020a0360043516610ad0565b341561033957600080fd5b610341610ae2565b604051600160a060020a03909116815260200160405180910390f35b341561036857600080fd5b610341610af1565b341561037b57600080fd5b610239610b00565b341561038e57600080fd5b61027f610b06565b34156103a157600080fd5b61026a610b0b565b34156103b457600080fd5b61026a600160a060020a0360043516610bf3565b34156103d357600080fd5b610239610c79565b34156103e657600080fd5b61026a610c7f565b34156103f957600080fd5b610341610dda565b341561040c57600080fd5b610239610de9565b341561041f57600080fd5b61026a610def565b341561043257600080fd5b610239610e41565b341561044557600080fd5b61026a600435610e47565b341561045b57600080fd5b6104a160046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610eb995505050505050565b604051600160a060020a0390951685526fffffffffffffffffffffffffffffffff909316602085015263ffffffff91821660408086019190915291166060840152608083019190915260a0909101905180910390f35b341561050257600080fd5b610341611360565b341561051557600080fd5b61023961136f565b341561052857600080fd5b61027f611375565b61026a611380565b341561054357600080fd5b61026a60043561142e565b341561055957600080fd5b61034161144e565b341561056c57600080fd5b61023960043560243561145d565b341561058557600080fd5b610341611555565b341561059857600080fd5b610239600160a060020a0360043516611564565b34156105b757600080fd5b61027f600435602435604435606435611576565b34156105d657600080fd5b61027f61159b565b34156105e957600080fd5b6102396115e5565b34156105fc57600080fd5b61027f6115eb565b341561060f57600080fd5b61027f6115f4565b341561062257600080fd5b61027f600160a060020a0360043516611615565b341561064157600080fd5b61026a61162a565b341561065457600080fd5b61027f61168e565b61023960046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496505060ff853516946020810135945060400135925061169e915050565b34156106bd57600080fd5b6102396118e9565b34156106d057600080fd5b6102396118ef565b34156106e357600080fd5b61026a600160a060020a03600435166024351515611959565b341561070757600080fd5b61026a600160a060020a03600435166119e5565b341561072657600080fd5b61026a600160a060020a0360043516611a80565b341561074557600080fd5b610239611adb565b341561075857600080fd5b610341611ae1565b60135481565b60005433600160a060020a0390811691161461078157600080fd5b6015805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290557f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d9116604051600160a060020a03909116815260200160405180910390a150565b600354600090600160a060020a0316638e76828830836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561084b57600080fd5b6102c65a03f1151561085c57600080fd5b50505060405180519150505b90565b60085481565b60065481565b600f5460009060ff161561088d57506006610868565b600454600160a060020a031615156108a757506001610868565b600454600160a060020a03166382771c8e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156108ef57600080fd5b6102c65a03f1151561090057600080fd5b50505060405180519050151561091857506001610868565b600354600160a060020a0316638e7682883060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561097157600080fd5b6102c65a03f1151561098257600080fd5b50505060405180519050151561099a57506001610868565b6007544210156109ac57506002610868565b60085442111580156109c357506109c161168e565b155b156109d057506003610868565b6109d8611375565b156109e557506004610868565b6109ed611375565b1580156109fc57506000600a54115b8015610a0c5750600a54600d5410155b15610a1957506007610868565b506005610868565b60005433600160a060020a03908116911614610a3c57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290551663614cb9046000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610aa757600080fd5b6102c65a03f11515610ab857600080fd5b505050604051805190501515610acd57600080fd5b50565b60106020526000908152604090205481565b600454600160a060020a031681565b601454600160a060020a031681565b600a5481565b600190565b600480610b16610877565b6007811115610b2157fe5b14610b2b57600080fd5b60005433600160a060020a03908116911614610b4657600080fd5b60005474010000000000000000000000000000000000000000900460ff1615610b6e57600080fd5b600f5460ff1615610b7e57600080fd5b600454600160a060020a031615610be357600454600160a060020a0316630bf318a36040518163ffffffff1660e060020a028152600401600060405180830381600087803b1515610bce57600080fd5b6102c65a03f11515610bdf57600080fd5b5050505b50600f805460ff19166001179055565b60005433600160a060020a03908116911614610c0e57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055166304bbc2556000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610aa757600080fd5b60095481565b6000600780610c8c610877565b6007811115610c9757fe5b14610ca157600080fd5b600160a060020a0333166000908152601060205260409020549150811515610cc857600080fd5b600160a060020a033316600090815260106020526040808220829055600e54730c7117e2341d2e3704a5be19e1569a96f249d751926366098d4f92869190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515610d4457600080fd5b6102c65a03f41515610d5557600080fd5b5050506040518051600e55507fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d3383604051600160a060020a03909216825260208201526040908101905180910390a1600160a060020a03331682156108fc0283604051600060405180830381858888f193505050501515610dd657600080fd5b5050565b601554600160a060020a031681565b600e5481565b60005433600160a060020a03908116911614610e0a57600080fd5b6000805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b60015481565b60005433600160a060020a03908116911614610e6257600080fd5b80421115610e6f57600080fd5b806007541115610e7e57600080fd5b60088190557fd34bb772c4ae9baa99db852f622773b31c7827e8ee818449fef20d30980bd3108160405190815260200160405180910390a150565b6000808080808080808080731a141dd6f804d121acca724bda518d646e5fa1aa63b655e1388c8380604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610f3d578082015183820152602001610f25565b50505050905090810190601f168015610f6a5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1515610f8757600080fd5b6102c65a03f41515610f9857600080fd5b50505060405180519550731a141dd6f804d121acca724bda518d646e5fa1aa90506316419aa78c60146000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561101f578082015183820152602001611007565b50505050905090810190601f16801561104c5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561106957600080fd5b6102c65a03f4151561107a57600080fd5b505050604051805170010000000000000000000000000000000090049450731a141dd6f804d121acca724bda518d646e5fa1aa905063d54dd8f98c60246000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156111155780820151838201526020016110fd565b50505050905090810190601f1680156111425780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561115f57600080fd5b6102c65a03f4151561117057600080fd5b505050604051805160e060020a90049350731a141dd6f804d121acca724bda518d646e5fa1aa905063d54dd8f98c60286000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156111fe5780820151838201526020016111e6565b50505050905090810190601f16801561122b5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561124857600080fd5b6102c65a03f4151561125957600080fd5b505050604051805160e060020a90049250731a141dd6f804d121acca724bda518d646e5fa1aa9050632e1eb7fe8c602c6000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156112e75780820151838201526020016112cf565b50505050905090810190601f1680156113145780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b151561133157600080fd5b6102c65a03f4151561134257600080fd5b5050506040518051959c949b50929950909750929550909350505050565b600354600160a060020a031681565b600d5481565b600654600a54101590565b60058061138b610877565b600781111561139657fe5b146113a057600080fd5b3415156113ac57600080fd5b600d54730c7117e2341d2e3704a5be19e1569a96f249d7516366098d4f90913460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561140e57600080fd5b6102c65a03f4151561141f57600080fd5b5050506040518051600d555050565b60005433600160a060020a0390811691161461144957600080fd5b601355565b600054600160a060020a031681565b6002546000908190600160a060020a031663313ce56782604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156114a957600080fd5b6102c65a03f115156114ba57600080fd5b5050506040518051600a0a9150839050730c7117e2341d2e3704a5be19e1569a96f249d751631d3b9edf868460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561152857600080fd5b6102c65a03f4151561153957600080fd5b5050506040518051905081151561154c57fe5b04949350505050565b600554600160a060020a031681565b60116020526000908152604090205481565b60006115806118ef565b84111561158f57506001611593565b5060005b949350505050565b600454600090600160a060020a03166382771c8e82604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561084b57600080fd5b60075481565b600f5460ff1681565b60005474010000000000000000000000000000000000000000900460ff1681565b60126020526000908152604090205460ff1681565b60005433600160a060020a0390811691161461164557600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561166e57600080fd5b6000805474ff000000000000000000000000000000000000000019169055565b60006116986118ef565b15905090565b600160a060020a0333166000908152601260205260408120548190670de0b6b3a764000090829081908190819081908190819060ff16156116ec576116e533611000611af0565b9850611851565b60028e6000604051602001526040518082805190602001908083835b602083106117275780518252601f199092019160209182019101611708565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561176957600080fd5b505060405180519050965061177d8e610eb9565b601554949a5092985090965094509250600160a060020a03166001888f8f8f6040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f115156117fb57600080fd5b505060206040510351600160a060020a03161461181757600080fd5b33600160a060020a031686600160a060020a031614151561183757600080fd5b611841348361145d565b905061184e338683611c2e565b98505b600160a060020a03331660009081526012602052604090205460ff1615156118d75733600160a060020a031660009081526010602052604090205461271063ffffffff86168a02049010156118a557600080fd5b33600160a060020a031660009081526010602052604090205461271063ffffffff85168a02049011156118d757600080fd5b50969c9b505050505050505050505050565b600c5481565b600254600080549091600160a060020a039081169163dd62ed3e911630846040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b151561084b57600080fd5b60005433600160a060020a0390811691161461197457600080fd5b600160a060020a03821660009081526012602052604090819020805460ff19168315151790557fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b60005433600160a060020a03908116911614611a0057600080fd5b600160a060020a0381161515611a1557600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614611a9b57600080fd5b600154600c541115611aac57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600b5481565b600254600160a060020a031681565b6000805474010000000000000000000000000000000000000000900460ff1615611b1957600080fd5b600354600b54600a54600954600254611c279488948894600160a060020a03928316946318a4155e9434949390920392909133911663313ce5676000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611b8a57600080fd5b6102c65a03f11515611b9b57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8816028152600481019590955260248501939093526044840191909152600160a060020a03166064830152608482015260a401602060405180830381600087803b1515611c0757600080fd5b6102c65a03f11515611c1857600080fd5b50505060405180519050611c2e565b9392505050565b60008054819074010000000000000000000000000000000000000000900460ff1615611c5957600080fd5b6002611c63610877565b6007811115611c6e57fe5b1415611ca057600160a060020a03851660009081526012602052604090205460ff161515611c9b57600080fd5b611cbc565b6003611caa610877565b6007811115611cb557fe5b1415610221575b5034821515611cca57600080fd5b600160a060020a0385166000908152601060205260409020541515611cf357600c805460010190555b600160a060020a03851660009081526010602052604080822054730c7117e2341d2e3704a5be19e1569a96f249d751926366098d4f92859190516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611d6a57600080fd5b6102c65a03f41515611d7b57600080fd5b5050506040518051600160a060020a0387166000908152601060209081526040808320939093556011905281812054730c7117e2341d2e3704a5be19e1569a96f249d75193506366098d4f9290918791516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611e0957600080fd5b6102c65a03f41515611e1a57600080fd5b5050506040518051600160a060020a03871660009081526011602052604080822092909255600a54730c7117e2341d2e3704a5be19e1569a96f249d75193506366098d4f9290918591516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611ea157600080fd5b6102c65a03f41515611eb257600080fd5b5050506040518051600a5550600954730c7117e2341d2e3704a5be19e1569a96f249d751906366098d4f908560006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515611f2057600080fd5b6102c65a03f41515611f3157600080fd5b505050604051805160095550600354600160a060020a031663f14ae17d8660006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b1515611f9657600080fd5b6102c65a03f11515611fa757600080fd5b505050604051805190501561203657600b54730c7117e2341d2e3704a5be19e1569a96f249d7516366098d4f90918360006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561201857600080fd5b6102c65a03f4151561202957600080fd5b5050506040518051600b55505b6120468184600a54600954611576565b1561205057600080fd5b61205a8584612101565b600554600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561208d57600080fd5b7f0396f60aaad038749091d273dc13aaabc63db6e2271c7bad442d5cf25cc4335085828587604051600160a060020a03909416845260208401929092526040808401919091526fffffffffffffffffffffffffffffffff90911660608301526080909101905180910390a150909392505050565b600254601454600160a060020a03918216916323b872dd9116848460006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561217457600080fd5b6102c65a03f1151561218557600080fd5b505050604051805190501515610dd657600080fd00a165627a7a723058201b963740e269ab1ff3e83081f17a2bd545177ff7670d9f0f623adb6a3f09bda80029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000097aeb5066e1a590e868b511457beb6fe99d329f50000000000000000000000006e44e4ee28aa26cfeffaccaceaf618ca5a81baff0000000000000000000000007bb187351421c3affda57c7a5132e304f73167c800000000000000000000000000000000000000000000000000000000387b6190000000000000000000000000000000000000000000000000000000005b37b71000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007bb187351421c3affda57c7a5132e304f73167c8
-----Decoded View---------------
Arg [0] : _token (address): 0x97AEB5066E1A590e868b511457BEb6FE99d329F5
Arg [1] : _pricingStrategy (address): 0x6e44E4ee28Aa26cFefFaccAcEaF618Ca5A81BAFf
Arg [2] : _multisigWallet (address): 0x7BB187351421C3AFFdA57C7a5132e304F73167c8
Arg [3] : _start (uint256): 947610000
Arg [4] : _end (uint256): 1530378000
Arg [5] : _minimumFundingGoal (uint256): 1
Arg [6] : _beneficiary (address): 0x7BB187351421C3AFFdA57C7a5132e304F73167c8
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000097aeb5066e1a590e868b511457beb6fe99d329f5
Arg [1] : 0000000000000000000000006e44e4ee28aa26cfeffaccaceaf618ca5a81baff
Arg [2] : 0000000000000000000000007bb187351421c3affda57c7a5132e304f73167c8
Arg [3] : 00000000000000000000000000000000000000000000000000000000387b6190
Arg [4] : 000000000000000000000000000000000000000000000000000000005b37b710
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 0000000000000000000000007bb187351421c3affda57c7a5132e304f73167c8
Libraries Used
BytesDeserializer : 0x1a141dd6f804d121acca724bda518d646e5fa1aaUnverifiedSafeMathLib : 0x0c7117e2341d2e3704a5be19e1569a96f249d751Unverified
Swarm Source
bzzr://1b963740e269ab1ff3e83081f17a2bd545177ff7670d9f0f623adb6a3f09bda8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 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.