Hello everybody,
My goal is to write a basic ERC-20 smart contract usingOpenZeppelin that allows to:
- Mint tokens automatically when someone refers to another user (and be the only owner)
- Burn tokens
Where would I start?
Thank you,
Sergei
Hello everybody,
My goal is to write a basic ERC-20 smart contract usingOpenZeppelin that allows to:
Where would I start?
Thank you,
Sergei
Hi @monkrus! Check out our ERC20 guide in the docs to learn the basics of how to have the ability to mint and burn.
After that, you might want to read How to implement ERC20 supply mechanisms to implement your desired minting scheme.
Let us know when you’ve read those if you have any further questions!