Skip to content
Lattice

ERC20Burnable

Git Source

Inherits: IERC20Burnable

Title: ERC20Burnable

Author: Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC20Burnable.sol)

Stateless Diamond facet adding burn operations to ERC-20.

Inherits ERC20 and delegates burn/burnFrom to ERC20BurnableLib, which lists the differences from OpenZeppelin.

Notes:

  • lattice-version: 0.1.0
  • lattice-source: OpenZeppelin v5.6.1

Functions

burn

Destroys value tokens from the caller's balance.

function burn(uint256 value) public virtual;

Parameters

NameTypeDescription
valueuint256

burnFrom

Destroys value tokens from account, deducting from the caller's allowance.

function burnFrom(address account, uint256 value) public virtual;

Parameters

NameTypeDescription
accountaddress
valueuint256

exportSelectors

ERC-8153 selector export: this facet's cuttable selectors, tightly packed (4 bytes each).

Excludes exportSelectors() itself (0x0ef22643) - it is never cut into a diamond. Order matches forge inspect ERC20Burnable methodIdentifiers (alphabetical by signature); kept in exact parity by ExportSelectorsParityTest. Chunks: burn(uint256) 0x42966c68 burnFrom(address,uint256) 0x79cc6790

function exportSelectors() external pure virtual returns (bytes memory selectors);

Returns

NameTypeDescription
selectorsbytes