Skip to main content

Signature

Description

Sets a new supply cap. May be raised or lowered freely, but never below current totalSupply and never above type(uint128).max. Emits SupplyCapUpdated.

Parameters

Reverts

  • AccessControlUnauthorizedAccount when the caller does not hold DEFAULT_ADMIN_ROLE.
  • InvalidSupplyCap when newSupplyCap < totalSupply() or newSupplyCap > type(uint128).max.

Access control

DEFAULT_ADMIN_ROLE gates this call. Factory initCalls bypass the role gate during creation.

Policy interaction

No direct policy interaction.

Example