Skip to main content

Operator Fee Parameter Configuration

Isthmus adds configuration variables operatorFeeScalar (uint32) and operatorFeeConstant (uint64) to SystemConfig to control the operator fee parameters.

ConfigUpdate

The following ConfigUpdate event is defined where the CONFIG_VERSION is uint256(0):

Initialization

The following actions should happen during the initialization of the SystemConfig:
  • emit ConfigUpdate.BATCHER
  • emit ConfigUpdate.FEE_SCALARS
  • emit ConfigUpdate.GAS_LIMIT
  • emit ConfigUpdate.UNSAFE_BLOCK_SIGNER
  • emit ConfigUpdate.EIP_1559_PARAMS
These actions MAY only be triggered if there is a diff to the value. The operatorFeeScalar and operatorFeeConstant are initialized to 0.

Modifying Operator Fee Parameters

A new SystemConfig UpdateType is introduced that enables the modification of the operatorFeeScalar and operatorFeeConstant by the SystemConfig owner.

Interface

Operator fee parameters

operatorFeeScalar
This function returns the currently configured operator fee scalar.
operatorFeeConstant
This function returns the currently configured operator fee constant.
setOperatorFeeScalars
This function sets the operatorFeeScalar and operatorFeeConstant. This function MUST only be callable by the SystemConfig owner.