Sponsored:   Color Platform: Decentralized App Store - Special Airdrop For Everyone (~17 Sep), Register NOW!
Contract Overview
Balance: 6.04 Ether
Ether Value: $1,253.36 (@ $207.51/ETH)
Transactions: 11 txns
 Latest 11 txns

TxHash Age From To Value [TxFee]
0x9f1a6cb29da23f8923c961939c6a0e27862bd366d898bd0d18e949999d45d7f0182 days 1 hr ago0x49416cb516bfcb2a0810b251872059b0131215eb  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43835 Ether0.000351812
0x31b61d47219b74cfac6c2d6235c73b2fdc81c6325e80b5d3281229b4a45c2979321 days 12 hrs ago0xdb532c361345611c1aca94f4ace8a846f8262709  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830.03 Ether0.00175906
0xa86fa42689543c33d746682b35e957cda206251925b2bcbf012159b2290274b4366 days 18 hrs ago0xd66503579005dff944628bf4df0720e4c8c7d820  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43831 Ether0.00527718
0x9a6b2b92cd152fa509d8e8d436ee81661982541f032c596cf7d391898a1c28c5375 days 13 hrs ago0xdb532c361345611c1aca94f4ace8a846f8262709  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830.01 Ether0.00263859
0x059aa7824f0629ae7f0d1f0b1cb6cd283b7b57e4a2013e9142b7ee1b84d9f34c431 days 21 hrs ago0xc3969d043c6061d90dfe9c0caffe949cccfc8c11  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830 Ether0.000581775962
0x1b1c461c9ecfeb659bbf36f722f5d7ed28777805b2a0ebabe50449cacd305070433 days 23 hrs ago0xc3969d043c6061d90dfe9c0caffe949cccfc8c11  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830 Ether0.0063
0x3f5096489aa6f59e2124d91dc666b5965f1e05931548fef151d662a795cd8cc8435 days 15 hrs ago0xc3969d043c6061d90dfe9c0caffe949cccfc8c11  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830 Ether0.00060188
0xf3dcb3c7acb35a74e2f1c5c175b0dda0d3620fb2bd016fc4457af3f46663cd44435 days 15 hrs ago0xc3969d043c6061d90dfe9c0caffe949cccfc8c11  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830 Ether0.0005942
0x28c2cecc339ec665fddeca67e64aa59c0585d18b199bfec44ad15b8cb8bf83c2435 days 15 hrs ago0x592d643454037cef3cd8420302fa90fbbe05ca9e  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830 Ether0.006
0xbc7401390ff3ab58db137aa82a1b33d454f16d4a5d71fac9810b9fa510ee58ad435 days 15 hrs ago0xc3969d043c6061d90dfe9c0caffe949cccfc8c11  IN   0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830.015 Ether0.00205906
0xc9c44ca24c139aee5f0b166a87f7038663fa588fe418f38a2931cca929387feb435 days 15 hrs ago0xc3969d043c6061d90dfe9c0caffe949cccfc8c11  IN    Contract Creation0 Ether0.0120141
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0x3f5096489aa6f59e2124d91dc666b5965f1e05931548fef151d662a795cd8cc84007796435 days 15 hrs ago0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830xc3969d043c6061d90dfe9c0caffe949cccfc8c110.014999999999999766 Ether
0xf3dcb3c7acb35a74e2f1c5c175b0dda0d3620fb2bd016fc4457af3f46663cd444007791435 days 15 hrs ago0xd111bd7ad596ed9c78ad8fdecc6e23aca63b43830xc3969d043c6061d90dfe9c0caffe949cccfc8c11234 wei
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: ZENOSEarlyPurchase
Compiler Text: v0.4.14-nightly.2017.7.10+commit.6fa5d47f
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.7;

contract AbstractZENOSCrowdsale {
    function crowdsaleStartingBlock() constant returns (uint256 startingBlock) {}
}

/// @title EarlyPurchase contract - Keep track of purchased amount by Early Purchasers
/// Project by ZENOS Team (http://www.thezenos.com/)
/// This smart contract developed by Starbase - Token funding & payment Platform for innovative projects <support[at]starbase.co>

