Basic ERC20 contract

Hello everybody,

My goal is to write a basic ERC-20 smart contract usingOpenZeppelin that allows to:

  1. Mint tokens automatically when someone refers to another user (and be the only owner)
  2. Burn tokens

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! :blush:

1 Like