How to create mintable ERC20 but not pausable?

Hi @jaureguino,

If you want a mintable ERC20 token but don’t need it to be pausable, then you can take the ideas from the Preset contract and extend ERC20 yourself.

Currently your token extends from ERC20 and ERC20Capped but doesn’t have a mint function. So if you want a non-fixed supply then you would need to add mint functionality appropriately protected by Access Control. Previously you were extending from ERC20PresetMinterPauser which has mint functionality.


As an aside you can Format code in the forum. This makes it much easier to read with syntax highlighting.

Questions can be answered by anyone in the community so I recommend not tagging people unless you need a specific response, or you want to alert me that no one has answered.

1 Like