contract ZENOSEarlyPurchase {
    /*
     *  Properties
     */
    string public constant PURCHASE_AMOUNT_UNIT = 'ETH';    // Ether
    address public owner;
    EarlyPurchase[] public earlyPurchases;
    uint public earlyPurchaseClosedAt;

    /*
     *  Types
     */
    struct EarlyPurchase {
        address purchaser;
        uint amount;        // Amount in Wei( = 1/ 10^18 Ether)
        uint purchasedAt;   // timestamp
    }

    /*
     *  External contracts
     */
    AbstractZENOSCrowdsale public zenOSCrowdsale;


    /*
     *  Modifiers
     */
    modifier onlyOwner() {
        if (msg.sender != owner) {
            throw;
        }
        _;
    }

    modifier onlyBeforeCrowdsale() {
        if (address(zenOSCrowdsale) != 0 &&
            zenOSCrowdsale.crowdsaleStartingBlock() > 0)
        {
            throw;
        }
        _;
    }

    modifier onlyEarlyPurchaseTerm() {
        if (earlyPurchaseClosedAt > 0) {
            throw;
        }
        _;
    }

    /// @dev Contract constructor function
    function ZENOSEarlyPurchase() {
        owner = msg.sender;
    }

    /*
     *  Contract functions
     */
    /// @dev Returns early purchased amount by purchaser's address
    /// @param purchaser Purchaser address
    function purchasedAmountBy(address purchaser)
        external
        constant
        returns (uint amount)
    {
        for (uint i; i < earlyPurchases.length; i++) {
            if (earlyPurchases[i].purchaser == purchaser) {
                amount += earlyPurchases[i].amount;
            }
        }
    }

    /// @dev Returns total amount of raised funds by Early Purchasers
    function totalAmountOfEarlyPurchases()
        constant
        returns (uint totalAmount)
    {
        for (uint i; i < earlyPurchases.length; i++) {
            totalAmount += earlyPurchases[i].amount;
        }
    }

    /// @dev Returns number of early purchases
    function numberOfEarlyPurchases()
        external
        constant
        returns (uint)
    {
        return earlyPurchases.length;
    }

    /// @dev Append an early purchase log
    /// @param purchaser Purchaser address
    /// @param amount Purchase amount
    /// @param purchasedAt Timestamp of purchased date
    function appendEarlyPurchase(address purchaser, uint amount, uint purchasedAt)
        internal
        onlyBeforeCrowdsale
        onlyEarlyPurchaseTerm
        returns (bool)
    {

        if (purchasedAt == 0 || purchasedAt > now) {
            throw;
        }

        earlyPurchases.push(EarlyPurchase(purchaser, amount, purchasedAt));
        return true;
    }

    /// @dev Close early purchase term
    function closeEarlyPurchase()
        external
        onlyOwner
        returns (bool)
    {
        earlyPurchaseClosedAt = now;
    }

    /// @dev Setup function sets external crowdsale contract's address
    /// @param zenOSCrowdsaleAddress Token address
    function setup(address zenOSCrowdsaleAddress)
        external
        onlyOwner
        returns (bool)
    {
        if (address(zenOSCrowdsale) == 0) {
            zenOSCrowdsale = AbstractZENOSCrowdsale(zenOSCrowdsaleAddress);
            return true;
        }
        return false;
    }

    function withdraw(uint withdrawalAmount) onlyOwner {
          if(!owner.send(withdrawalAmount)) throw;  // send collected ETH to ZENOS team
    }

    function transferOwnership(address newOwner) onlyOwner {
        owner = newOwner;
    }

    /// @dev By sending Ether to the contract, early purchase will be recorded.
    function () payable {
        appendEarlyPurchase(msg.sender, msg.value, block.timestamp);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"earlyPurchases","outputs":[{"name":"purchaser","type":"address"},{"name":"amount","type":"uint256"},{"name":"purchasedAt","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"earlyPurchaseClosedAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"withdrawalAmount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfEarlyPurchases","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"purchaser","type":"address"}],"name":"purchasedAmountBy","outputs":[{"name":"amount","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"zenOSCrowdsaleAddress","type":"address"}],"name":"setup","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"closeEarlyPurchase","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalAmountOfEarlyPurchases","outputs":[{"name":"totalAmount","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"zenOSCrowdsale","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"PURCHASE_AMOUNT_UNIT","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b5b60008054600160a060020a03191633600160a060020a03161790555b5b6107c68061003c6000396000f300606060405236156100b75763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632288fad681146100cc57806325bae118146101185780632e1a7d4d1461013d5780633f5174df146101555780635aa3d2b01461017a57806366d38203146101ab5780638da5cb5b146101de578063ae4cc7571461020d578063d7a14a0514610234578063f0c7131814610259578063f2fde38b14610288578063f974a1a2146102a9575b6100ca5b6100c6333442610334565b505b565b005b34156100d757600080fd5b6100e2600435610495565b6040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390f35b341561012357600080fd5b61012b6104d2565b60405190815260200160405180910390f35b341561014857600080fd5b6100ca6004356104d8565b005b341561016057600080fd5b61012b61052b565b60405190815260200160405180910390f35b341561018557600080fd5b61012b600160a060020a0360043516610532565b60405190815260200160405180910390f35b34156101b657600080fd5b6101ca600160a060020a03600435166105b4565b604051901515815260200160405180910390f35b34156101e957600080fd5b6101f161061c565b604051600160a060020a03909116815260200160405180910390f35b341561021857600080fd5b6101ca61062b565b604051901515815260200160405180910390f35b341561023f57600080fd5b61012b610650565b60405190815260200160405180910390f35b341561026457600080fd5b6101f1610694565b604051600160a060020a03909116815260200160405180910390f35b341561029357600080fd5b6100ca600160a060020a03600435166106a3565b005b34156102b457600080fd5b6102bc6106eb565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102f95780820151818401525b6020016102e0565b50505050905090810190601f1680156103265780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600354600090600160a060020a0316158015906103cc5750600354600090600160a060020a0316635bfdb8b282604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156103af57600080fd5b6102c65a03f115156103c057600080fd5b50505060405180519050115b156103d657600080fd5b600060025411156103e657600080fd5b8115806103f257504282115b156103fc57600080fd5b6001805480820161040d8382610722565b916000526020600020906003020160005b60606040519081016040908152600160a060020a03891682526020820188905281018690529190508151815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03919091161781556020820151816001015560408201518160020155505050600190505b5b5b9392505050565b60018054829081106104a357fe5b906000526020600020906003020160005b5080546001820154600290920154600160a060020a03909116925083565b60025481565b60005433600160a060020a039081169116146104f357600080fd5b600054600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156100c657600080fd5b5b5b50565b6001545b90565b6000805b6001548110156105ad5782600160a060020a031660018281548110151561055957fe5b906000526020600020906003020160005b5054600160a060020a031614156105a457600180548290811061058957fe5b906000526020600020906003020160005b5060010154820191505b5b600101610536565b5b50919050565b6000805433600160a060020a039081169116146105d057600080fd5b600354600160a060020a0316151561061257506003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556001610616565b5060005b5b919050565b600054600160a060020a031681565b6000805433600160a060020a0390811691161461064757600080fd5b426002555b5b90565b6000805b60015481101561068f57600180548290811061066c57fe5b906000526020600020906003020160005b5060010154820191505b600101610654565b5b5090565b600354600160a060020a031681565b60005433600160a060020a039081169116146106be57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60408051908101604052600381527f4554480000000000000000000000000000000000000000000000000000000000602082015281565b81548183558181151161074e5760030281600302836000526020600020918201910161074e9190610754565b5b505050565b61052f91905b8082111561068f57805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201819055600282015560030161075a565b5090565b905600a165627a7a723058209541ba99cbc4d056fc53a33cf4b3f9456e0177bee6f19bd725fa06727d1854140029

   Swarm Source:
bzzr://9541ba99cbc4d056fc53a33cf4b3f9456e0177bee6f19bd725fa06727d185414

 

View All
Block Age transaction Difficulty Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.