SystemCoin

Git Source

Inherits: ERC20, 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) Authorizable(msg.sender);

Parameters

NameTypeDescription
_namestringString with the name of the token
_symbolstringString 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

NameTypeDescription
_dstaddress
_waduint256

burn

Burn an amount of tokens from an account

Only authorized addresses can burn tokens from an account

function burn(uint256 _wad) external;

Parameters

NameTypeDescription
_waduint256

burn

Burn an amount of tokens from an account

Only authorized addresses can burn tokens from an account

function burn(address _usr, uint256 _wad) external isAuthorized;

Parameters

NameTypeDescription
_usraddress
_waduint256