Contract Overview
Balance: 0.037553291555039017 Ether
Ether Value: $7.77 (@ $206.99/ETH)
Transactions: 12857 txns
 Latest 25 txns From a total of 12857 Transactions

TxHash Age From To Value [TxFee]
0x705ba378cbb09a5f0b236496f7e81de0d3a643a468ba3001fece03b76a5ebbaa1 hr 25 mins ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011435
0xb7048aaa090e91c80be075119f3311e905befd10fd89976524ee4a39850a710f4 hrs 41 mins ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000178242
0xfe4f6ed660c1d57c5ccad76ced97f66473ba92f76d4cff611faddfbb42d4e0954 hrs 41 mins ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011435
0x80f4721db35cb0a985c1d1e7c69f87c02da26b95ea8be6ae3faeb04d7f886b9d4 hrs 41 mins ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011435
0xa3aa7305b86d9820091363e4475639f51d457df3c2a7faf697edb6567edc7f384 hrs 52 mins ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.0001208298
0x1a0e233ceb4edfdeea470a539f925812d1ba82caad21f7716a712fee5b1efb791 day 5 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127644
0xa3870395aa480d97791bca3cbd98f8273926bd295aa7004226543b10f23d83211 day 15 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.00010667
0x73b5ba09f31661da7bf7f46574121babd0b9ed718285f6140b87151245de7ec91 day 15 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127614
0xef49c64e46eaf9518bfccb45a64f535a62507f72c84f32256099cb53c2ae103b3 days 8 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.000160005
0x83c1bc0afcac2a45379d4d79d078a5df718672aaee94c3afaa0099206f2206d53 days 8 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000115076
0x7fc527df8bcfc5c5f5886a8df54b73cb1632206d16d4f0420462a328df351a324 days 16 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000172644
0xcba7ee246a24241d9f0a44567df85c516179f299778a99185d252339789800ab4 days 16 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127644
0xc15b5e6f1792797cf0d8c86b11922971424e1de8e0c23db0cae4e1a94183c7985 days 2 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.00032001
0x29ac4422a3af24dac994a3141097dbb6e3cba9f7b57872cfe605a87cbb3ada095 days 2 hrs ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000439019
0x5dff6b3ce8d9ba51621e8f013361c112c6b70b7281f3820bd93b5a95af51fc7d11 days 21 hrs ago0x26b350f462ae30ec1c48c36ba944ab66f06dafee  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000318672
0xc64b9c63435de355ea9f932c8140031e4b430321c1d523f89eb0d4eb4c2d319b12 days 19 hrs ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000057538
0xc15aadc885dd4a31ed4f678773936c3af95b3977890e94789500e103593985dd12 days 23 hrs ago0x26b350f462ae30ec1c48c36ba944ab66f06dafee  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000424896
0xed5d38e3548201af03af846b6c623d98202f7b0dca7870a375405854a9b8922116 days 16 hrs ago0x26b350f462ae30ec1c48c36ba944ab66f06dafee  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00079668
0x67f4076b6760b27bc4da90ad60516fe8dde000e25c1233515a1f865674b6396825 days 1 hr ago0xed062b16f5d41da2c2af4b70aec6ed3601226a85  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000250868
0xb3bc2243b4da19bb73f0e5ff195afef041c858109338971c428c6ccecd2dd94925 days 1 hr ago0xed062b16f5d41da2c2af4b70aec6ed3601226a85  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.00021334
0xd814bf6e42b6fbe5b7fee7922ca46e8a7640ef256ed97bd8fe9ffa9a3d79fed627 days 8 hrs ago0x9dbe0db82aefa66d854855205e78545f31003858  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000285825
0x7b119db815701c3a5c9208179ab9f6462c40cdfc1764b34bcf323f4a3ab0e9f028 days 12 hrs ago0x9dbe0db82aefa66d854855205e78545f31003858  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00034299
0x0bf8bfb08b3d24705f0c7b32d1a10acfaffb9a2cbf11025a3b27ebe8bb46d89129 days 13 hrs ago0x9dbe0db82aefa66d854855205e78545f31003858  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000285875
0x4dac3d6463d0c5d567d327c9ac2e703b41ba11602e926c7fd3bb941856c605a730 days 7 hrs ago0x9dbe0db82aefa66d854855205e78545f31003858  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00028774
0xf62f2285e21fa4c55d84b3de111463eb5b1341c6255aaf0919b0525af39f71b731 days 6 hrs ago0x9dbe0db82aefa66d854855205e78545f31003858  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000170192
[ 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
0x705ba378cbb09a5f0b236496f7e81de0d3a643a468ba3001fece03b76a5ebbaa65335081 hr 25 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb10.003224611797212653 Ether
0x705ba378cbb09a5f0b236496f7e81de0d3a643a468ba3001fece03b76a5ebbaa65335081 hr 25 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.00013435882488386 Ether
0xfe4f6ed660c1d57c5ccad76ced97f66473ba92f76d4cff611faddfbb42d4e09565326664 hrs 41 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb10.000001792737854532 Ether
0xfe4f6ed660c1d57c5ccad76ced97f66473ba92f76d4cff611faddfbb42d4e09565326664 hrs 41 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000000074697410605 Ether
0x80f4721db35cb0a985c1d1e7c69f87c02da26b95ea8be6ae3faeb04d7f886b9d65326654 hrs 41 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb10.00020062010385035 Ether
0x80f4721db35cb0a985c1d1e7c69f87c02da26b95ea8be6ae3faeb04d7f886b9d65326654 hrs 41 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000008359170993764 Ether
0xa3870395aa480d97791bca3cbd98f8273926bd295aa7004226543b10f23d832165239461 day 15 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0xef49c64e46eaf9518bfccb45a64f535a62507f72c84f32256099cb53c2ae103b65132203 days 8 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0xc15b5e6f1792797cf0d8c86b11922971424e1de8e0c23db0cae4e1a94183c79865025655 days 2 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0xb3bc2243b4da19bb73f0e5ff195afef041c858109338971c428c6ccecd2dd949638023125 days 1 hr ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0xd814bf6e42b6fbe5b7fee7922ca46e8a7640ef256ed97bd8fe9ffa9a3d79fed6636641927 days 8 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x9dbe0db82aefa66d854855205e78545f310038580.001045255710417828 Ether
0xd814bf6e42b6fbe5b7fee7922ca46e8a7640ef256ed97bd8fe9ffa9a3d79fed6636641927 days 8 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000043552321267409 Ether
0x7b119db815701c3a5c9208179ab9f6462c40cdfc1764b34bcf323f4a3ab0e9f0635928628 days 12 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x9dbe0db82aefa66d854855205e78545f310038580.002438001493786021 Ether
0x7b119db815701c3a5c9208179ab9f6462c40cdfc1764b34bcf323f4a3ab0e9f0635928628 days 12 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000101583395574417 Ether
0x0bf8bfb08b3d24705f0c7b32d1a10acfaffb9a2cbf11025a3b27ebe8bb46d891635290329 days 13 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x9dbe0db82aefa66d854855205e78545f310038580.00572960133053828 Ether
0x0bf8bfb08b3d24705f0c7b32d1a10acfaffb9a2cbf11025a3b27ebe8bb46d891635290329 days 13 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000238733388772428 Ether
0xded2555ad0783f2eb77fe2a130a309689fe00853670fe815eda97388e283950b634224731 days 7 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0x5dba0dff6d3a852dd3adacc94c2a2e5a5cfbc25e1b97e61f38b51a52e6a32093634108331 days 12 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x9dbe0db82aefa66d854855205e78545f3100385872 wei
0x5dba0dff6d3a852dd3adacc94c2a2e5a5cfbc25e1b97e61f38b51a52e6a32093634108331 days 12 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f2 wei
0x9e2c7ae210d3dd69766ef42e7abb036b52f1804fa86d8fe061ec0e442839e6a3626802743 days 16 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x658c20b95213def63be5abc5a0885010b70f9ef50.006966496975712881 Ether
0x9e2c7ae210d3dd69766ef42e7abb036b52f1804fa86d8fe061ec0e442839e6a3626802743 days 16 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.00029027070732137 Ether
0xa6d0f8108ce8b09d0aaab404c3072afcba4ad68d0969c0b1c9eceecceb003b83624676647 days 6 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0x6bf7742dce2d7626c2f9d119829e886266ff14581a026b89ff4f75f12793182f607079277 days 11 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb10.002505474997990774 Ether
0x6bf7742dce2d7626c2f9d119829e886266ff14581a026b89ff4f75f12793182f607079277 days 11 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000104394791582948 Ether
0x033d320228f327a25e058f4492abbe05f76ff4be59f6ec36cb116907fc5d7e02602438084 days 20 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb10.001792332483246338 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: AnthillFarmer
Compiler Text: v0.4.24-nightly.2018.5.16+commit.7f965c86
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

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



contract AnthillFarmer{
    //uint256 ANTS_PER_ANTHILL_PER_SECOND=1;
    uint256 public ANTS_TO_COLLECT_1ANTHILL=86400;//for final version should be seconds in a day
    uint256 public STARTING_ANTHILL=300;
    uint256 PSN=10000;
    uint256 PSNH=5000;
    bool public initialized=false;
    address public ceoAddress;
    mapping (address => uint256) public Anthills;
    mapping (address => uint256) public claimedAnts;
    mapping (address => uint256) public lastCollect;
    mapping (address => address) public referrals;
    uint256 public marketAnts;
    function AnthillFarmer() public{
        ceoAddress=msg.sender;
    }
    function collectAnts(address ref) public{
        require(initialized);
        if(referrals[msg.sender]==0 && referrals[msg.sender]!=msg.sender){
            referrals[msg.sender]=ref;
        }
        uint256 antsUsed=getMyAnts();
        uint256 newAnthill=SafeMath.div(antsUsed,ANTS_TO_COLLECT_1ANTHILL);
        Anthills[msg.sender]=SafeMath.add(Anthills[msg.sender],newAnthill);
        claimedAnts[msg.sender]=0;
        lastCollect[msg.sender]=now;
        
        //send referral ants
        claimedAnts[referrals[msg.sender]]=SafeMath.add(claimedAnts[referrals[msg.sender]],SafeMath.div(antsUsed,5));
        
        //boost market to nerf anthill hoarding
        marketAnts=SafeMath.add(marketAnts,SafeMath.div(antsUsed,10));
    }
    function sellAnts() public{
        require(initialized);
        uint256 hasAnts=getMyAnts();
        uint256 antValue=calculateAntSell(hasAnts);
        uint256 fee=devFee(antValue);
        claimedAnts[msg.sender]=0;
        lastCollect[msg.sender]=now;
        marketAnts=SafeMath.add(marketAnts,hasAnts);
        ceoAddress.transfer(fee);
        msg.sender.transfer(SafeMath.sub(antValue,fee));
    }
    function buyAnts() public payable{
        require(initialized);
        uint256 antsBought=calculateAntBuy(msg.value,SafeMath.sub(this.balance,msg.value));
        antsBought=SafeMath.sub(antsBought,devFee(antsBought));
        ceoAddress.transfer(devFee(msg.value));
        claimedAnts[msg.sender]=SafeMath.add(claimedAnts[msg.sender],antsBought);
    }
    //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 calculateAntSell(uint256 ants) public view returns(uint256){
        return calculateTrade(ants,marketAnts,this.balance);
    }
    function calculateAntBuy(uint256 eth,uint256 contractBalance) public view returns(uint256){
        return calculateTrade(eth,contractBalance,marketAnts);
    }
    function calculateAntBuySimple(uint256 eth) public view returns(uint256){
        return calculateAntBuy(eth,this.balance);
    }
    function devFee(uint256 amount) public view returns(uint256){
        return SafeMath.div(SafeMath.mul(amount,4),100);
    }
    function seedMarket(uint256 ants) public payable{
        require(marketAnts==0);
        initialized=true;
        marketAnts=ants;
    }
    function getFreeAnthill() public{
        require(initialized);
        require(Anthills[msg.sender]==0);
        lastCollect[msg.sender]=now;
        Anthills[msg.sender]=STARTING_ANTHILL;
    }
    function getBalance() public view returns(uint256){
        return this.balance;
    }
    function getMyAnthill() public view returns(uint256){
        return Anthills[msg.sender];
    }
    function getMyAnts() public view returns(uint256){
        return SafeMath.add(claimedAnts[msg.sender],getAntsSinceLastCollect(msg.sender));
    }
    function getAntsSinceLastCollect(address adr) public view returns(uint256){
        uint256 secondsPassed=min(ANTS_TO_COLLECT_1ANTHILL,SafeMath.sub(now,lastCollect[adr]));
        return SafeMath.mul(secondsPassed,Anthills[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":"ceoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"marketAnts","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":"","type":"address"}],"name":"Anthills","outputs":[{"name":"","type":"uint256"}],"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":false,"inputs":[{"name":"ants","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":true,"inputs":[],"name":"STARTING_ANTHILL","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMyAnthill","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"claimedAnts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lastCollect","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"referrals","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"buyAnts","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"getAntsSinceLastCollect","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getFreeAnthill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellAnts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"ref","type":"address"}],"name":"collectAnts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"eth","type":"uint256"},{"name":"contractBalance","type":"uint256"}],"name":"calculateAntBuy","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"ants","type":"uint256"}],"name":"calculateAntSell","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMyAnts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"eth","type":"uint256"}],"name":"calculateAntBuySimple","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ANTS_TO_COLLECT_1ANTHILL","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
