Create a Fixed-cap Asset
Create a Fixed-cap AssetFixed-cap assets are fungible tokens for which the supply is determined at the time of asset creation. No additional quantities can be generated afterwards.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20Capped.solgithub.comExtension of ERC20 that adds a cap to the supply of tokensThis contract is designed to be unopinionated, allowing developers to access the internal functions in ERC20 (such as _mint) and expose them as external functions in the way they prefer. On the other hand, ERC20 Presets (such as ERC20PresetMinterPauser) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.
- _beforeTokenTransfer(from, to, amount)
- transfer(recipient, amount)
- allowance(owner, spender)
- approve(spender, amount)
- transferFrom(sender, recipient, amount)
- increaseAllowance(spender, addedValue)
- decreaseAllowance(spender, subtractedValue)
- _transfer(sender, recipient, amount)
- _mint(account, amount)
- _burn(account, amount)
- _approve(owner, spender, amount)