I need help with a mechanic of ERC20 contracts.
I'm quite new to Solidity dev and I'm developing a videogame where users are given Tokens when they finish their match.
I have the basic Token taken from OpenZeppelin standard but I was wondering how can I give the players this kind of reward?
I want to mint 210000000 tokens and give the players 2 tokens for every game.
How can I achieve such a thing?
Thanks a lot in advance.
I found out how to do that!
I don't mint 21000000 tokens but I put it as maximum mintable amount so that there's a hardcap.
So everytime a player finish a game it mints X tokens.