Contract 0x5535a72556727c221c567e0fc4208c5a99dba1cc

 

TxHash Block Age From To Value [TxFee]
0x91e457d8f730e85c41440fc0a044de4a1e261fccad67c7837cc24a8073f0841a4582367461 days 15 hrs ago0x1d4170413debd9cc71f249b3fcedb61ffb84acb0 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0 Ether0.00021878
0x63c18e2270787ec154a552481c48988d1a843ffaa2d4995b89a7d68bc5281f1c4413275488 days 21 hrs ago0xa977aadc92473abe464bef836e57d4203ccb2608 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0 Ether0.000360776
0x18e1921cd1b316c98591865a91f97338ed58a5b379b72d5bc1813acb68a8a8944413167488 days 21 hrs ago0x185ce939be187707f20a2984a927d8ca3f16f06b IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc18.780805855 Ether0.001468425
0xc248123985047a6c94bdcfe65267324e1acef55853d2a095754dfb246c3abad24412674488 days 23 hrs ago0x1d09a61a49cd49f758fbc73529370429512eeb25 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.947455495 Ether0.001468425
0x49c18d13c27aa85b28fd820167dea3c34a8faf51e99a279e12257558a510fdeb4412247489 days 1 hr ago0x877957faa0f0d006b8a3e02808bacf9c1d97914b IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.08 Ether0.001468425
0x1562c2fcd1fa26380db1dc4a7d355bb73d4ab89cf60903389239d60f383a29d04412236489 days 1 hr ago0xf236ad86c6e1e98e79e96515a1d6f64dd54cddef IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.01 Ether0.001468425
0xbe14f0e6e3db038eac64a6d681312f28f9556bc8973b7c30f86e35efdf85453b4412170489 days 1 hr ago0x877957faa0f0d006b8a3e02808bacf9c1d97914b IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.002 Ether0.000441
0x6362c351636ae8281e30c4397c0361e7792b4069409e5d8ff42dd00fd21f40254410032489 days 9 hrs ago0x4d0c1324fcf28cf7ff4fdd3ed53187acda869d84 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc5 Ether0.001468425
0xfa73a726c5c4b1c371848b7a51784e8b400e86bf1fb774ad3c619b557d0fcbd54407422489 days 19 hrs ago0x1566e2f9bc6d04412bdc6f9901cf5983f71453cd IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.925 Ether0.001468425
0x47142f46cdcc463f191f26d821eef9472cf238ef1fbf43bbcc6d2fb654375b7b4406171490 days 29 mins ago0x923839b305077359e9b675927d6b036dba00f445 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.5 Ether0.001468425
0x4097cb0513fc1316b674c0355b126c72f7e0afa275e0ea919a99181d915c76044405881490 days 1 hr ago0xfb16e21a3a120a83a215995c02190d2a186d1921 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc2.14 Ether0.001468425
0xc76081e14043fe8031c8ec8e504d78804998eb192c29ee6899b060e7a2b3128f4404051490 days 8 hrs ago0xbbded872a7e36692360930dc59c477f6da903ced IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc1.248531575 Ether0.001468425
0x4a4081076a46a962c7c067d3a75bdfaa6300fe1949743890e12fb9dae5c273334402933490 days 12 hrs ago0xe45eecbbcc59bd5565eb50520e569693e2d65b30 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc9 Ether0.001468425
0x44bffc282844e0d6be057ceb5c91a598ceec6a7385d28dc64d766576890298044400481490 days 22 hrs ago0x69844f12cfaf0905bd21aa3a738def0bd6e5af1a IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc1.692401495 Ether0.001468425
0xcd8b69905009da55049428bfc4c4e67657438f9691b0d31bbe958c001a7e3a8a4397883491 days 8 hrs ago0x47e4f7a77eef2dfc5fe572ee7ff96febd81202ad IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.86 Ether0.001468425
0xe94e501d1289797e7f934618f49631fa2f6d02a2f64f13bbbb6a13c07195d47d4397534491 days 9 hrs ago0x6521407a8c75b6bf85fc408565aab0a515dc83b8 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc1 Ether0.001468425
0xf312493d50fbd945dc6f7d4cf13a927323086c3d04033b883e1fa2567d6d63954395702491 days 16 hrs ago0x98e0496775b04f3bd49a4d4b20064337bd933ae8 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc2 Ether0.001468425
0xfe08a7f71453c6df4c8c59a01b89842dd3e857b7771a33dc7f51e0131f0119ff4395641491 days 16 hrs ago0x98e0496775b04f3bd49a4d4b20064337bd933ae8 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc2 Ether0.00063
0x02fc305e3f2517dfaa9f7a8faeec171ab0562a12c5ab0d8248c87d175ce3eec34381546493 days 23 hrs ago0xc5db6eecab9ea3cb3966e400238d9989bbed4a24 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc4.5 Ether0.001468425
0x5fca78bb6c11806b99d8abb332dcf2960c0db543f59d877f70707277caba66e54378630494 days 10 hrs ago0xa4ea3f94320ae78f94976ad5cd9f10b988c77837 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc7.98 Ether0.001468425
0x2ee496d166dc2690b6824ebd4e45f567043987e14a4c82ed6f0e147cb73dbd994349717502 days 23 hrs ago0xa59a64b7eb32eff23ee3c81fd5db418782d35a62 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.066 Ether0.001937466397
0xcf591e7837b04d3a128594757fec851393c13c335413410f6ea628af34bef3804343261505 days 5 hrs ago0xee0037843195c79d1bb6eee782a7d19b613768da IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc2 Ether0.001468425
0xbb86211baed8ddae1abaecf1a6820ca49112fc59d3b04fe07af8b2e6fae823a24215304543 days 23 hrs ago0xdcbf34f9fd53cc278121090b3f697a0672486ad6 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc1.95088208 Ether0.001468425
0x6ab5bc49af968e7a4cd9071d3f948c3e5bcfd2f74e53ae002f628252372131724196147549 days 6 hrs ago0x1d7704bf4169cc8a9609c4d56cd05cc91bc51a78 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc0.01 Ether0.0013985
0xbdf273837ec8aca825bbea8da3558c5e2f6ce48266f6db9715695e37989b21e04196143549 days 6 hrs ago0xe10deb660162b62f7886c0668656f94d18c26051 IN  0x5535a72556727c221c567e0fc4208c5a99dba1cc8.53697344 Ether0.001468425
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: PembiCoinICO
Compiler Version: v0.4.14+commit.c2215d46
Optimization Enabled: No
Runs (Optimizer):  200


