Sponsored:   [Largest VC Funded] TEMCO, millions sold out in seconds. Join TEMCO's last presale at CoinBene!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 1270 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xba230ea8968a19ade1e08d3297dce101d409ebc3at txn 0x5349e5059af97eb92d6b42382977bf43fee0e10c2c0ecbe3752d3ff0701e498b
Token Balance:
 Latest 25 transactions from a total of 1270 transactions

TxHash Age From To Value [TxFee]
0x9945eaf1bb379aaab288265b38acbd3e99b527b60f66f2280e9ade220a6309f4166 days 19 hrs ago0x9deb222574963af172b8d0ab76ef47c26128f8a2  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.6839 Ether0.000043218
0xa5a356561e0186756f519378c03914dc36f0efd4212ae9736fb221ede4768181174 days 11 hrs ago0x75fd825bf7ff908fe91ee62ddbd2b1833a0817e8  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.5096 Ether0.000345744
0xde1c5c8ec6430b2814db5cc3d0d3cb4045fb7ca442c84a9c1fd16438fd33cd84208 days 13 hrs ago0xba230ea8968a19ade1e08d3297dce101d409ebc3  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.00180216
0x90518a919a8463c17a427693f70e5769faae33f8ae616a662a20d0c4a7ce5287216 days 2 hrs ago0x75fd825bf7ff908fe91ee62ddbd2b1833a0817e8  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.5096 Ether0.000345744
0x8b1d21e883a119062d72849aaf9524f54f52b8fd85bc48f0a062bf607d3b8544230 days 19 hrs ago0xfb2bf8ec1d3756ad52ea2600c0b92c91661460b5  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.000032644
0x4388d41e97264ed9a7929350b04b7b6f3687f7c03b69f55b9ec0c6f8c3a771c3238 days 16 hrs ago0x7f4241a39c92cbed636896d6c55b4c39ec1f1d2c  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.70245 Ether0.000034808
0xec9620fec0160e664c081292410d7d6e16776b0ed5b1935b4ccfa07b4b2c62e3238 days 16 hrs ago0x7f4241a39c92cbed636896d6c55b4c39ec1f1d2c  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.7021 Ether0.000034808
0xcab739484cbdd20628c32601407bef7a08ddaf4f6bcb625d50af860543a405f4238 days 21 hrs ago0x7f4241a39c92cbed636896d6c55b4c39ec1f1d2c  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.70175 Ether0.000034808
0x6268f713de070444a46ab6ec76bb80c148fa4964ee7fa01f96ca3e67f5a4c304239 days 1 hr ago0x7f4241a39c92cbed636896d6c55b4c39ec1f1d2c  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.7014 Ether0.000034808
0x6ef8829c4bc2eecf190e842522c4b321a8ecee3ebaad55019e34f2e61375b71d239 days 3 hrs ago0x7f4241a39c92cbed636896d6c55b4c39ec1f1d2c  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.70105 Ether0.000034808
0xfe0c50fd275de8b3a33de953bf2ad4b5e3afca4495f548fdf42d8b71d889db40239 days 3 hrs ago0x7f4241a39c92cbed636896d6c55b4c39ec1f1d2c  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.7007 Ether0.000049808
0x183d64edac17d897e294501139af4141b05dcc8f3e18e17750aaf7c5a062df12243 days 4 hrs ago0x4ac974c72be77c1be859942808277d58b27a01f1  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.70035 Ether0.000049808
0x2b0c2cf3e4e00edbc6a8758aae8ff9fa929f4c467f53eb08f58c42f8cfded90c244 days 53 mins ago0xaee1589e79d64721e7567db9262adecea5b508c9  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.69965 Ether0.000104424
0x5c5930325b3e7bd426eec8b5bcfd8ee9aae24304d571b62ff291a2adae80a368244 days 54 mins ago0xaee1589e79d64721e7567db9262adecea5b508c9  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.69965 Ether0.000104424
0x894ce614f62df430f351afc2e44214ed1d538e131186e98f2c0a5f971c5a43c7245 days 7 hrs ago0xe98c1fb29d029824109d2718e745648f5f90dd2f  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.6993 Ether0.000049808
0xa0220aecccba07dcb97bab595fbc260857f30bd01c996f61d6de23c6a0c42fbc246 days 12 hrs ago0x3e71ff906c276d2ff007412293f98bfdf9f03e5d  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.69895 Ether0.000049808
0xb1407ad669d3ea900ce512db1e6d2520396e4102d07f2ce5a502200de38ae9d2246 days 19 hrs ago0x4b79b4c323692c7a5fc0d924b28d19c3605dee3f  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.6986 Ether0.000034808
0xa36c4e072ed1872d3f899e23b8e5e633796dd4d58cb2786eedfab09ce4f9d425247 days 5 hrs ago0xfb2bf8ec1d3756ad52ea2600c0b92c91661460b5  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.000008161
0x3a4114652192fd43cd9bf6a9f5f6604fe657fced7d1955bdfb81abf922470e4f247 days 5 hrs ago0xfb2bf8ec1d3756ad52ea2600c0b92c91661460b5  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.000008161
0xc391d1bd4d37b658b049b1d940e114f053bb0e8f758eb3a883b901140b6021f4247 days 5 hrs ago0xfb2bf8ec1d3756ad52ea2600c0b92c91661460b5  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.000008161
0x23509314dca4cff3427215402805c9914851b89b4bbc0b002671e22086e6fb8f247 days 5 hrs ago0xfb2bf8ec1d3756ad52ea2600c0b92c91661460b5  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.000008161
0x4bfeb908abf53d0f451b014758721a0a5aa6035214eacd150bf06368e5d5472b247 days 6 hrs ago0xfb2bf8ec1d3756ad52ea2600c0b92c91661460b5  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0 Ether0.0000048966
0xdc5f832420a554f5f11849552eae98386f0729278508945c331a5e81d7c12621248 days 39 mins ago0x813074b9a3c964c51ac66b841c2577a3ce1062f6  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.69825 Ether0.000049808
0x8c7e0a7a029b20a3c177d70f71cf9d6a17bce764798aa77329a0239dcaf62185248 days 2 hrs ago0xb4be7b07492d6b09d84d1aa73063c5023d73d278  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.6979 Ether0.0002540208
0xf7c48b7c138ea0666e26ca8fe22f18223e9ec19c7647463280e13ff4a06270e5248 days 13 hrs ago0x4651c3555e2af798747b4c60397f0f9430921246  IN   0x4490f9807965c49a2471bd7b121a80f0b3861e5c0.69755 Ether0.0000139232
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xde1c5c8ec6430b2814db5cc3d0d3cb4045fb7ca442c84a9c1fd16438fd33cd845638554208 days 13 hrs ago0x4490f9807965c49a2471bd7b121a80f0b3861e5c0xba230ea8968a19ade1e08d3297dce101d409ebc3702.74395 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: PreSale
Compiler Text: v0.4.19+commit.c4cbbb05
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18;

