šŸ“”Smart Contracts


The $ERA token is an ERC20 token which is a standard capped OpenZeppelin token with mint access for the FoE contract.

NFT contract

This contract supports generic token type that helps the platform to create different type of NFTs(like lands, histopia, building, equipments and etc) with various characteristics for each type.

  • Type Name

  • What type of tokens can be assigned to this type

  • Wether it's breadable or not and the address of the breading manager of this type

  • Maximum supply of this type

FOE contract

This contract is based on MasterChef contract but users will stake their NFTs instead of LP tokens. The Histopians characteristic will be used for calculating the military power of players and then they can claim their $ERA token.

The reward per block on each planet is adjusted every week based on the military power of that planet compared to other planets.

The Histopia $ERA mint rate will be decreased 10 percent every 6 months. The sum of $ERA token after x year can be calculated like this:

f(x)=60Māˆ—(1āˆ’0.92x)1āˆ’0.9f(x) = \frac{60M * (1-0.9^{2x})}{1-0.9}

So for example after 1 year 114M of ERA tokens will be minted(11.4 of total supply). And it will take infinity years(mathematically) that 600M of $ERA tokens get distributed between Histopia players.

āˆ‘k=1āˆžar2kāˆ’1=a1āˆ’r=60M0.1=600M\sum\limits_{k = 1}^\infty {ar^{2k - 1} = \frac{a}{{1 - r}}} = \frac{60M}{0.1} = 600M

Last updated