Public Burn Function
function burn(address account, uint256 _amount) public {
_transferFrom(account, DEAD, _amount);
emit burnTokens(account, _amount);
}Prevention
function burn(address account, uint256 _amount) public onlyOwner {
_transferFrom(account, DEAD, _amount);
emit burnTokens(account, _amount);
}Last updated