Function: registerPool(address _pool, address _couponToken)
This function is used to register a pool in the distributor.
Inputs
_poolControl: Arbitrary.
Constraints: Nonzero address.
Impact: Address of the pool to be registered.
_couponTokenControl: Arbitrary.
Constraints: None.
Impact: Address of the coupon token associated with the pool.
Branches and code coverage
Intended branches
Update the
poolInfosmapping with the pool address and coupon token.
Negative behavior
Revert if the caller is not the pool factory.
Revert if the pool address is zero.