Skip to main content
Related concept

Signature

Description

Mints amount to to. Emits Transfer(address(0), to, amount). Dev: Reverts with ContractPaused(MINT) when MINT is paused. Dev: Reverts with AccessControlUnauthorizedAccount when the caller does not hold MINT_ROLE. Dev: Reverts with InvalidReceiver when to == address(0). Dev: Reverts with PolicyForbids(MINT_RECEIVER_POLICY, ...) when to is not authorized. Dev: Reverts with SupplyCapExceeded when totalSupply + amount > supplyCap. Param: to Mint recipient. Param: amount Amount to mint.

Access control

MINT_ROLE gates state-changing mint calls.

Policy interaction

Checks MINT_RECEIVER_POLICY, including during factory initCalls.

Example