Function: addStakeToModeler(uint256 amount)
This allows the addition of stake to a modeler.
Inputs
amount
Control: Fully controlled by the caller.
Constraints: None.
Impact: The amount that the modeler is staking.
Branches and code coverage
Intended branches
Assure that the modeler is registered.
Perform the transfer of the
amount
from the caller to the contract.Increase the
currentStake
of the modeler by theamount
.
Negative behavior
Should not be callable when the contract is paused.