Skip to main content

Resource Minter


_10
resource Minter {
_10
_10
allowedAmount: UFix64
_10
}

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

Initializer​


_10
func init(allowedAmount UFix64)

Functions​

fun mintTokens()​


_10
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