Skip to main content

Signature

Description

Mints amount to to. Emits Transfer(address(0), to, amount).

Parameters

Reverts

  • ContractPaused(MINT) when MINT is paused.
  • AccessControlUnauthorizedAccount when the caller does not hold MINT_ROLE.
  • InvalidReceiver when to == address(0).
  • PolicyForbids(MINT_RECEIVER_POLICY, ...) when to is not authorized.
  • SupplyCapExceeded when totalSupply + amount > supplyCap.

Access control

MINT_ROLE gates state-changing mint calls.

Policy interaction

Checks MINT_RECEIVER_POLICY, including during factory initCalls.

Example