Contract Source Code
pragma solidity 0.4.14;

// -----------------------------------------------------------------------------
// PembiCoin crowdsale contract.
// Copyright (c) 2017 Pembient, Inc.
// The MIT License.
// -----------------------------------------------------------------------------

contract PembiCoinICO {

    enum State {Active, Idle, Successful, Failed}

    State public currentState = State.Idle;
    uint256 public contributorCount = 0;

    address public owner;

    mapping(uint256 => address) private contributors;
    mapping(address => uint256) private amounts;

    event Transferred(
        address indexed _from,
        address indexed _to,
        uint256 _amount
    );

    event Transitioned(
        address indexed _subject,
        address indexed _object,
        State _oldState,
        State _newState
    );

    function PembiCoinICO() public {
        owner = msg.sender;
    }

    function() external payable inState(State.Active) {
        require(msg.value > 0);
        if (amounts[msg.sender] == 0) {
            contributors[contributorCount] = msg.sender;
            contributorCount = safeAdd(contributorCount, 1);
        }
        amounts[msg.sender] = safeAdd(amounts[msg.sender], msg.value);
        Transferred(msg.sender, address(this), msg.value);
    }

    function refund() external inState(State.Failed) {
        uint256 amount = amounts[msg.sender];
        assert(amount > 0 && amount <= this.balance);
        amounts[msg.sender] = 0;
        msg.sender.transfer(amount);
        Transferred(address(this), msg.sender, amount);
    }

    function payout() external inState(State.Successful) onlyOwner {
        uint256 amount = this.balance;
        owner.transfer(amount);
        Transferred(address(this), owner, amount);
    }

    function setActive() external inState(State.Idle) onlyOwner {
        State oldState = currentState;
        currentState = State.Active;
        Transitioned(msg.sender, address(this), oldState, currentState);
    }

    function setIdle() external inState(State.Active) onlyOwner {
        State oldState = currentState;
        currentState = State.Idle;
        Transitioned(msg.sender, address(this), oldState, currentState);
    }

    function setSuccessful() external inState(State.Idle) onlyOwner {
        State oldState = currentState;
        currentState = State.Successful;
        Transitioned(msg.sender, address(this), oldState, currentState);
    }

    function setFailed() external inState(State.Idle) onlyOwner {
        State oldState = currentState;
        currentState = State.Failed;
        Transitioned(msg.sender, address(this), oldState, currentState);
    }

    function getContribution(uint256 _i)
        external
        constant
        returns (address o_contributor, uint256 o_amount)
    {
        require(_i >= 0 && _i < contributorCount);
        o_contributor = contributors[_i];
        o_amount = amounts[o_contributor];
    }

    function safeAdd(uint256 a, uint256 b)
        private
        constant
        returns (uint256 o_sum)
    {
        o_sum = a + b;
        assert(o_sum >= a && o_sum >= b);
    }

    modifier inState(State _state) {
        require(_state == currentState);
        _;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
}

Contract ABI
[{"constant":true,"inputs":[],"name":"currentState","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"setFailed","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"payout","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"setActive","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"setSuccessful","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"setIdle","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_i","type":"uint256"}],"name":"getContribution","outputs":[{"name":"o_contributor","type":"address"},{"name":"o_amount","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"contributorCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Transferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_subject","type":"address"},{"indexed":true,"name":"_object","type":"address"},{"indexed":false,"name":"_oldState","type":"uint8"},{"indexed":false,"name":"_newState","type":"uint8"}],"name":"Transitioned","type":"event"}]

