Skip to content

Instantly share code, notes, and snippets.

@MrCrambo
Created April 24, 2018 13:27
Show Gist options
  • Save MrCrambo/f4b0b7089d594a7f62fb4d94e28fe777 to your computer and use it in GitHub Desktop.
Save MrCrambo/f4b0b7089d594a7f62fb4d94e28fe777 to your computer and use it in GitHub Desktop.
function burn() public onlyAdmin {
extraTokensAmount = balances[tokenHolder];
_totalSupply = _totalSupply.sub(extraTokensAmount);
balances[tokenHolder] = 0;
emit Burn(tokenHolder, extraTokensAmount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment