Skip to main content

SubjectERC20.sol

Functions

mint

Mint tokens to address.

function mint(address _to, uint256 _amount) public onlyOwner

Parameters

NameTypeDescription
_toaddressAddress of beneficiary.
_amountuint256Amount of tokens to be minted.

Errors

SubjectERC20_NotAMoxiePassHolder

The contract will emit the error if the to address is not a Moxie Pass Holder.

error SubjectERC20_NotAMoxiePassHolder();

SubjectERC20_InvalidOwner

The contract will emit the error if the owner field provided is a zero address.

error SubjectERC20_InvalidOwner();