šŸ“”Smart Contracts

$ERA TOKEN

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:

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.

Last updated