Skip to content

Solidity API

SpanningERC20Burnable

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