OmniToken
constructor
constructor(string _name, string _symbol, uint256 _mintAmount, address _to, address _lzEndpoint) public
_Constructor that gives msg.sender all of existing tokens.
The token is created with a name, symbol, and 18 decimals
If the mintAmount is greater than 0, the token is minted to the address specified_
Parameters
Name
Type
Description
_name
string
the name of the token
_symbol
string
the symbol of the token
_mintAmount
uint256
the amount of tokens to mint
_to
address
the address to mint the tokens to
_lzEndpoint
address
the LayerZero endpoint to use
mint
function mint(address account, uint256 amount) external
_Mints tokens to the specified address
Can only be called by the owner_
Parameters
Name
Type
Description
account
address
the address to mint the tokens to
amount
uint256
the amount of tokens to mint
burn
function burn(address account, uint256 amount) external
_Burns tokens from the specified address
Can only be called by the owner_
Parameters
Name
Type
Description
account
address
the address to burn the tokens from
amount
uint256
the amount of tokens to burn
Last updated