DSToken
This contract represents a token with dynamic supply.
The owner of the token can mint/burn tokens to/from any account.
Functions:
Events:
Function constructor(string _name, string _symbol, uint8 _decimals)
constructor(string _name, string _symbol, uint8 _decimals)
initializes a new DSToken instance
Parameters:
_name
: token name_symbol
: token short symbol, minimum 1 character_decimals
: for display purposes only
Function decimals() → uint8
decimals() → uint8
No description
Function issue(address _to, uint256 _amount)
issue(address _to, uint256 _amount)
increases the token supply and sends the new tokens to the given account
can only be called by the contract owner
Parameters:
_to
: account to receive the new amount_amount
: amount to increase the supply by
Function destroy(address _from, uint256 _amount)
destroy(address _from, uint256 _amount)
removes tokens from the given account and decreases the token supply
can only be called by the contract owner
Parameters:
_from
: account to remove the amount from_amount
: amount to decrease the supply by
Event Issuance(uint256 _amount)
Issuance(uint256 _amount)
triggered when the total supply is increased
Parameters:
_amount
: amount that gets added to the supply
Event Destruction(uint256 _amount)
Destruction(uint256 _amount)
triggered when the total supply is decreased
Parameters:
_amount
: amount that gets removed from the supply
Last updated