Contract Creation Code
606060405260016000806101000a81548160ff0219169083600381111561002257fe5b02179055506000600155341561003757600080fd5b5b33600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b610e198061008a6000396000f300606060405236156100a2576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630c3f6acf1461028c578063146901db146102c3578063590e1ae3146102d857806363bd1d4a146102ed578063760a8c2a146103025780638ad14ee6146103175780638da5cb5b1461032c578063a494817b14610381578063cef4225414610396578063ecfd892814610400575b5b60008060009054906101000a900460ff1660038111156100bf57fe5b8160038111156100cb57fe5b1415156100d757600080fd5b6000341115156100e657600080fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610196573360036000600154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061018f6001546001610429565b6001819055505b6101df600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205434610429565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd1ba4ac2e2a11b5101f6cb4d978f514a155b421e8ec396d2d9abaf0bb02917ee346040518082815260200191505060405180910390a35b5b50005b341561029757600080fd5b61029f61044f565b604051808260038111156102af57fe5b60ff16815260200191505060405180910390f35b34156102ce57600080fd5b6102d6610461565b005b34156102e357600080fd5b6102eb6105c5565b005b34156102f857600080fd5b61030061075c565b005b341561030d57600080fd5b6103156108f8565b005b341561032257600080fd5b61032a610a5c565b005b341561033757600080fd5b61033f610bc0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561038c57600080fd5b610394610be6565b005b34156103a157600080fd5b6103b76004808035906020019091905050610d49565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b341561040b57600080fd5b610413610de7565b6040518082815260200191505060405180910390f35b600081830190508281101580156104405750818110155b151561044857fe5b5b92915050565b6000809054906101000a900460ff1681565b600060016000809054906101000a900460ff16600381111561047f57fe5b81600381111561048b57fe5b14151561049757600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156104f357600080fd5b6000809054906101000a900460ff16915060036000806101000a81548160ff0219169083600381111561052257fe5b02179055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe9ed7c8788612648049556b046b8ca806767063db36cb7f1b65ab87df0bd47c6846000809054906101000a900460ff166040518083600381111561059657fe5b60ff1681526020018260038111156105aa57fe5b60ff1681526020019250505060405180910390a35b5b5b5050565b600060036000809054906101000a900460ff1660038111156105e357fe5b8160038111156105ef57fe5b1415156105fb57600080fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054915060008211801561066457503073ffffffffffffffffffffffffffffffffffffffff16318211155b151561066c57fe5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015156106f157600080fd5b3373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fd1ba4ac2e2a11b5101f6cb4d978f514a155b421e8ec396d2d9abaf0bb02917ee846040518082815260200191505060405180910390a35b5b5050565b600060026000809054906101000a900460ff16600381111561077a57fe5b81600381111561078657fe5b14151561079257600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107ee57600080fd5b3073ffffffffffffffffffffffffffffffffffffffff16319150600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050151561086a57600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fd1ba4ac2e2a11b5101f6cb4d978f514a155b421e8ec396d2d9abaf0bb02917ee846040518082815260200191505060405180910390a35b5b5b5050565b600060016000809054906101000a900460ff16600381111561091657fe5b81600381111561092257fe5b14151561092e57600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561098a57600080fd5b6000809054906101000a900460ff16915060008060006101000a81548160ff021916908360038111156109b957fe5b02179055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe9ed7c8788612648049556b046b8ca806767063db36cb7f1b65ab87df0bd47c6846000809054906101000a900460ff1660405180836003811115610a2d57fe5b60ff168152602001826003811115610a4157fe5b60ff1681526020019250505060405180910390a35b5b5b5050565b600060016000809054906101000a900460ff166003811115610a7a57fe5b816003811115610a8657fe5b141515610a9257600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610aee57600080fd5b6000809054906101000a900460ff16915060026000806101000a81548160ff02191690836003811115610b1d57fe5b02179055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe9ed7c8788612648049556b046b8ca806767063db36cb7f1b65ab87df0bd47c6846000809054906101000a900460ff1660405180836003811115610b9157fe5b60ff168152602001826003811115610ba557fe5b60ff1681526020019250505060405180910390a35b5b5b5050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900460ff166003811115610c0357fe5b816003811115610c0f57fe5b141515610c1b57600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c7757600080fd5b6000809054906101000a900460ff16915060016000806101000a81548160ff02191690836003811115610ca657fe5b02179055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe9ed7c8788612648049556b046b8ca806767063db36cb7f1b65ab87df0bd47c6846000809054906101000a900460ff1660405180836003811115610d1a57fe5b60ff168152602001826003811115610d2e57fe5b60ff1681526020019250505060405180910390a35b5b5b5050565b60008060008310158015610d5e575060015483105b1515610d6957600080fd5b6003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b915091565b600154815600a165627a7a72305820ac21cc63352a00c6595ed5f97ff671c454ebe11ffd06d67b9095acdb0b1bee080029


   Swarm Source:
bzzr://ac21cc63352a00c6595ed5f97ff671c454ebe11ffd06d67b9095acdb0b1bee08
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.