SystemCoin
Inherits: ERC20, ERC20Permit, Authorizable, ISystemCoin
This contract represents the system coin ERC20 token to be used outside the system
Functions
constructor
constructor(
string memory _name,
string memory _symbol
) ERC20(_name, _symbol) ERC20Permit(_name) Authorizable(msg.sender);
Parameters
Name | Type | Description |
---|---|---|
_name | string | String with the name of the token |
_symbol | string | String with the symbol of the token |
mint
Mint an amount of tokens to an account
Only authorized addresses can mint tokens
function mint(address _dst, uint256 _wad) external isAuthorized;
Parameters
Name | Type | Description |
---|---|---|
_dst | address | |
_wad | uint256 |
burn
Burn an amount of tokens from the sender
function burn(uint256 _wad) external;
Parameters
Name | Type | Description |
---|---|---|
_wad | uint256 |