Sponsored:   Ubex.com - World roadshow: Seoul Sep 17-19, Singapore Sep 19-20, Dubai 18-23. Meet us!.
Contract Overview
Balance: 5.866727728392240575 Ether
Ether Value: $1,220.10 (@ $207.97/ETH)
Transactions: 2497 txns
 Latest 25 txns From a total of 2497 Transactions
(+1 PendingTxn)

TxHash Age From To Value [TxFee]
0x7ed727bc1dd33e26efcd59f3577fd82f1b7b658169a2313674951d7338f157ec(pending)0x9fa40946401e4c8a92cd45c74c5595db0012e783  IN  0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether(Pending)
0xb60cfdf25923dc27823ceddac3a8536563ecac50b02177f46027e8f69e05709c13 mins ago0xf8266548e84114e053d4c9b9105094661161498f  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000279633
0x766dcee5a6043e7d752446095801103503e7ffc1777e52d407647a8e8da4e7941 hr 6 mins ago0x93811dabfbee9736035025cba91491d7747cfd47  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000307518
0x8824a9584a48022e642994de3b19f0254f330f4e673469122d048f70fcde4c5d1 hr 29 mins ago0x081591764a13e72aeb6bed098e7da34063ea8ac4  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000256265
0xea3efcc227c5aff64610948ce63e65aa1b9b9eafeba5e0fd752b3f173d0abcef2 hrs 5 mins ago0x2845a83d2a6cb264a5e35103ef10472746f43c4d  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00030744
0x7ede9e5f72c0710e68b4d6cc667bdf3e48a00c51979a70be906823e81ed457492 hrs 5 mins ago0x5409e9e2f6cc8340d307fa15e0728adad54d6e8c  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000439254
0x9baafa5ac8d967d6922926e595b1ee9985e08bcd9072257f25749d1dbdbf34f02 hrs 36 mins ago0xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000142716
0x9b65b95fe67f21066b60255952dc81d2223f9dcb74cd02b0b0cb6deac74270e82 hrs 37 mins ago0xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000523881
0x86640e6cfd38da20d5eaa496e442c181d0b63b612af92a7460883dd99dd91e862 hrs 47 mins ago0x2ca4f41f32093dd8faea49a63dab073123087d2c  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000300549784
0xc87792ffe2c2700b53843549f8f5e26f82ef6e3b15eb5d70aac40b9acea0eb5b2 hrs 48 mins ago0x7aab41a2b1e8d9195b50143e32bef20b5eacfd91  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000119451
0x86a25998ec27c9bf3a7724fcc5812bb71f68451020d76580e817e4867a1b2d383 hrs 34 mins ago0xc69325fe2449fbdc064018b0c0ca246e7067db54  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000276696
0xc035581cbe64526903c7d95005b212b0182456badff8016061b7d6582b6176354 hrs ago0x20492283bf49b56a7d3067783fab372933808578  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000328902
0x1ba7810df4cf4a394f20f0b2661621a42dc29b48fd52f83b144163673db34d7e4 hrs 4 mins ago0x9dbe0db82aefa66d854855205e78545f31003858  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000307518
0x647d9f78176b319a5928e4cdad29dd4312f7f6028ead47413ed2252cdb13c6954 hrs 24 mins ago0x360bbad1120b0abf63573e2e21b6727e07d1bf18  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000345234
0x93d7cd5f9187eaebbe69f44471ee4c3d5e1021932dc1f548cd2b2860dcafefa84 hrs 31 mins ago0xd1692f1c6b50d299993363be1c869e3e64842732  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000349254
0xa9ba25d1c59cfeabfa7f9e45c00dc268c8eda779475999defef452fde928b4004 hrs 36 mins ago0x360bbad1120b0abf63573e2e21b6727e07d1bf18  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000349254
0x154a2efef23b27de78524719a0ec806624f62876bc517c1b99a4407d24af770e4 hrs 44 mins ago0x58e90f6e19563ce82c4a0010cece699b3e1a6723  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00038381
0x721fa22525052605800dbfd450cdebca11dcae702ea88695dba2d4d75d75f2014 hrs 44 mins ago0x8bcdaeeb1dd2f7b8fa6f0939051c70cc2a4a7553  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.001523319
0xca2b5706749f25fe70ff13ef0c8e1b968164897be8fdbca25c071d8a9d245e324 hrs 49 mins ago0xa9ffaaadd88a819bd76a4d679e833bbd32755ade  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.0002562
0x3773ac72cfb67b2801d2e3300432bbcc2112c6b529e0026c6d83bd332cc58ee95 hrs 5 mins ago0xe06e5e93c1f1fce9300ad17658e8bab8b6208516  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00032898
0xf786b72cafbeab51135d30d96b035f9fd3f16c4f81273c382792f3875a815aca5 hrs 8 mins ago0xecbf5a8947e63d8e6760f3fd5e413983ef595b71  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000242963
0x7e54b6359827e4ad7b2764c7f2ae668087499f9f8e56f45bedc879be041401b25 hrs 8 mins ago0x8bcdaeeb1dd2f7b8fa6f0939051c70cc2a4a7553  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000512463
0xca5c4ca32794e5b6d0529e92bf552fd6d101b37d71d4ee8dc9623f5793e9711e5 hrs 57 mins ago0x5100f9a8580c4a6d5b67790f796ff96326477e30  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000307518
0xa215199cf74f62d54e4a71910107bbc015c245ad4ca2fc6573bb2a4f8929e3a86 hrs 10 mins ago0xf8266548e84114e053d4c9b9105094661161498f  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000279633
0xae4af626992d9e54f91fd317c26cb32df03e82bf148dabaaab249e8ef65bc16f6 hrs 11 mins ago0xf8266548e84114e053d4c9b9105094661161498f  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000279633
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click Here To View More View All
ParentTxHash Block Age From To Value
0xb60cfdf25923dc27823ceddac3a8536563ecac50b02177f46027e8f69e05709c635567413 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.008011160479003345 Ether
0xc87792ffe2c2700b53843549f8f5e26f82ef6e3b15eb5d70aac40b9acea0eb5b63550492 hrs 48 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x7aab41a2b1e8d9195b50143e32bef20b5eacfd910.000951084340447423 Ether
0xc035581cbe64526903c7d95005b212b0182456badff8016061b7d6582b61763563547594 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x20492283bf49b56a7d3067783fab3729338085780.027569797439781831 Ether
0x154a2efef23b27de78524719a0ec806624f62876bc517c1b99a4407d24af770e63545874 hrs 44 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x58e90f6e19563ce82c4a0010cece699b3e1a67230.046705436662672977 Ether
0x3773ac72cfb67b2801d2e3300432bbcc2112c6b529e0026c6d83bd332cc58ee963544965 hrs 5 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xe06e5e93c1f1fce9300ad17658e8bab8b62085160.035271851714924026 Ether
0xf786b72cafbeab51135d30d96b035f9fd3f16c4f81273c382792f3875a815aca63544785 hrs 8 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xecbf5a8947e63d8e6760f3fd5e413983ef595b710.035817606281595136 Ether
0xa215199cf74f62d54e4a71910107bbc015c245ad4ca2fc6573bb2a4f8929e3a863542066 hrs 10 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.000026234941211132 Ether
0xae4af626992d9e54f91fd317c26cb32df03e82bf148dabaaab249e8ef65bc16f63542036 hrs 11 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.008333145533323124 Ether
0x3d33e53abee23e842908b2a3c3da6f42f6a26cfbbb0fe2a0881457f30524943063538827 hrs 33 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xecbf5a8947e63d8e6760f3fd5e413983ef595b710.030325295677258722 Ether
0xbca97a761ff5e09354de572629e762a18b9611725d6347e39568bdc6aaeda29b63535518 hrs 51 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb0.012847885525134932 Ether
0x607b400b5094b93b07e99db01a7f41abe38156b2313b81ca24a55dee75dfb4ce63533099 hrs 52 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xacaa94d733e8acffab4a3440ccc437ce81a0133d0.016329467760338275 Ether
0xf412f81fbc336e5af2c49a7c8e979e575db4d41d1b294cd6f92c5f6d0685ebc9635317010 hrs 24 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.000068408485165088 Ether
0xd664733200104669783e2a1adf7526c931eb9ddfa98c597a69c174548f32f307635316010 hrs 26 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.009817673056016426 Ether
0xdd6bea1c42a9eebf938bfe9ad3a1b0d9895a420b7eafd861b82ddb42e6f8cd4e635316010 hrs 26 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x7f2f933ee22b802935449911fc8c7f35fb00409c0.011076439066901525 Ether
0x7854712b92284751a44a62d1287045b8a72329a7a71e2ecde4bf1d9f7387634d635315310 hrs 27 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x95096780efd48fa66483bc197677e89f37ca0cb50.005 Ether
0x7854712b92284751a44a62d1287045b8a72329a7a71e2ecde4bf1d9f7387634d635315310 hrs 27 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f0.02 Ether
0xe6b5f6a371586178c1f7ff12c4d300b466426005af70c2ba047b9740d760b891635314210 hrs 30 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x95096780efd48fa66483bc197677e89f37ca0cb50.01 Ether
0xe6b5f6a371586178c1f7ff12c4d300b466426005af70c2ba047b9740d760b891635314210 hrs 30 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f0.04 Ether
0xdd626025b318d46f6f9feeeb6ad580f0519a3a212544ada6aa0d0f99a7e8a2ab635288711 hrs 32 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x73e998eb9e4b6e10dc899d5b453f67b4670118a10.005205727683385704 Ether
0x05fd8e289266c8fa96529a0d58fb711614147fd8efedb25411f84714cedbc907635204314 hrs 56 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x90f1d7756a5a28346c43cc83823c0f931fcc49800.001795558754895488 Ether
0x32bbbb22cdfdd506a5ce27d6501476058f97bedf303b5aa0d3186c525840ce3e635199115 hrs 11 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x95096780efd48fa66483bc197677e89f37ca0cb50.0003 Ether
0x32bbbb22cdfdd506a5ce27d6501476058f97bedf303b5aa0d3186c525840ce3e635199115 hrs 11 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f0.0012 Ether
0xa8112d6c5f6dc8a556206eedb7a1ee8381b04bd0111b3176927274ab66bfe493635190015 hrs 33 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xafe7e3264efca320af481af3408d6f348878ec880.018572457982581685 Ether
0xb374175c611b678b747fe87e47015015db642d1ad63db0001dbae738ee26137b635177616 hrs 4 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x95096780efd48fa66483bc197677e89f37ca0cb50.0001 Ether
0xb374175c611b678b747fe87e47015015db642d1ad63db0001dbae738ee26137b635177616 hrs 4 mins ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f0.0004 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: ShrimpFarmer
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18; // solhint-disable-line



