Skip to main content

Resource Burner


_10
resource Burner {
_10
}

Resource object that token admin accounts can hold to burn tokens.

Functions

fun burnTokens()


_10
func burnTokens(from FungibleToken.Vault)

Function that destroys a Vault instance, effectively burning the tokens.

Note: the burned tokens are automatically subtracted from the total supply in the Vault destructor.

Parameters:

  • from : The Vault resource containing the tokens to burn