Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 2535 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5fat txn 0xfd1d83a869a9006b5ba04905d6f797eabcea3e9838fc3a25fb6e52ef604115e4
Token Balance:
 Latest 25 transactions from a total of 2535 transactions

TxHash Age From To Value [TxFee]
0x13f18ebc07f49bcc10057bc24590e60448761ddfd7fc56a8f2e254f5c50b775161 days 21 hrs ago0xbc209738a1f91c99efa7fae4eca6ebc4f9c6479c  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000049974
0x7ed727bc1dd33e26efcd59f3577fd82f1b7b658169a2313674951d7338f157ec84 days 19 hrs ago0x9fa40946401e4c8a92cd45c74c5595db0012e783  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000049974
0x4450cb5483edb90301f519ee69dee473043ba3af8006bd0f1993d9ead2bb4a6f87 days 12 hrs ago0xe793cdd15aedefe3b8ae875d8103cf433b43c228  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000174909
0x6145b99108044e872fff98bd678e8b3abbc028c72b9e48a29cfd38ca5d047ebc87 days 22 hrs ago0xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00019236
0x0e773db0a7976d858b4d6a205e8207e7d9ef77d9b467311496bb6ef1095a66cb87 days 23 hrs ago0xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000216405
0xefb2c36308baba0538ec35c514b07771f3e9457243a95156d01e3841bab3539988 days 7 hrs ago0x8bcdaeeb1dd2f7b8fa6f0939051c70cc2a4a7553  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.0011129
0xee9964889fd1728c08855cf18a465d429a0ec51ec77a8d558ed56a8c50616a4c88 days 7 hrs ago0xf8266548e84114e053d4c9b9105094661161498f  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000279633
0x8978adfc107923e78edaf0e20176adfc6c207476c7c6153e89bcf341628c4df788 days 7 hrs ago0xecbf5a8947e63d8e6760f3fd5e413983ef595b71  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00023898
0x2d196fa006678766895df11b8bad74d4130cdb93c1f23758fbd7c8302946377588 days 7 hrs ago0x7aab41a2b1e8d9195b50143e32bef20b5eacfd91  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00023898
0x5b4f3047a67cd046fea238b0e95a20629e5193d92418680f5b81ed04fc0b380b88 days 7 hrs ago0xbbdc1d406c4aaee056dbbd0394d80eedba67de93  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00032898
0x9d63b67fe30459b4691abec32350339191a4fcffb04a27ebce96f392a9acfe4b88 days 7 hrs ago0x8bcdaeeb1dd2f7b8fa6f0939051c70cc2a4a7553  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000658881
0x3c1f81b9a64f9c2ce524b2bb43fb70327a3e7ca20af78f5fab3fe981ae89c64688 days 7 hrs ago0x7f2f933ee22b802935449911fc8c7f35fb00409c  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000279633
0x7a4c711f57bb9ea1a2060ff2ad6e94045e965528cdc556298dd2c65b9f2bfb3c88 days 7 hrs ago0xf8266548e84114e053d4c9b9105094661161498f  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000279633
0xc23f016ecd9b8970b36870dcc1a63aa51ae77b89d0f10a100fd83eddaaeaab0f88 days 7 hrs ago0xd1692f1c6b50d299993363be1c869e3e64842732  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000465672
0xed6ea2022be1ddd8df49052b70925017000ac9f25a0196bbb505630574d8850988 days 7 hrs ago0x37d88fd804052b19c5ada0f721adba6fcc9c82c1  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000274085
0x6a053f9c8b8571c363be051dde2162dd885aae5123bb07d897121682a690343388 days 7 hrs ago0xd1692f1c6b50d299993363be1c869e3e64842732  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660.2 Ether0.000325808
0xc620b50543a4aafed6a8633725f5ea89a6df7b8abb231b6015fc9e026aff6d4088 days 7 hrs ago0x703b16787180a94c2f9f2510f08edb59aa899568  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00030744
0x52338e8a0f5542f53d9b486654404de3a78819de64a1a3e3bef641728b893ed688 days 8 hrs ago0xe06e5e93c1f1fce9300ad17658e8bab8b6208516  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000256265
0x0bd049f22b3d6199979066b7a40960a3b211238c439b675002f8d67a388ebe8088 days 8 hrs ago0x5409e9e2f6cc8340d307fa15e0728adad54d6e8c  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000291045
0xfdc3aa8598cdae108855304b5141e91a0020750b0b2a7a3f68654d133014eb6588 days 8 hrs ago0xbbdc1d406c4aaee056dbbd0394d80eedba67de93  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00030744
0x621a58941d5685a904d80517f53aad5873ac80335415ad6cda416d76381cb0f288 days 8 hrs ago0x190a2409fc6434483d4c2cab804e75e3bc5ebfa6  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000219268
0xed90a0f2be9462648dc2dc8f95f63f80e0b26b904ff1d3fc513992bc33f0b48788 days 9 hrs ago0x93811dabfbee9736035025cba91491d7747cfd47  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00027415
0xc529f591d99de94f0014cc86c1d0c903f68fec98418857571c3d7dd65ca1a66388 days 9 hrs ago0x90f1d7756a5a28346c43cc83823c0f931fcc4980  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000205012
0x3773c3bacd4c98a95b0dcf359d3b5eb61616311ba302d0d441daba90c953e80c88 days 9 hrs ago0xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.000291045
0x0d4ef20309c497cebf533e270fe5484d4832b454a330642d693f3ab44fc83be188 days 10 hrs ago0x25466662d42a4d70fca5ca44e41eb7d97238fcfe  IN   0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660 Ether0.00040992
[ 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
0xefb2c36308baba0538ec35c514b07771f3e9457243a95156d01e3841bab35399635766588 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x360bbad1120b0abf63573e2e21b6727e07d1bf185.900048194259547444 Ether
0xee9964889fd1728c08855cf18a465d429a0ec51ec77a8d558ed56a8c50616a4c635765588 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.000054195669901535 Ether
0x8978adfc107923e78edaf0e20176adfc6c207476c7c6153e89bcf341628c4df7635765188 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xecbf5a8947e63d8e6760f3fd5e413983ef595b710.02564012213459806 Ether
0x2d196fa006678766895df11b8bad74d4130cdb93c1f23758fbd7c83029463775635765188 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x7aab41a2b1e8d9195b50143e32bef20b5eacfd910.001641120016198672 Ether
0x5b4f3047a67cd046fea238b0e95a20629e5193d92418680f5b81ed04fc0b380b635764488 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xbbdc1d406c4aaee056dbbd0394d80eedba67de930.002330168595992966 Ether
0x3c1f81b9a64f9c2ce524b2bb43fb70327a3e7ca20af78f5fab3fe981ae89c646635764388 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x7f2f933ee22b802935449911fc8c7f35fb00409c0.007656347897835409 Ether
0x7a4c711f57bb9ea1a2060ff2ad6e94045e965528cdc556298dd2c65b9f2bfb3c635764288 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.007562093603789872 Ether
0xed6ea2022be1ddd8df49052b70925017000ac9f25a0196bbb505630574d88509635764088 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x37d88fd804052b19c5ada0f721adba6fcc9c82c10.00033492275914266 Ether
0x6a053f9c8b8571c363be051dde2162dd885aae5123bb07d897121682a6903433635763788 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x95096780efd48fa66483bc197677e89f37ca0cb50.002 Ether
0x6a053f9c8b8571c363be051dde2162dd885aae5123bb07d897121682a6903433635763788 days 7 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f0.008 Ether
0x621a58941d5685a904d80517f53aad5873ac80335415ad6cda416d76381cb0f2635731588 days 8 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x190a2409fc6434483d4c2cab804e75e3bc5ebfa60.000855497437509638 Ether
0xed90a0f2be9462648dc2dc8f95f63f80e0b26b904ff1d3fc513992bc33f0b487635717988 days 9 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x93811dabfbee9736035025cba91491d7747cfd470.002299033443965772 Ether
0x3a2e8ccecb97a774149beb8bafdd4fd83b2b836bff323204b890865cf149f299635608288 days 13 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xecbf5a8947e63d8e6760f3fd5e413983ef595b710.025776229478636472 Ether
0x91bd97a35e19ef7c3f6e39a5932fa9fda60d87412fda4ed863f52608ed69ecfb635591088 days 14 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x961351dfdb07ea31f6412d6434ecd3d5dc24cd4c0.038748443032983165 Ether
0x85c9a86faba19b6ac35564d4afed4ebb8087e309e2ce7e113bac60265627ba92635590088 days 14 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x7e7e2bf7edc52322ee1d251432c248693ecd9e0f0.038605813729322211 Ether
0xc2ecaedd343d77cfa2bbb3cbadafd48943022d96f2d77167ae93bbc926393342635589488 days 14 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x73e998eb9e4b6e10dc899d5b453f67b4670118a10.005175546332816699 Ether
0xb60cfdf25923dc27823ceddac3a8536563ecac50b02177f46027e8f69e05709c635567488 days 15 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.008011160479003345 Ether
0xc87792ffe2c2700b53843549f8f5e26f82ef6e3b15eb5d70aac40b9acea0eb5b635504988 days 17 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x7aab41a2b1e8d9195b50143e32bef20b5eacfd910.000951084340447423 Ether
0xc035581cbe64526903c7d95005b212b0182456badff8016061b7d6582b617635635475988 days 18 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x20492283bf49b56a7d3067783fab3729338085780.027569797439781831 Ether
0x154a2efef23b27de78524719a0ec806624f62876bc517c1b99a4407d24af770e635458788 days 19 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660x58e90f6e19563ce82c4a0010cece699b3e1a67230.046705436662672977 Ether
0x3773ac72cfb67b2801d2e3300432bbcc2112c6b529e0026c6d83bd332cc58ee9635449688 days 19 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xe06e5e93c1f1fce9300ad17658e8bab8b62085160.035271851714924026 Ether
0xf786b72cafbeab51135d30d96b035f9fd3f16c4f81273c382792f3875a815aca635447888 days 19 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xecbf5a8947e63d8e6760f3fd5e413983ef595b710.035817606281595136 Ether
0xa215199cf74f62d54e4a71910107bbc015c245ad4ca2fc6573bb2a4f8929e3a8635420688 days 20 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.000026234941211132 Ether
0xae4af626992d9e54f91fd317c26cb32df03e82bf148dabaaab249e8ef65bc16f635420388 days 20 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xf8266548e84114e053d4c9b9105094661161498f0.008333145533323124 Ether
0x3d33e53abee23e842908b2a3c3da6f42f6a26cfbbb0fe2a0881457f305249430635388288 days 22 hrs ago0xfd7c7c43bedfda1e7a50e15766c617ee3e10ce660xecbf5a8947e63d8e6760f3fd5e413983ef595b710.030325295677258722 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 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.