60806040526201518060005561012c6001556127106002556113886003556000600460006101000a81548160ff02191690831515021790555034801561004457600080fd5b5033600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506112f1806100956000396000f300608060405260043610610133576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a0f8168146101385780630d1352cf1461018f57806312065fe0146101ba578063158ef93e146101e557806321cc191414610214578063229824c41461026b5780633b653755146102c05780633bc0461a146102e05780635b475e2214610321578063620b0f231461034c5780636b7979c91461037757806388f707a5146103ce5780639ca423b3146104255780639dff78de146104a8578063b10477c9146104b2578063b59ffdd314610509578063b6a9ed3114610520578063b6cb377714610537578063c7411eb41461057a578063c781d7b0146105c5578063c89cea9914610606578063efd2abec14610631578063f31011ac14610672575b600080fd5b34801561014457600080fd5b5061014d61069d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561019b57600080fd5b506101a46106c3565b6040518082815260200191505060405180910390f35b3480156101c657600080fd5b506101cf6106c9565b6040518082815260200191505060405180910390f35b3480156101f157600080fd5b506101fa6106e8565b604051808215151515815260200191505060405180910390f35b34801561022057600080fd5b50610255600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106fb565b6040518082815260200191505060405180910390f35b34801561027757600080fd5b506102aa600480360381019080803590602001909291908035906020019092919080359060200190929190505050610713565b6040518082815260200191505060405180910390f35b6102de60048036038101908080359060200190929190505050610766565b005b3480156102ec57600080fd5b5061030b6004803603810190808035906020019092919050505061079c565b6040518082815260200191505060405180910390f35b34801561032d57600080fd5b506103366107ba565b6040518082815260200191505060405180910390f35b34801561035857600080fd5b506103616107c0565b6040518082815260200191505060405180910390f35b34801561038357600080fd5b506103b8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610807565b6040518082815260200191505060405180910390f35b3480156103da57600080fd5b5061040f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061081f565b6040518082815260200191505060405180910390f35b34801561043157600080fd5b50610466600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610837565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104b061086a565b005b3480156104be57600080fd5b506104f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109c7565b6040518082815260200191505060405180910390f35b34801561051557600080fd5b5061051e610a71565b005b34801561052c57600080fd5b50610535610b66565b005b34801561054357600080fd5b50610578600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cff565b005b34801561058657600080fd5b506105af6004803603810190808035906020019092919080359060200190929190505050611153565b6040518082815260200191505060405180910390f35b3480156105d157600080fd5b506105f06004803603810190808035906020019092919050505061116a565b6040518082815260200191505060405180910390f35b34801561061257600080fd5b5061061b611197565b6040518082815260200191505060405180910390f35b34801561063d57600080fd5b5061065c600480360381019080803590602001909291905050506111ef565b6040518082815260200191505060405180910390f35b34801561067e57600080fd5b50610687611219565b6040518082815260200191505060405180910390f35b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b600460009054906101000a900460ff1681565b60056020528060005260406000206000915090505481565b600061075d6107246002548461121f565b61075860035461075361074d61073c6002548a61121f565b6107486003548c61121f565b61125a565b89611278565b61125a565b611278565b90509392505050565b600060095414151561077757600080fd5b6001600460006101000a81548160ff0219169083151502179055508060098190555050565b60006107b36107ac83600461121f565b6064611278565b9050919050565b60015481565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b60066020528060005260406000206000915090505481565b60076020528060005260406000206000915090505481565b60086020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460009054906101000a900460ff16151561088757600080fd5b6108b1346108ac3073ffffffffffffffffffffffffffffffffffffffff163134611293565b611153565b90506108c5816108c08361079c565b611293565b9050600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc61090c3461079c565b9081150290604051600060405180830381858888f19350505050158015610937573d6000803e3d6000fd5b50610981600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548261125a565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b600080610a1e600054610a1942600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611293565b6112ac565b9050610a6981600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461121f565b915050919050565b600460009054906101000a900460ff161515610a8c57600080fd5b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141515610ada57600080fd5b42600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600154600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550565b6000806000600460009054906101000a900460ff161515610b8657600080fd5b610b8e611197565b9250610b998361116a565b9150610ba48261079c565b90506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555042600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c3b6009548461125a565b600981905550600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ca9573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc610cce8484611293565b9081150290604051600060405180830381858888f19350505050158015610cf9573d6000803e3d6000fd5b50505050565b600080600460009054906101000a900460ff161515610d1d57600080fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148015610e2d57503373ffffffffffffffffffffffffffffffffffffffff16600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b15610eb15782600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b610eb9611197565b9150610ec782600054611278565b9050610f12600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548261125a565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555042600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061109060066000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461108b846005611278565b61125a565b60066000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061114860095461114384600a611278565b61125a565b600981905550505050565b60006111628383600954610713565b905092915050565b6000611190826009543073ffffffffffffffffffffffffffffffffffffffff1631610713565b9050919050565b60006111ea600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111e5336109c7565b61125a565b905090565b6000611212823073ffffffffffffffffffffffffffffffffffffffff1631611153565b9050919050565b60005481565b60008060008414156112345760009150611253565b828402905082848281151561124557fe5b0414151561124f57fe5b8091505b5092915050565b600080828401905083811015151561126e57fe5b8091505092915050565b600080828481151561128657fe5b0490508091505092915050565b60008282111515156112a157fe5b818303905092915050565b60008183106112bb57816112bd565b825b9050929150505600a165627a7a72305820a5cdce4b90268318e57d9dd41921c9399aabf7693125116c53721d2f779516220029

   Swarm Source:
bzzr://a5cdce4b90268318e57d9dd41921c9399aabf7693125116c53721d2f77951622

 

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.