/// @notice the default maximum amount of gauges a user can allocate to.
/// @notice the default maximum amount of gauges a user can allocate to.
/// @dev if this number is ever lowered, or a contract has an override, then existing addresses MAY have more gauges allocated to. Use `numUserGauges` to check this.
/// @dev if this number is ever lowered, or a contract has an override, then existing addresses MAY have more gauges allocated to. Use `numUserGauges` to check this.
uint256 public maxGauges;
uint256 public maxGauges;
/// @notice an approve list for contracts to go above the max gauge limit.
/// @notice an approve list for contracts to go above the max gauge limit.
mapping(address => bool) public canContractExceedMaxGauges;
mapping(address => bool) public canExceedMaxGauges;
/// @notice add a new gauge. Requires auth by `authority`.
function addGauge(address gauge) external requiresAuth returns (uint112) {
return _addGauge(gauge);
}
function _addGauge(address gauge) internal returns (uint112 weight) {
function _addGauge(address gauge) internal returns (uint112 weight) {