🖥
Smart Contract Overview
Overview of what makes the miner work.
This is an enhanced fork of Baked Beans, and all the functions are similar. Here are a few important ones to know about. Make sure you understand our terminology before proceeding with this overview!
EGGS_TO_HATCH_1MINERS: This is set to 1,080,000. This is how many eggs you need to trade for one miner.
marketEggs: This will track the total number of eggs that have been bought, sold, or watered in the protocol. It starts at 108,000,000,000 for the entire contract and will go up over time with new investments and watering. It will influence how many eggs you get from the contract. Harvesting will increase marketEggs by 5x greater than watering. marketEggs will never decrease.
How are the amounts of plants and eggs you receive calculated?
This formulas below is the one the contract uses to continually calculate this. It should be noted that the time you come into the contract will also influence how this is calculated.
- PSN = 10,000; fixed number
- PSNH = 5,000; fixed number
- bs = marketEggs
- rs = ContractBalance
- rt = Amount (when selling this will refer to eggs)
For buys and watering (what you are owed in eggs and Plants when you buy/water):

When buying, the higher the marketEggs the more plants you will get.

hatchEggs: The value derived from the previous buy/watering equation is input into this hatchEggs function. This function is triggered when you water.
Essentially, this is the order flow when you water your plants:
- 1.The contract will check that you are not using your own wallet address as the referral.
- 2.The contract will calculate the number of eggs that should be received by you. It will also add the any eggs from referred addresses to this total.
- 3.Your plant value will be increased by the number of eggs calculated in the second step. This is then divided by the EGGS_TO_HATCH_1MINERS value.
- 4.Once the calculation is completed, your number of unclaimed eggs will go to zero. The last water and harvest will also reset to the current block.
- 5.The number of eggs in the referrer’s holding will increase by 9% of the number of eggs watered.
- 6.The marketEggs variable increases by adding the amount watered by five. The number five is obtained from the contract – it is a part of a function that will help boost the market to nerf minders that are hoarding. This helps equalize the value of the Plants you get at your entry point.
Last modified 5mo ago