Signature
Description
Sets a new supply cap. May be raised or lowered freely, but never below currenttotalSupply and never above type(uint128).max. Emits SupplyCapUpdated.
Parameters
Reverts
AccessControlUnauthorizedAccountwhen the caller does not holdDEFAULT_ADMIN_ROLE.InvalidSupplyCapwhennewSupplyCap < totalSupply()ornewSupplyCap > type(uint128).max.
Access control
DEFAULT_ADMIN_ROLE gates this call. Factory initCalls bypass the role gate during creation.