I've recently created a smart contract on Fantom and wondered about a few details:
- Mint Functions
- Burn Functions
Can any users or developers interact with these functions. For example, with my newly created tokens. If I were to send these to another user, can they just burn them? Or can they just mint more?
How are these functions governed?
Example burn function:
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
}
Thanks.