Function: addStakePool(address _poolAddress)
Allows adding a new stake pool.
Inputs
_poolAddress
Control: Fully controlled by the owner.
Constraints: Checked that it does not already exist within
bondedPools
.Impact: The address of the pool to add.
Branches and code coverage (including function calls)
Intended branches
Should add the
_poolAddress
tobondedPools
.
Negative behavior
Should not allow anyone other than the admin to call this function. Ensured through the
onlyAdmin
modifier.Should not allow re-adding an existing pool. Ensured through the
require
statement.