Token with Mintable Supply
A fungible token with a mintable supply can be minted once and has the functionality to mint additional tokens throughout its lifetime.
The smart contract template for fungible tokens with a mintable supply is suited for uses cases where the token should follow additional issuance in the future. After deployment, new tokens can be created.
Variables
_name: The name of your token contract
_symbol: The ticker symbol ($XXX) of your token contract
_decimals: The total decimals (after 0) of your token. Generally this is set ot 18.
_totalSupply: The total supply of your minted token. This is the initial supply. New tokens can be minted.
Functions
Function | Input Parameters | Description | Output |
---|---|---|---|
| None | Returns the address of the current owner. |
|
| None | Allows the current owner to relinquish control of the contract. | emits |
|
| Transfers ownership of the contract to a new account. | emits
|
| None | Returns the token owner address. |
|
| None | Returns the token decimals. |
|
| None | Returns the token symbol. |
|
| None | Returns the token name. |
|
| None | Returns the total token supply. |
|
|
| Returns the number of tokens owned by an account. |
|
_transfer |
| Transfers tokens to a specified address. |
|
|
| Returns the remaining number of tokens that spender is allowed to spend. |
|
|
| Sets the amount of tokens that a spender is allowed to withdraw. |
|
|
| Moves tokens from |
|
|
| Atomically increases the allowance granted to a spender. |
|
|
| Atomically decreases the allowance granted to a spender. |
|
|
| Destroys a specified amount of tokens from the caller. | emits |
|
| Destroys a specified amount of tokens from an account, deducting from the caller's allowance. | emits |
|
| Creates new tokens and assigns them to an account, increasing the total supply. | None |
Last updated