Token with Fixed Supply
A fungible token with a fixed supply can be minted once and has a total maximum supply for all of its lifetime.
The smart contract template for fungible tokens with a fixed supply. After deployment, no new tokens can be created.
The fixed supply version of a token guarantees that no additional tokens can be created after initial deployment.
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. For this contract this will be the maximum supply to ever exist.
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. |
|
|
| 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 |
Last updated