Function: replaceOptOutTopNModeler(uint256 oldModelerIndex, address oldModeler, address modeler)
This allows replacing an opt-out top N modeler.
Inputs
oldModelerIndexControl: Fully controlled by the caller.
Constraints: None.
Impact: The index of the old modeler.
oldModelerControl: Fully controlled by the caller.
Constraints: None.
Impact: The old modeler to be replaced.
modelerControl: Fully controlled by the caller.
Constraints: None.
Impact: The new modeler to replace the old one.
Branches and code coverage
Intended branches
Assure that the
oldModelerIndexcorresponds to theoldModeler. Currently not performed.Assure that the modeler's stake has been transferred back. Currently not performed.
Assure that the old modeler is different than the new one. Currently not performed.
Assure that the
modelerhas opted out.
Negative behavior
Assure that the
oldModeleris a top N modeler. Currently not performed.Assure that the
oldModelerhas opted out. Currently not performed.Assure that no one other than the validator can call this function.
Should not allow calling this while the contract is paused.
Should not allow replacing modeler to the modeler that has not opted out.