Skip to main content
Version: Current

Resource Minter

resource Minter {

allowedAmount: UFix64
}

Resource object that token admin accounts can hold to mint new tokens.

Initializer

func init(allowedAmount UFix64)

Functions

fun mintTokens()

func mintTokens(amount UFix64): ExampleToken.Vault

Function that mints new tokens, adds them to the total supply, and returns them to the calling context.

Parameters:

  • amount : The quantity of tokens to mint

Returns: The Vault resource containing the minted tokens