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.
Dev: Reverts with AccessControlUnauthorizedAccount when the caller does not hold DEFAULT_ADMIN_ROLE.
Dev: Reverts with InvalidSupplyCap when newSupplyCap < totalSupply() or newSupplyCap > type(uint128).max.
Param: newSupplyCap New supply cap. Must not exceed type(uint128).max.
Access control
DEFAULT_ADMIN_ROLE gates this call. Factory initCalls bypass the role gate during creation.