Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ERC20BurnableUpgradeable

Inherits: Initializable, ContextUpgradeable, ERC20Upgradeable

Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis).

Functions

__ERC20Burnable_init

function __ERC20Burnable_init() internal onlyInitializing;

__ERC20Burnable_init_unchained

function __ERC20Burnable_init_unchained() internal onlyInitializing;

burn

Destroys a value amount of tokens from the caller. See ERC20-_burn.

function burn(uint256 value) public virtual;

burnFrom

*Destroys a value amount of tokens from account, deducting from the caller's allowance. See ERC20-_burn and {ERC20-allowance}. Requirements:

  • the caller must have allowance for accounts's tokens of at least value.*
function burnFrom(address account, uint256 value) public virtual;