Function: addStakePool(address _poolAddress)
Allows adding a new stake pool.
Inputs
_poolAddressControl: 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
_poolAddresstobondedPools.
Negative behavior
Should not allow anyone other than the admin to call this function. Ensured through the
onlyAdminmodifier.Should not allow re-adding an existing pool. Ensured through the
requirestatement.