contract VerifyToken {
    function totalSupply() public constant returns (uint);
    function balanceOf(address tokenOwner) public constant returns (uint balance);
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);
    bool public activated;

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}
contract ApproveAndCallFallBack {
    function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
}
contract EthVerifyCore{
  mapping (address => bool) public verifiedUsers;
}
contract ShrimpFarmer is ApproveAndCallFallBack{
    using SafeMath for uint;
    address vrfAddress=0x5BD574410F3A2dA202bABBa1609330Db02aD64C2;//0x5BD574410F3A2dA202bABBa1609330Db02aD64C2;
    VerifyToken vrfcontract=VerifyToken(vrfAddress);

    //257977574257854071311765966
    //                10000000000
    //uint256 EGGS_PER_SHRIMP_PER_SECOND=1;
    uint256 public EGGS_TO_HATCH_1SHRIMP=86400;//86400
    uint public VRF_EGG_COST=(1000000000000000000*300)/EGGS_TO_HATCH_1SHRIMP;
    //uint256 public STARTING_SHRIMP=300;
    uint256 PSN=100000000000000;
    uint256 PSNH=50000000000000;
    uint public POT_DRAIN_TIME=12 hours;//24 hours;
    uint public HATCH_COOLDOWN=6 hours;//6 hours;
    bool public initialized=false;
    //bool public completed=false;

    address public ceoAddress;
    address public dev2;
    mapping (address => uint256) public hatcheryShrimp;
    mapping (address => uint256) public claimedEggs;
    mapping (address => uint256) public lastHatch;
    mapping (address => bool) public hasClaimedFree;
    uint256 public marketEggs;
    EthVerifyCore public ethVerify=EthVerifyCore(0x1c307A39511C16F74783fCd0091a921ec29A0b51);//0x1c307A39511C16F74783fCd0091a921ec29A0b51);

    uint public lastBidTime;//last time someone bid for the pot
    address public currentWinner;
    //uint public potEth=0;
    uint public totalHatcheryShrimp=0;
    uint public prizeEth=0;//eth specifically set aside for the pot

    function ShrimpFarmer() public{
        ceoAddress=msg.sender;
        dev2=address(0x95096780Efd48FA66483Bc197677e89f37Ca0CB5);
        lastBidTime=now;
        currentWinner=msg.sender;
    }
    function finalizeIfNecessary() public{
      if(lastBidTime.add(POT_DRAIN_TIME)<now){
        currentWinner.transfer(this.balance);//winner gets everything
        initialized=false;
        //completed=true;
      }
    }
    function getPotCost() public view returns(uint){
        return totalHatcheryShrimp.div(100);
    }
    function stealPot() public {
      finalizeIfNecessary();
      if(initialized){
          _hatchEggs(0);
          uint cost=getPotCost();
          hatcheryShrimp[msg.sender]=hatcheryShrimp[msg.sender].sub(cost);//cost is 1% of total shrimp
          totalHatcheryShrimp=totalHatcheryShrimp.add(cost);
          lastBidTime=now;
          currentWinner=msg.sender;
      }
    }
    function hatchEggs(address ref) public{
      require(lastHatch[msg.sender].add(HATCH_COOLDOWN)<now);
      _hatchEggs(ref);
    }
    function _hatchEggs(address ref) private{
        require(initialized);

        uint256 eggsUsed=getMyEggs();
        uint256 newShrimp=SafeMath.div(eggsUsed,EGGS_TO_HATCH_1SHRIMP);
        hatcheryShrimp[msg.sender]=SafeMath.add(hatcheryShrimp[msg.sender],newShrimp);
        totalHatcheryShrimp=totalHatcheryShrimp.add(newShrimp);
        claimedEggs[msg.sender]=0;
        lastHatch[msg.sender]=now;

        //send referral eggs
        require(ref!=msg.sender);
        if(ref!=0){
          claimedEggs[ref]=claimedEggs[ref].add(eggsUsed.div(7));
        }
        //boost market to nerf shrimp hoarding
        marketEggs=SafeMath.add(marketEggs,SafeMath.div(eggsUsed,7));
    }

    function sellEggs() public{
        require(initialized);
        uint256 hasEggs=getMyEggs();
        uint256 eggValue=calculateEggSell(hasEggs);
        //uint256 fee=devFee(eggValue);
        uint potfee=potFee(eggValue);
        claimedEggs[msg.sender]=0;
        lastHatch[msg.sender]=now;
        marketEggs=SafeMath.add(marketEggs,hasEggs);
        //ceoAddress.transfer(fee);
        prizeEth=prizeEth.add(potfee);
        msg.sender.transfer(eggValue.sub(potfee));
    }
    function buyEggs() public payable{
        require(initialized);
        uint256 eggsBought=calculateEggBuy(msg.value,SafeMath.sub(this.balance,msg.value));
        eggsBought=eggsBought.sub(devFee(eggsBought));
        eggsBought=eggsBought.sub(devFee2(eggsBought));
        ceoAddress.transfer(devFee(msg.value));
        dev2.transfer(devFee2(msg.value));
        claimedEggs[msg.sender]=SafeMath.add(claimedEggs[msg.sender],eggsBought);
    }
    //magic trade balancing algorithm
    function calculateTrade(uint256 rt,uint256 rs, uint256 bs) public view returns(uint256){
        //(PSN*bs)/(PSNH+((PSN*rs+PSNH*rt)/rt));
        return SafeMath.div(SafeMath.mul(PSN,bs),SafeMath.add(PSNH,SafeMath.div(SafeMath.add(SafeMath.mul(PSN,rs),SafeMath.mul(PSNH,rt)),rt)));
    }
    function calculateEggSell(uint256 eggs) public view returns(uint256){
        return calculateTrade(eggs,marketEggs,this.balance.sub(prizeEth));
    }
    function calculateEggBuy(uint256 eth,uint256 contractBalance) public view returns(uint256){
        return calculateTrade(eth,contractBalance.sub(prizeEth),marketEggs);
    }
    function calculateEggBuySimple(uint256 eth) public view returns(uint256){
        return calculateEggBuy(eth,this.balance);
    }
    function potFee(uint amount) public view returns(uint){
        return SafeMath.div(SafeMath.mul(amount,20),100);
    }
    function devFee(uint256 amount) public view returns(uint256){
        return SafeMath.div(SafeMath.mul(amount,4),100);
    }
    function devFee2(uint256 amount) public view returns(uint256){
        return SafeMath.div(amount,100);
    }
    function seedMarket(uint256 eggs) public payable{
        require(msg.sender==ceoAddress);
        require(!initialized);
        //require(marketEggs==0);
        initialized=true;
        marketEggs=eggs;
        lastBidTime=now;
    }
    //to correct a mistake necessitating a redeploy of the contract
    function setPreShrimp(address holder,uint shrimp){
      require(!initialized);
      require(msg.sender==ceoAddress);
      claimedEggs[holder]=shrimp*EGGS_TO_HATCH_1SHRIMP;
    }
    //Tokens are exchanged for shrimp by sending them to this contract with ApproveAndCall
    function receiveApproval(address from, uint256 tokens, address token, bytes data) public{
        require(!initialized);
        require(msg.sender==vrfAddress);
        vrfcontract.transferFrom(from,this,tokens);
        claimedEggs[from]=claimedEggs[from].add(tokens.div(VRF_EGG_COST));
    }
    //allow sending eth to the contract
    function () public payable {}

    function claimFreeEggs() public{
        require(ethVerify.verifiedUsers(msg.sender));
        require(initialized);
        require(!hasClaimedFree[msg.sender]);
        claimedEggs[msg.sender]=claimedEggs[msg.sender].add(getFreeEggs());
        hasClaimedFree[msg.sender]=true;
        //require(hatcheryShrimp[msg.sender]==0);
        //lastHatch[msg.sender]=now;
        //hatcheryShrimp[msg.sender]=hatcheryShrimp[msg.sender].add(STARTING_SHRIMP);
    }
    function getFreeEggs() public view returns(uint){
        return min(calculateEggBuySimple(this.balance.div(100)),calculateEggBuySimple(0.05 ether));
    }
    function getBalance() public view returns(uint256){
        return this.balance;
    }
    function getMyShrimp() public view returns(uint256){
        return hatcheryShrimp[msg.sender];
    }
    function getMyEggs() public view returns(uint256){
        return SafeMath.add(claimedEggs[msg.sender],getEggsSinceLastHatch(msg.sender));
    }
    function getEggsSinceLastHatch(address adr) public view returns(uint256){
        uint256 secondsPassed=min(EGGS_TO_HATCH_1SHRIMP,SafeMath.sub(now,lastHatch[adr]));
        return SafeMath.mul(secondsPassed,hatcheryShrimp[adr]);
    }
    function min(uint256 a, uint256 b) private pure returns (uint256) {
        return a < b ? a : b;
    }
}

