Skip to content

Solidity API

SpanningERC20BurnableUpgradeable

Extension of {SpanningERC20} 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).

burn

function burn(uint256 amount) public virtual

_Destroys amount tokens from the caller.

See {SpanningERC20-burn}.

burnFrom

function burnFrom(address receiverAddress, uint256 amount) public virtual

_Destroys amount tokens from receiverAddress, deducting from the caller's allowance.

See {SpanningERC20-_burn} and {SpanningERC20-allowance}.

Requirements:

  • the caller must have allowance for receiverAddress's tokens of at least amount._

burnFrom

function burnFrom(bytes32 receiverAddress, uint256 amount) public virtual

__gap

uint256[50] __gap

This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps We use a standard of 50 storage slots. The amount referenced below is based on: 50 - numberOfClassMemberVariables.