Hi everyone. So, I have developed both an ERC20 and ERC721 token using OpenZeppelin 2.x but now, I am onto something where I have to build an ERC20 token using OpenZeppelin 3.x. Can someone point me in the right direction? Also, I wanna understand OpenZeppelin 3.x more as I am on a project which is at a much larger scale and I will be developing and maintaining a couple of tokens in the next 7-8 months.
Edit:- I can create a basic ERC-20 token with it but I struggle with things like using functionalities from âaccessâ to make it ownable, making it mintable, and things like that.
I spent a quite a good amount of time in Access Control and I think I get most of it now but for this project, I think Ownable is better way bcoz we are allowing very few things that can be done by user.To follow up on that, if I out âonlyOwnerâ on my constrcutor, does it apply on all methods? and second question is more basic, if I wanna sell a token as single unit i.e no â1.5455â, itâs just 1000 tokens sold as single units, does my decimal value needs to be â0â?
My suggestion is to use Access Control, even if the only privileged function is mint. Where possible it is best to avoid having an all encompassing privileged function.