library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  /**
  * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"hasClaimedFree","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ethVerify","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ceoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"prizeEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"rt","type":"uint256"},{"name":"rs","type":"uint256"},{"name":"bs","type":"uint256"}],"name":"calculateTrade","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getFreeEggs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getPotCost","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"eth","type":"uint256"},{"name":"contractBalance","type":"uint256"}],"name":"calculateEggBuy","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"marketEggs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sellEggs","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"eggs","type":"uint256"}],"name":"seedMarket","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"amount","type":"uint256"}],"name":"devFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"ref","type":"address"}],"name":"hatchEggs","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"stealPot","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getMyEggs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lastHatch","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"buyEggs","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"lastBidTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"HATCH_COOLDOWN","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalHatcheryShrimp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"claimedEggs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"EGGS_TO_HATCH_1SHRIMP","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"hatcheryShrimp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"eth","type":"uint256"}],"name":"calculateEggBuySimple","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"dev2","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"VRF_EGG_COST","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"eggs","type":"uint256"}],"name":"calculateEggSell","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"tokens","type":"uint256"},{"name":"token","type":"address"},{"name":"data","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"currentWinner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimFreeEggs","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"POT_DRAIN_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMyShrimp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"amount","type":"uint256"}],"name":"potFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finalizeIfNecessary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"holder","type":"address"},{"name":"shrimp","type":"uint256"}],"name":"setPreShrimp","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"getEggsSinceLastHatch","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"amount","type":"uint256"}],"name":"devFee2","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
608060405260008054600160a060020a0319908116735bd574410f3a2da202babba1609330db02ad64c217808355600180548316600160a060020a0390921691909117905562015180600255660c55f7bc23038e600355655af3107a4000600455652d79883d200060055561a8c06006556154606007556008805460ff19169055600f8054909116731c307a39511c16f74783fcd0091a921ec29a0b5117905560128190556013553480156100b357600080fd5b506008805461010060a860020a03191633610100810291909117909155600980547395096780efd48fa66483bc197677e89f37ca0cb5600160a060020a03199182161790915542601055601180549091169091179055611047806101186000396000f3006080604052600436106101e25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302b8230c81146101e457806308722e78146102195780630a0f81681461024a5780630ec0692a1461025f57806312065fe014610286578063158ef93e1461029b578063229824c4146102b057806322e58557146102ce57806323d7e089146102e357806326fd8422146102f85780632e9392bb146103135780633955f0fe146103285780633b6537551461033d5780633bc0461a146103485780633ec862a814610360578063421a57271461038157806343ce742214610396578063467ece79146103ab5780634f74acfe146103cc578063642ab4b1146103d4578063682baa3a146103e95780636bc46fb2146103fe5780637267036114610413578063732e77d0146104345780637e2cb974146104495780637e56fde51461046a5780638013f3a71461048257806388af6534146104975780638e316327146104ac5780638f4ffcb1146104c4578063aabe2fe314610534578063ae20bf1514610549578063b697fc931461055e578063c2127e0314610573578063ce8883af14610588578063cf99d935146105a0578063d4cde43c146105b5578063d7c8843b146105d9578063ea3f190e146105fa575b005b3480156101f057600080fd5b50610205600160a060020a0360043516610612565b604080519115158252519081900360200190f35b34801561022557600080fd5b5061022e610627565b60408051600160a060020a039092168252519081900360200190f35b34801561025657600080fd5b5061022e610636565b34801561026b57600080fd5b5061027461064a565b60408051918252519081900360200190f35b34801561029257600080fd5b50610274610650565b3480156102a757600080fd5b50610205610655565b3480156102bc57600080fd5b5061027460043560243560443561065e565b3480156102da57600080fd5b506102746106ab565b3480156102ef57600080fd5b506102746106e4565b34801561030457600080fd5b506102746004356024356106fb565b34801561031f57600080fd5b50610274610725565b34801561033457600080fd5b506101e261072b565b6101e26004356107eb565b34801561035457600080fd5b5061027460043561082d565b34801561036c57600080fd5b506101e2600160a060020a036004351661084a565b34801561038d57600080fd5b506101e2610885565b3480156103a257600080fd5b5061027461091b565b3480156103b757600080fd5b50610274600160a060020a036004351661093b565b6101e261094d565b3480156103e057600080fd5b50610274610a55565b3480156103f557600080fd5b50610274610a5b565b34801561040a57600080fd5b50610274610a61565b34801561041f57600080fd5b50610274600160a060020a0360043516610a67565b34801561044057600080fd5b50610274610a79565b34801561045557600080fd5b50610274600160a060020a0360043516610a7f565b34801561047657600080fd5b50610274600435610a91565b34801561048e57600080fd5b5061022e610a9e565b3480156104a357600080fd5b50610274610aad565b3480156104b857600080fd5b50610274600435610ab3565b3480156104d057600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526101e294600160a060020a03813581169560248035966044359093169536956084949201918190840183828082843750949750610ae09650505050505050565b34801561054057600080fd5b5061022e610c07565b34801561055557600080fd5b506101e2610c16565b34801561056a57600080fd5b50610274610d30565b34801561057f57600080fd5b50610274610d36565b34801561059457600080fd5b50610274600435610d49565b3480156105ac57600080fd5b506101e2610d59565b3480156105c157600080fd5b506101e2600160a060020a0360043516602435610dbf565b3480156105e557600080fd5b50610274600160a060020a0360043516610e0d565b34801561060657600080fd5b50610274600435610e6c565b600d6020526000908152604090205460ff1681565b600f54600160a060020a031681565b6008546101009004600160a060020a031681565b60135481565b303190565b60085460ff1681565b60006106a361066f60045484610e79565b61069e6005546106936106986106876004548a610e79565b6106936005548c610e79565b610eaf565b89610ebe565b610ebe565b949350505050565b60006106df6106ca6106c53031606463ffffffff610ebe16565b610a91565b6106da66b1a2bc2ec50000610a91565b610ed5565b905090565b6012546000906106df90606463ffffffff610ebe16565b600061071e8361071660135485610eeb90919063ffffffff16565b600e5461065e565b9392505050565b600e5481565b6008546000908190819060ff16151561074357600080fd5b61074b61091b565b925061075683610ab3565b915061076182610d49565b336000908152600b60209081526040808320839055600c9091529020429055600e549091506107909084610eaf565b600e556013546107a6908263ffffffff610eaf16565b601355336108fc6107bd848463ffffffff610eeb16565b6040518115909202916000818181858888f193505050501580156107e5573d6000803e3d6000fd5b50505050565b6008546101009004600160a060020a0316331461080757600080fd5b60085460ff161561081757600080fd5b6008805460ff19166001179055600e5542601055565b600061084461083d836004610e79565b6064610ebe565b92915050565b600754336000908152600c6020526040902054429161086f919063ffffffff610eaf16565b1061087957600080fd5b61088281610efd565b50565b600061088f610d59565b60085460ff1615610882576108a46000610efd565b6108ac6106e4565b336000908152600a60205260409020549091506108cf908263ffffffff610eeb16565b336000908152600a60205260409020556012546108f2908263ffffffff610eaf16565b601255426010556011805473ffffffffffffffffffffffffffffffffffffffff19163317905550565b336000818152600b602052604081205490916106df919061069390610e0d565b600c6020526000908152604090205481565b60085460009060ff16151561096157600080fd5b61097534610970303182610eeb565b6106fb565b90506109906109838261082d565b829063ffffffff610eeb16565b905061099e61098382610e6c565b6008549091506101009004600160a060020a03166108fc6109be3461082d565b6040518115909202916000818181858888f193505050501580156109e6573d6000803e3d6000fd5b50600954600160a060020a03166108fc6109ff34610e6c565b6040518115909202916000818181858888f19350505050158015610a27573d6000803e3d6000fd5b50336000908152600b6020526040902054610a429082610eaf565b336000908152600b602052604090205550565b60105481565b60075481565b60125481565b600b6020526000908152604090205481565b60025481565b600a6020526000908152604090205481565b60006108448230316106fb565b600954600160a060020a031681565b60035481565b600061084482600e54610adb60135430600160a060020a031631610eeb90919063ffffffff16565b61065e565b60085460ff1615610af057600080fd5b600054600160a060020a03163314610b0757600080fd5b600154604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a03878116600483015230602483015260448201879052915191909216916323b872dd9160648083019260209291908290030181600087803b158015610b7c57600080fd5b505af1158015610b90573d6000803e3d6000fd5b505050506040513d6020811015610ba657600080fd5b5050600354610be590610bc090859063ffffffff610ebe16565b600160a060020a0386166000908152600b60205260409020549063ffffffff610eaf16565b600160a060020a039094166000908152600b6020526040902093909355505050565b601154600160a060020a031681565b600f54604080517fe35fe3660000000000000000000000000000000000000000000000000000000081523360048201529051600160a060020a039092169163e35fe366916024808201926020929091908290030181600087803b158015610c7c57600080fd5b505af1158015610c90573d6000803e3d6000fd5b505050506040513d6020811015610ca657600080fd5b50511515610cb357600080fd5b60085460ff161515610cc457600080fd5b336000908152600d602052604090205460ff1615610ce157600080fd5b610d08610cec6106ab565b336000908152600b60205260409020549063ffffffff610eaf16565b336000908152600b6020908152604080832093909355600d905220805460ff19166001179055565b60065481565b336000908152600a602052604090205490565b600061084461083d836014610e79565b42610d71600654601054610eaf90919063ffffffff16565b1015610dbd57601154604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610db1573d6000803e3d6000fd5b506008805460ff191690555b565b60085460ff1615610dcf57600080fd5b6008546101009004600160a060020a03163314610deb57600080fd5b600254600160a060020a039092166000908152600b6020526040902091029055565b600080610e456002546106da42600c600088600160a060020a0316600160a060020a0316815260200190815260200160002054610eeb565b600160a060020a0384166000908152600a602052604090205490915061071e908290610e79565b6000610844826064610ebe565b600080831515610e8c5760009150610ea8565b50828202828482811515610e9c57fe5b0414610ea457fe5b8091505b5092915050565b600082820183811015610ea457fe5b6000808284811515610ecc57fe5b04949350505050565b6000818310610ee4578161071e565b5090919050565b600082821115610ef757fe5b50900390565b600854600090819060ff161515610f1357600080fd5b610f1b61091b565b9150610f2982600254610ebe565b336000908152600a6020526040902054909150610f469082610eaf565b336000908152600a6020526040902055601254610f69908263ffffffff610eaf16565b601255336000818152600b60209081526040808320839055600c9091529020429055600160a060020a0384161415610fa057600080fd5b600160a060020a0383161561100257610fe8610fc383600763ffffffff610ebe16565b600160a060020a0385166000908152600b60205260409020549063ffffffff610eaf16565b600160a060020a0384166000908152600b60205260409020555b611013600e54610693846007610ebe565b600e555050505600a165627a7a72305820fb9763358bd4ebde5c9be4a4f2f1b5b557b358c82dd1ca984df0955c8785697d0029

   Swarm Source:
bzzr://fb9763358bd4ebde5c9be4a4f2f1b5b557b358c82dd1ca984df0955c8785697d

 

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.