Contract 0x3Fbfb88462b2B51972ad7e41Ee98Dba989b39E7F

 

TxHash Block Age From To Value [TxFee]
0x38f2cdaeacef65b816af6a194b30feb86979547d6d4bf432a6b2fc8951bdf9fb708303463 days 15 hrs ago0xfc7a64183f49f71a1d604496e62c08f20af5b5d6 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000043944
0x331a18d4b465fdd3a903535037269ea25240687fd602d61e6d1c53b80af5f027703365272 days 11 hrs ago0xc1dbea42b3c8d865f08055f3883929dc07aef154 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001 Ether0.000339912
0x4e2375893a4263103146d6293c8932e5c17994b0998d6b24e58d0e2a3732929c696271684 days 19 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001 Ether0.00010986
0x24d4d538274d8920c91e450bc7ab9d8eb564d671a15a85b64b839dd1090bea14696269384 days 19 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.00010986
0x07e52eb092a5542b02f97c8d63adc4ee239c813bff25b18664b03049f09ee47a696129285 days 1 hr ago0xbf4e10fb6d08fa8669bd33723cf38e2efcf0341b IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.002351022
0xc3688e9a225f465c406bbaa736ebd487700d18e36c1820478545f4e6ac82689c695978385 days 7 hrs ago0xff04687be6eb35025e550e66b7ab3de0799a81d0 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.01 Ether0.000644224
0xced2f3b7146bbcaba2a074197fe7fc1ab7813debe45bc7b62398feecafa606a0695976285 days 7 hrs ago0xff04687be6eb35025e550e66b7ab3de0799a81d0 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.0017293
0x33e39f432397d909abbc4cec468535b5708ce29c28d44627afefaa71cfed0664695896685 days 10 hrs ago0x08ecd9f4bd5df8063855d4914c42604db11517ea IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.0001202148
0x352fab1ae471688e22f0b62c78003d6b082980703d198958e339be4481e5b457695674885 days 19 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.000166965
0xd8968b5f828ac53b6f0fe16f783ea3cbe325685a5c768eae1b612cb563d891ef695099786 days 19 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.000166965
0xf28c43684baaa8c4e6673c9e224c0beb17e52586fb32b72150280202886ed8c1695099286 days 19 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.000166965
0x6b727f0fe6c9c1754d85b1240dced7e450b8b9db9d0912559119274ba8b94b59694574087 days 16 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.000166965
0x9dd4abfcd18cfc6b5a6cd864092817fa9b9ada2dfff7fcdd57fb954ed9790d16693770989 days 47 mins ago0x28caae774b5530c3b86ef5db5cd85517d43572c1 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000264261
0x09640d3690ecbf784cc4daf7b1bdf794a23e83a0726a5e4960daecb7efc21ce2693769689 days 50 mins ago0x8de4425e86c63e7ae170940d239b115e66f459f4 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000264261
0x0c08d66ec3134d4f936807fe76808370195a5b4b58c3471150c9b4d5766b5c49693766789 days 55 mins ago0x5c591062565ceb2df5a2ca0dfc222a3eaab63bf2 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000264261
0x517af954adc33de3894db1622c041e0219ffdd2ba54622481a5af2b0f5ef2c60693753689 days 1 hr ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.000601074
0xe79ed150dc234037e44c492903d0c776f5086215d02ecfdd791e0f827e8c1801693527389 days 10 hrs ago0x08ecd9f4bd5df8063855d4914c42604db11517ea IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.0001202148
0x6d373c9b550760206f3ae12ee7420bb88d10a34d1c156a4ffef5985e80bc73aa692781290 days 17 hrs ago0x8d6f482d0fd71eb76310e4f3e95e256963d16092 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000259395
0xce42fa0ced1b889a98e658a7b28034c02914ce9bf60c7841a611190ebde990b6692697090 days 20 hrs ago0xbb4a4e9376defcb61660537c17a8728f34374066 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000206868
0x068597bab6591702a87f102aa77fc48167c7c82ccc1a943bd458109b847cba66692258991 days 14 hrs ago0x08ecd9f4bd5df8063855d4914c42604db11517ea IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.0001402506
0xd8dbafdc8cba72a44ea8e0dacc21cb83cc654df1ed46beacafa3eb1126f7a098691894292 days 5 hrs ago0x08ecd9f4bd5df8063855d4914c42604db11517ea IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.00034561752
0x08717b72d37454a822ef2762a388cae1dc4900e6c45520cf7a6f01e128f59bf1691638992 days 15 hrs ago0x209259936547eeb046e8efa4fd58a6b18f3dad98 IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000258585
0xa611bb469a1018b37fbb656e4bb2441f9ae026d5703858999d4cd82367131cc4691588192 days 18 hrs ago0xb6ffd765a942e39c5753a9cd46d60cfd9159a0df IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000206868
0xf6d42fce3159eab7e1ed82b2b2979ed0a2fa9f6661bfa2744763c7d9032a6186691321993 days 5 hrs ago0x08ecd9f4bd5df8063855d4914c42604db11517ea IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0.00001111 Ether0.0001602864
0xa5e8047408f48c2de8ababb9eb337ac21e42b5435249dfa024344ceaa92d8653690800194 days 2 hrs ago0xd713764874e6c422cedc7992c58149ff921bb35f IN  0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0 Ether0.000465453
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x07e52eb092a5542b02f97c8d63adc4ee239c813bff25b18664b03049f09ee47a696129285 days 1 hr ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xbf4e10fb6d08fa8669bd33723cf38e2efcf0341b0.009868927931904849 Ether
0x07e52eb092a5542b02f97c8d63adc4ee239c813bff25b18664b03049f09ee47a696129285 days 1 hr ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000411205330496035 Ether
0xc3688e9a225f465c406bbaa736ebd487700d18e36c1820478545f4e6ac82689c695978385 days 7 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0x25e6142178fc3afb7533739f5eddd4a41227576a0.0004 Ether
0xc3688e9a225f465c406bbaa736ebd487700d18e36c1820478545f4e6ac82689c695978385 days 7 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xff04687be6eb35025e550e66b7ab3de0799a81d00.00005188802957712 Ether
0xc3688e9a225f465c406bbaa736ebd487700d18e36c1820478545f4e6ac82689c695978385 days 7 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.00000216200123238 Ether
0xce42fa0ced1b889a98e658a7b28034c02914ce9bf60c7841a611190ebde990b6692697090 days 20 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xbb4a4e9376defcb61660537c17a8728f343740660.000000037357546182 Ether
0xce42fa0ced1b889a98e658a7b28034c02914ce9bf60c7841a611190ebde990b6692697090 days 20 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000000001556564424 Ether
0x08717b72d37454a822ef2762a388cae1dc4900e6c45520cf7a6f01e128f59bf1691638992 days 15 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0x209259936547eeb046e8efa4fd58a6b18f3dad980.000112663451328855 Ether
0x08717b72d37454a822ef2762a388cae1dc4900e6c45520cf7a6f01e128f59bf1691638992 days 15 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000004694310472035 Ether
0xa611bb469a1018b37fbb656e4bb2441f9ae026d5703858999d4cd82367131cc4691588192 days 18 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xb6ffd765a942e39c5753a9cd46d60cfd9159a0df0.000414970993288288 Ether
0xa611bb469a1018b37fbb656e4bb2441f9ae026d5703858999d4cd82367131cc4691588192 days 18 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000017290458053678 Ether
0xa5e8047408f48c2de8ababb9eb337ac21e42b5435249dfa024344ceaa92d8653690800194 days 2 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xd713764874e6c422cedc7992c58149ff921bb35f0.000000311207829485 Ether
0xa5e8047408f48c2de8ababb9eb337ac21e42b5435249dfa024344ceaa92d8653690800194 days 2 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000000012966992895 Ether
0x3ead9d59313bf94039039983a68182048a03d4cdbf7b1435293a8b807cb7eb5e690782694 days 3 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0x08ecd9f4bd5df8063855d4914c42604db11517ea0.000000170254935526 Ether
0x3ead9d59313bf94039039983a68182048a03d4cdbf7b1435293a8b807cb7eb5e690782694 days 3 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000000007093955646 Ether
0x74e2136906355f547425cb606ba3aa9d12a57f8d148acd4c9b82cac6d912c8ff690181695 days 3 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0x209259936547eeb046e8efa4fd58a6b18f3dad980.000287874303432509 Ether
0x74e2136906355f547425cb606ba3aa9d12a57f8d148acd4c9b82cac6d912c8ff690181695 days 3 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000011994762643021 Ether
0x958909e1969b6cafbfe410cca16499f10e2634bf36a0d3d22ec405aa7d6769fd689645596 days 1 hr ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0x1412a1eb9841f87c9bd2e81e5fe147622def0aef0.006810840360222783 Ether
0x958909e1969b6cafbfe410cca16499f10e2634bf36a0d3d22ec405aa7d6769fd689645596 days 1 hr ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000283785015009282 Ether
0x6fb4efbdee1451bd79d3e23b215f18787dca56565752a1c7dcc7be14ca084560689404496 days 10 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0x12fd87aac5e3ffb8bd6aa07f4d8d09a85d9860d70.000514201543380894 Ether
0x6fb4efbdee1451bd79d3e23b215f18787dca56565752a1c7dcc7be14ca084560689404496 days 10 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000021425064307537 Ether
0x1ad02d121b6d6f2a055d24c8f611e9141575fcd749ffd4b51623cf4091eb6a92689097196 days 22 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xb6ffd765a942e39c5753a9cd46d60cfd9159a0df0.002909107147759688 Ether
0x1ad02d121b6d6f2a055d24c8f611e9141575fcd749ffd4b51623cf4091eb6a92689097196 days 22 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.00012121279782332 Ether
0x88a1aa8082f06ba993c5803e198668160436f2a8bde1c3deb557f8ead4f790cb688744597 days 12 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xbf4e10fb6d08fa8669bd33723cf38e2efcf0341b0.005999505542469254 Ether
0x88a1aa8082f06ba993c5803e198668160436f2a8bde1c3deb557f8ead4f790cb688744597 days 12 hrs ago0x3fbfb88462b2b51972ad7e41ee98dba989b39e7f0xf27951803bbb725968c6a3628c3767ab69242c5c0.000249979397602885 Ether
[ Download CSV Export 

Contract Source Code Verified (Exact Match)

Contract Name:
EtherGarden

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

/**
 *
 * https://ethergarden.host
 *
 * Welcome to Ether Garden!
 * Here you can earn Ethereum, growing four kinds of vegetables. 
 * You will get random kind of vegetable for growing with the first transaction.
 * One acre of garden field gives one vegetable per day. The more acres you have, the more vegetables they give.
 * Attention! Market value of each vegetable will be different. Less grown vegetables will be more expensive.
 * Also market value depends on contract balance, number of all bought acres and  number of all grown vegetables.
 *
 * Send from 0 to 0.00001 ether for sell your all grown vegetables or getting FREE acres, if you have no one acre.
 * Send 0.00001111 ether for reinvest all grown vegetables to the new acres.
 * Minimum invest amount for fields buying is 0.001 ETH.
 * Use 150000 of Gas limit for your transactions.
 *
 * Marketing commissions: 4% for buying arces
 * Admin commissions: 4% for selling vegetable
 * Referrer: 4%
 *
 */

pragma solidity ^0.4.25; 

contract EtherGarden{

    using SafeMath for uint256;
 
    struct Farmer {
		uint8   vegetableId;
        uint256 startGrowing;
        uint256 fieldSize;
    }

	mapping (uint8 => uint256) public vegetablesTradeBalance;
	mapping (address => Farmer) public farmers;

	uint256 maxVegetableId = 4;
	uint256 minimumInvest = 0.001 ether;
	uint256 growingSpeed = 1 days; 
	
	bool public gameStarted = false;
	bool public initialized = false;
	address public marketing = 0x25e6142178Fc3Afb7533739F5eDDD4a41227576A;
	address public admin;
	
    /**
     * @dev –°onstructor Sets the original roles of the contract 
     */
    constructor() public {
        admin = msg.sender;
    }
	
    /**
     * @dev Modifiers
     */	
    modifier onlyAdmin() {
        require(msg.sender == admin);
        _;
    }
    modifier isInitialized() {
        require(initialized && gameStarted);
        _;
    }	

    /**
     * @dev Market functions
     */		
    function() external payable {
		
		Farmer storage farmer = farmers[msg.sender];

		if (msg.value >= 0 && msg.value <= 0.00001 ether) {
			if (farmer.vegetableId == 0) {
				//Set random vegetale for a new farmer	
				rollFieldId();
				
				getFreeField();
			} else
				sellVegetables();
        } 
		else if (msg.value == 0.00001111 ether){
			reInvest();
        } 
		else {
			if (farmer.vegetableId == 0) {
				//Set random vegetale for a new farmer	
				rollFieldId();		
			}
            buyField();
        }		
    }	 

    function sellVegetables() internal isInitialized {
		Farmer storage farmer = farmers[msg.sender];
		
		uint256 value = vegetablesValue(msg.sender);
		if (value > 0) {
			uint256 sellPrice = vegetablePrice(farmer.vegetableId).mul(value);
			
			if (sellPrice > address(this).balance) {
				sellPrice = address(this).balance;
				//stop game
				gameStarted = false;
			}
			
			uint256 fee = devFee(sellPrice);
			
			farmer.startGrowing = now;
			
			//Update market values
			vegetablesTradeBalance[farmer.vegetableId] = vegetablesTradeBalance[farmer.vegetableId].add(value);
			
			admin.transfer(fee);
			msg.sender.transfer(sellPrice.sub(fee));
		}
    }	 
	
    function buyField() internal isInitialized {
		require(msg.value >= minimumInvest, "Too low ETH value");

		Farmer storage farmer = farmers[msg.sender];	

		//Calculate acres number for buying
		uint256 acres = msg.value.div(fieldPrice(msg.value));
        
		if (farmer.startGrowing > 0)
			sellVegetables();
		
		farmer.startGrowing = now;
		farmer.fieldSize = farmer.fieldSize.add(acres);
		
		////Update market values by 20% from the number of the new acres
		vegetablesTradeBalance[farmer.vegetableId] = vegetablesTradeBalance[farmer.vegetableId].add( acres.div(5) );
		
        uint256 fee = devFee(msg.value);
		marketing.send(fee);
		
        if (msg.data.length == 20) {
            address _referrer = bytesToAddress(bytes(msg.data));
			if (_referrer != msg.sender && _referrer != address(0)) {
				 _referrer.send(fee);
			}
        }		
    }
	 
	function reInvest() internal isInitialized {
		
		Farmer storage farmer = farmers[msg.sender];	
		
		uint256 value = vegetablesValue(msg.sender);
		require(value > 0, "No grown vegetables for reinvest");
		
		//Change one vegetable for one acre
		farmer.fieldSize = farmer.fieldSize.add(value);
		farmer.startGrowing = now;
	}
	
    function getFreeField() internal isInitialized {
		Farmer storage farmer = farmers[msg.sender];
		require(farmer.fieldSize == 0);
		
		farmer.fieldSize = freeFieldSize();
		farmer.startGrowing = now;
		
    }
	
    function initMarket(uint256 _newTradeBalance) public payable onlyAdmin{
        require(!initialized);
        initialized = true;
		gameStarted = true;
		
		//Set the first trade balance
		for (uint8 _vegetableId = 1; _vegetableId <= maxVegetableId; _vegetableId++)
			vegetablesTradeBalance[_vegetableId] = _newTradeBalance;
    }	
	
	function rollFieldId() internal {
		Farmer storage farmer = farmers[msg.sender];
		
	    //Set random vegetables field for a new farmer
		farmer.vegetableId = uint8(uint256(blockhash(block.number - 1)) % maxVegetableId + 1);
	}
	
    /**
     * @dev Referrer functions
     */		

	function bytesToAddress(bytes _source) internal pure returns(address parsedreferrer) {
        assembly {
            parsedreferrer := mload(add(_source,0x14))
        }
        return parsedreferrer;
    }	
	
    /**
     * @dev Views
     */		
	 
    function vegetablePrice(uint8 _VegetableId) public view returns(uint256){
		return address(this).balance.div(maxVegetableId).div(vegetablesTradeBalance[_VegetableId]);
    }

    function vegetablesValue(address _Farmer) public view returns(uint256){
		//ONE acre gives ONE vegetable per day. Many acres give vegetables faster.
		return farmers[_Farmer].fieldSize.mul( now.sub(farmers[_Farmer].startGrowing) ).div(growingSpeed);
    }	
	
    function fieldPrice(uint256 _subValue) public view returns(uint256){
	    uint256 CommonTradeBalance;
		
		for (uint8 _vegetableId = 1; _vegetableId <= maxVegetableId; _vegetableId++)
			CommonTradeBalance = CommonTradeBalance.add(vegetablesTradeBalance[_vegetableId]);
			
		//_subValue need to use the previous value of the balance before acres buying.
		return ( address(this).balance.sub(_subValue) ).div(CommonTradeBalance);
    }
	
	function freeFieldSize() public view returns(uint256) {
		return minimumInvest.div(fieldPrice(0));
	}
	
	function devFee(uint256 _amount) internal pure returns(uint256){
        return _amount.mul(4).div(100); //4%
    }
	
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
    // Gas optimization: this is cheaper than asserting 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (_a == 0) {
      return 0;
    }

    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 _a / _b;
  }

  /**
  * @dev Subtracts 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 c) {
    c = _a + _b;
    assert(c >= _a);
    return c;
  }
}

Contract ABI

[{"constant":true,"inputs":[{"name":"","type":"uint8"}],"name":"vegetablesTradeBalance","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":"marketing","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"farmers","outputs":[{"name":"vegetableId","type":"uint8"},{"name":"startGrowing","type":"uint256"},{"name":"fieldSize","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gameStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_VegetableId","type":"uint8"}],"name":"vegetablePrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_subValue","type":"uint256"}],"name":"fieldPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_Farmer","type":"address"}],"name":"vegetablesValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"freeFieldSize","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newTradeBalance","type":"uint256"}],"name":"initMarket","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

Contract Creation Code

60806040526004600281905566038d7ea4c6800060035562015180905560058054600160b060020a0319167525e6142178fc3afb7533739f5eddd4a41227576a000017905534801561005057600080fd5b5060068054600160a060020a03191633179055610a34806100726000396000f3006080604052600436106100ae5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630d8b3a3a8114610139578063158ef93e146101665780632d3e474a1461018f578063401b2168146101c05780635e123ce414610203578063787fccc214610218578063cb11213114610233578063db24eb741461024b578063e41bd9f01461026c578063f11db84514610281578063f851a4401461028e575b3360009081526001602052604081209034108015906100d357506509184e72a0003411155b1561010557805460ff1615156100f8576100eb6102a3565b6100f36102d8565b610100565b610100610334565b610136565b34650a1abf9a7c00141561011b5761010061048d565b805460ff16151561012e5761012e6102a3565b610136610565565b50005b34801561014557600080fd5b5061015460ff6004351661077f565b60408051918252519081900360200190f35b34801561017257600080fd5b5061017b610791565b604080519115158252519081900360200190f35b34801561019b57600080fd5b506101a461079f565b60408051600160a060020a039092168252519081900360200190f35b3480156101cc57600080fd5b506101e1600160a060020a03600435166107b4565b6040805160ff9094168452602084019290925282820152519081900360600190f35b34801561020f57600080fd5b5061017b6107da565b34801561022457600080fd5b5061015460ff600435166107e3565b34801561023f57600080fd5b50610154600435610822565b34801561025757600080fd5b50610154600160a060020a036004351661087f565b34801561027857600080fd5b506101546108e1565b61028c600435610904565b005b34801561029a57600080fd5b506101a461097d565b3360009081526001602052604090206002546000194301408115156102c457fe5b825460ff191691900660010160ff16179055565b600554600090610100900460ff1680156102f4575060055460ff165b15156102ff57600080fd5b5033600090815260016020526040902060028101541561031e57600080fd5b6103266108e1565b600282015542600190910155565b600080600080600560019054906101000a900460ff168015610358575060055460ff165b151561036357600080fd5b336000818152600160205260409020945061037d9061087f565b925060008311156104875783546103a890849061039c9060ff166107e3565b9063ffffffff61098c16565b915030318211156103c2576005805460ff19169055303191505b6103cb826109b5565b426001860155845460ff166000908152602081905260409020549091506103f8908463ffffffff6109cd16565b845460ff16600090815260208190526040808220929092556006549151600160a060020a039092169183156108fc0291849190818181858888f19350505050158015610448573d6000803e3d6000fd5b50336108fc61045d848463ffffffff6109da16565b6040518115909202916000818181858888f19350505050158015610485573d6000803e3d6000fd5b505b50505050565b6005546000908190610100900460ff1680156104ab575060055460ff165b15156104b657600080fd5b33600081815260016020526040902092506104d09061087f565b90506000811161054157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4e6f2067726f776e20766567657461626c657320666f72207265696e76657374604482015290519081900360640190fd5b6002820154610556908263ffffffff6109cd16565b60028301555042600190910155565b600080600080600560019054906101000a900460ff168015610589575060055460ff165b151561059457600080fd5b60035434101561060557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f546f6f206c6f77204554482076616c7565000000000000000000000000000000604482015290519081900360640190fd5b336000908152600160205260409020935061062f61062234610822565b349063ffffffff6109ec16565b925060008460010154111561064657610646610334565b4260018501556002840154610661908463ffffffff6109cd16565b600285015561069a61067a84600563ffffffff6109ec16565b855460ff166000908152602081905260409020549063ffffffff6109cd16565b845460ff166000908152602081905260409020556106b7346109b5565b600554604051919350620100009004600160a060020a0316906108fc8415029084906000818181858888f15050506014361415915061048790505761072c6000368080601f01602080910402602001604051908101604052809392919081815260200183838082843750610a01945050505050565b9050600160a060020a038116331480159061074f5750600160a060020a03811615155b1561048757604051600160a060020a0382169083156108fc029084906000818181858888f1505050505050505050565b60006020819052908152604090205481565b600554610100900460ff1681565b600554620100009004600160a060020a031681565b600160208190526000918252604090912080549181015460029091015460ff9092169183565b60055460ff1681565b60ff811660009081526020819052604081205460025461081c91906108109030319063ffffffff6109ec16565b9063ffffffff6109ec16565b92915050565b60008060015b60025460ff8216116108625760ff811660009081526020819052604090205461085890839063ffffffff6109cd16565b9150600101610828565b6108778261081030318763ffffffff6109da16565b949350505050565b600454600160a060020a038216600090815260016020819052604082200154909161081c91610810906108b990429063ffffffff6109da16565b600160a060020a0386166000908152600160205260409020600201549063ffffffff61098c16565b60006108ff6108f06000610822565b6003549063ffffffff6109ec16565b905090565b600654600090600160a060020a0316331461091e57600080fd5b600554610100900460ff161561093357600080fd5b506005805460ff1961ff0019909116610100171660019081179091555b60025460ff8216116109795760ff81166000908152602081905260409020829055600101610950565b5050565b600654600160a060020a031681565b600082151561099d5750600061081c565b508181028183828115156109ad57fe5b041461081c57fe5b600061081c606461081084600463ffffffff61098c16565b8181018281101561081c57fe5b6000828211156109e657fe5b50900390565b600081838115156109f957fe5b049392505050565b60140151905600a165627a7a7230582085aac09a51b69e53d452e206b42686b39e5b026e97d20d49433ea60c08c39ae20029

Swarm Source

bzzr://85aac09a51b69e53d452e206b42686b39e5b026e97d20d49433ea60c08c39ae2
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.