/**
 * @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;
  }

}

contract PreSale is Ownable {
    uint256 constant public INCREASE_RATE = 350000000000000;
    uint256 constant public START_TIME = 1514228838;
    uint256 constant public END_TIME =   1524251238;

    uint256 public eggsSold;
    mapping (address => uint32) public eggs;

    bool private paused = false; 

    function PreSale() payable public {
    }

    event EggsPurchased(address indexed purchaser, uint256 value, uint32 quantity);
    
    event EggsRedeemed(address indexed sender, uint256 eggs);

    function bulkPurchageEgg() payable public {
        require(now > START_TIME);
        require(now < END_TIME);
        require(paused == false);
        require(msg.value >= (eggPrice() * 5 + INCREASE_RATE * 10));
        eggs[msg.sender] = eggs[msg.sender] + 5;
        eggsSold = eggsSold + 5;
        EggsPurchased(msg.sender, msg.value, 5);
    }
    
    function purchaseEgg() payable public {
        require(now > START_TIME);
        require(now < END_TIME);
        require(paused == false);
        require(msg.value >= eggPrice());

        eggs[msg.sender] = eggs[msg.sender] + 1;
        eggsSold = eggsSold + 1;
        
        EggsPurchased(msg.sender, msg.value, 1);
    }
    
    function redeemEgg(address targetUser) public returns(uint256) {
        require(paused == false);
        require(eggs[targetUser] > 0);

        EggsRedeemed(targetUser, eggs[targetUser]);

        var userEggs = eggs[targetUser];
        eggs[targetUser] = 0;
        return userEggs;
    }

    function eggPrice() view public returns(uint256) {
        return (eggsSold + 1) * INCREASE_RATE;
    }

    function withdrawal() onlyOwner public {
        owner.transfer(this.balance);
    }

    function pause() onlyOwner public {
        paused = true;
    }
    
    function resume() onlyOwner public {
        paused = false;
    }

    function isPaused () onlyOwner public view returns(bool) {
        return paused;
    }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"resume","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"eggPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"END_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"eggsSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"bulkPurchageEgg","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"isPaused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"purchaseEgg","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"INCREASE_RATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"START_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"eggs","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"targetUser","type":"address"}],"name":"redeemEgg","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"purchaser","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"quantity","type":"uint32"}],"name":"EggsPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"eggs","type":"uint256"}],"name":"EggsRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526000600360006101000a81548160ff021916908315150217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c7f8061006e6000396000f3006060604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063046f7da2146100e0578063305e3552146100f557806337ba682d1461011e578063407fc2e81461014757806357880042146101705780638456cb591461017a5780638da5cb5b1461018f578063b187bd26146101e4578063bce2b9a314610211578063c0b3aff31461021b578063d4e9329214610244578063ddaa26ad14610259578063e5cbcebd14610282578063e91bb26e146102db578063f2fde38b14610328575b600080fd5b34156100eb57600080fd5b6100f3610361565b005b341561010057600080fd5b6101086103d9565b6040518082815260200191505060405180910390f35b341561012957600080fd5b6101316103ee565b6040518082815260200191505060405180910390f35b341561015257600080fd5b61015a6103f6565b6040518082815260200191505060405180910390f35b6101786103fc565b005b341561018557600080fd5b61018d610582565b005b341561019a57600080fd5b6101a26105fa565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101ef57600080fd5b6101f761061f565b604051808215151515815260200191505060405180910390f35b610219610691565b005b341561022657600080fd5b61022e610807565b6040518082815260200191505060405180910390f35b341561024f57600080fd5b610257610812565b005b341561026457600080fd5b61026c6108e7565b6040518082815260200191505060405180910390f35b341561028d57600080fd5b6102b9600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506108ef565b604051808263ffffffff1663ffffffff16815260200191505060405180910390f35b34156102e657600080fd5b610312600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610912565b6040518082815260200191505060405180910390f35b341561033357600080fd5b61035f600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610afe565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103bc57600080fd5b6000600360006101000a81548160ff021916908315150217905550565b600066013e52b9abe000600180540102905090565b635ada3a6681565b60015481565b635a414c664211151561040e57600080fd5b635ada3a664210151561042057600080fd5b60001515600360009054906101000a900460ff16151514151561044257600080fd5b600a66013e52b9abe0000260056104576103d9565b0201341015151561046757600080fd5b6005600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1601600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055506005600154016001819055503373ffffffffffffffffffffffffffffffffffffffff167f919bf6993757ce64c5d6f824afd385ebda5a8163923eafda45c6305819ba74ce346005604051808381526020018263ffffffff1681526020019250505060405180910390a2565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105dd57600080fd5b6001600360006101000a81548160ff021916908315150217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561067c57600080fd5b600360009054906101000a900460ff16905090565b635a414c66421115156106a357600080fd5b635ada3a66421015156106b557600080fd5b60001515600360009054906101000a900460ff1615151415156106d757600080fd5b6106df6103d9565b34101515156106ed57600080fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1601600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff16021790555060018054016001819055503373ffffffffffffffffffffffffffffffffffffffff167f919bf6993757ce64c5d6f824afd385ebda5a8163923eafda45c6305819ba74ce346001604051808381526020018263ffffffff1681526020019250505060405180910390a2565b66013e52b9abe00081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561086d57600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015156108e557600080fd5b565b635a414c6681565b60026020528060005260406000206000915054906101000a900463ffffffff1681565b60008060001515600360009054906101000a900460ff16151514151561093757600080fd5b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1611151561099b57600080fd5b8273ffffffffffffffffffffffffffffffffffffffff167fdfbd5c69a218c351a8acaf30330b721bdf04f3b767073cfe7656a39cf6ce56cb600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16604051808263ffffffff16815260200191505060405180910390a2600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055508063ffffffff16915050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b5957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610b9557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058205951cd91fb234c2785fd63a0e64090e2f9e405e2f141b9e58ba1f3958414f5770029

   Swarm Source:
bzzr://5951cd91fb234c2785fd63a0e64090e2f9e405e2f141b9e58ba1f3958414f577

 

View All
Block Age transaction Difficulty GasUsed 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.