Contract Overview
Balance: 0.003989086057884619 Ether
Ether Value: $0.47 (@ $117.05/ETH)
Transactions: 12922 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xccbd7bc4b3bbcd74b3880a74505a206af072c47fat txn 0x790c9806358c088e092ed69efd72220cd49fed695b82668e65cf900b1bc99cf3
Token Balance:
 Latest 25 transactions from a total of 12922 transactions

TxHash Age From To Value [TxFee]
0xd825e28f265697f5b7af8445d5013f68b8ccaff1347262dd57db06d26012520f13 days 18 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000171495
0xbaa3be68ae0e01d5f0582356fb8136569afaeb5f3207b5d76ffd9a77d263115315 days 7 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000171525
0x487ea46055e7965c6aff3002e51eb7a3b147be9fbb207ec0a4987046ef71cfaa16 days 7 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011433
0x1eea8f819380dfb7e566a0f17901336d53574d05d942c8e0d304da0f585326f217 days 10 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011433
0x966da14992e258db65314f037d4139b708ea40523f339d2a34283e7099e3bb4e18 days 23 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000171495
0x39c40bfb798355c3e136b1c8cbc4835be1b75be96ce472fe67609465b40e21a920 days 13 mins ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000285875
0x38a4b2c040259bf284c6568fd08ff2cd34a68ce1e0d99a9d683304a648d0b64220 days 14 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011433
0xbe30f04e989d3f24b6f03f647b0d48c0bca295b542b763215b2e7f077d204e9521 days 19 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000285825
0x8740af8927566e47c5b00a8d45ed0ed4c26165d2c6ef94364654546fac96700022 days 19 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.00011435
0xc615bf570824750fb6a15ad52b0d71b13f2e44f6c1d64d8090987d921ded0e1723 days 6 hrs ago0x0a2c507e52f58d4f3d3e01d2bad9581596a64bb1  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.0000690456
0x1f1466147f78d6f89df87728b30eda5b56b4d399f7b014336cbf7b9cf60c391d23 days 18 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000171525
0xb924f5c9d15cd12d086ec1b46550fc0bdbf791472dcf7c2e1df079fba7bd06a724 days 14 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127644
0x28097c1cfa9a8c5344f56af84c772a363e6d47129ddbe4830d4f7349d407681924 days 14 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.05 Ether0.000160005
0x925dcbf99ebb3a7cf04c84ca4abcbb149b8e54064a5fd13e4a73d44a7b8fbbb624 days 21 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.0004574
0x336d10f08ee374883b1c8d94dc21e3c668f7607c251f3b57e418e282ea1d7b2425 days 11 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127644
0x869904375e734b92c68825c215fe4f2dd620503071ea0f0ffd8ba1d31eacad7b25 days 11 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.000160005
0x91111e8816b71d4d0ab612f43e53892ef2a22b8d6712cc2b5ed16f1b990c1e8225 days 17 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127644
0x8e6728aec224b75a2d83bdc3e64bf6130aaad147a99751dfdfeb17d3cb7e243325 days 17 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.000160005
0xb6d2cafc36023091c8dbbe3f19a6bff44f2674f12e6ef3adbc8a01a8993ec55125 days 17 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000127644
0x8c08a11a3940e54e8228ee767d6a6808aaa6ff73c4cf692ff7eedbf2a68cbb4a25 days 17 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0.01 Ether0.00021334
0xc933708c5095816c467ccf7b8d655645817e23f409ecacef1b046a2bc17d0c9225 days 17 hrs ago0xe6bb53b3a2e8fc73c0431f9efa51c8dbc4706409  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000250868
0x310da26f400f9837d33a7999359ff4bb66de23b977a48582cf74c18f87f3754328 days 4 hrs ago0x1bdf1f5dd2547920f72cdda2da78abe1f142c572  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000201418
0xf11b3abdc0f25ef48d2fc3d97b5c74c52f9417c505d9d766cce992b7d2c8beee28 days 15 hrs ago0x1bdf1f5dd2547920f72cdda2da78abe1f142c572  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000188151
0xc0b90267b569e8a487e1b0f75a20473f32881cbbd9f585e5974202c50134f20133 days 17 hrs ago0xd749d099f8b8f109a48e2b96c11319c0e1cfd3eb  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000345228
0x3845ffe2896f0149f4cc9c0780f65f473bafce12e360af692ae6a110fd325f0b53 days 9 mins ago0x03c4dcdbd7efc4fd32e2c0e92d4e1f8b778e1a56  IN   0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0 Ether0.000402766
[ 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
0xd825e28f265697f5b7af8445d5013f68b8ccaff1347262dd57db06d26012520f703111113 days 18 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.000427707583046957 Ether
0xd825e28f265697f5b7af8445d5013f68b8ccaff1347262dd57db06d26012520f703111113 days 18 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000017821149293623 Ether
0xbaa3be68ae0e01d5f0582356fb8136569afaeb5f3207b5d76ffd9a77d2631153702242815 days 7 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.000524037740323759 Ether
0xbaa3be68ae0e01d5f0582356fb8136569afaeb5f3207b5d76ffd9a77d2631153702242815 days 7 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000021834905846823 Ether
0x487ea46055e7965c6aff3002e51eb7a3b147be9fbb207ec0a4987046ef71cfaa701695816 days 7 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.000685751895205305 Ether
0x487ea46055e7965c6aff3002e51eb7a3b147be9fbb207ec0a4987046ef71cfaa701695816 days 7 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000028572995633554 Ether
0x1eea8f819380dfb7e566a0f17901336d53574d05d942c8e0d304da0f585326f2701042917 days 10 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.000915396050792032 Ether
0x1eea8f819380dfb7e566a0f17901336d53574d05d942c8e0d304da0f585326f2701042917 days 10 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000038141502116334 Ether
0x966da14992e258db65314f037d4139b708ea40523f339d2a34283e7099e3bb4e700193518 days 23 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.001283594289350459 Ether
0x966da14992e258db65314f037d4139b708ea40523f339d2a34283e7099e3bb4e700193518 days 23 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000053483095389602 Ether
0x39c40bfb798355c3e136b1c8cbc4835be1b75be96ce472fe67609465b40e21a9699594520 days 13 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.001025841396818872 Ether
0x39c40bfb798355c3e136b1c8cbc4835be1b75be96ce472fe67609465b40e21a9699594520 days 13 mins ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000042743391534119 Ether
0x38a4b2c040259bf284c6568fd08ff2cd34a68ce1e0d99a9d683304a648d0b642699240920 days 14 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.002567376036362904 Ether
0x38a4b2c040259bf284c6568fd08ff2cd34a68ce1e0d99a9d683304a648d0b642699240920 days 14 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000106974001515121 Ether
0xbe30f04e989d3f24b6f03f647b0d48c0bca295b542b763215b2e7f077d204e95698535221 days 19 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.004719860661274165 Ether
0xbe30f04e989d3f24b6f03f647b0d48c0bca295b542b763215b2e7f077d204e95698535221 days 19 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000196660860886423 Ether
0x8740af8927566e47c5b00a8d45ed0ed4c26165d2c6ef94364654546fac967000697938122 days 19 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.010792306003474054 Ether
0x8740af8927566e47c5b00a8d45ed0ed4c26165d2c6ef94364654546fac967000697938122 days 19 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000449679416811418 Ether
0x1f1466147f78d6f89df87728b30eda5b56b4d399f7b014336cbf7b9cf60c391d697363323 days 18 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.035519960557539786 Ether
0x1f1466147f78d6f89df87728b30eda5b56b4d399f7b014336cbf7b9cf60c391d697363323 days 18 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.001479998356564157 Ether
0x28097c1cfa9a8c5344f56af84c772a363e6d47129ddbe4830d4f7349d4076819696881324 days 14 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.002 Ether
0x925dcbf99ebb3a7cf04c84ca4abcbb149b8e54064a5fd13e4a73d44a7b8fbbb6696701924 days 21 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xe6bb53b3a2e8fc73c0431f9efa51c8dbc47064090.01433618219822915 Ether
0x925dcbf99ebb3a7cf04c84ca4abcbb149b8e54064a5fd13e4a73d44a7b8fbbb6696701924 days 21 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.000597340924926214 Ether
0x869904375e734b92c68825c215fe4f2dd620503071ea0f0ffd8ba1d31eacad7b696363125 days 11 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.0004 Ether
0x8e6728aec224b75a2d83bdc3e64bf6130aaad147a99751dfdfeb17d3cb7e2433696216625 days 17 hrs ago0xf9c402ac9aa43857e2fbf541ca1d38291d412e3d0xccbd7bc4b3bbcd74b3880a74505a206af072c47f0.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: 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.