H
H
HISTOPIA
Search…
⌃K
📔

# Smart Contracts

## 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
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) = \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.
$\sum\limits_{k = 1}^\infty {ar^{2k - 1} = \frac{a}{{1 - r}}} = \frac{60M}{0.1} = 600M$