Function: setParams(PoolFactory.PoolParams _params)
This function is used to update the pool parameters. It can only be called by the owner before the deposit end time.
Inputs
_params
Control: Arbitrary.
Constraints: Must have a valid reserve token, not be the zero address, and not be the same as the current reserve token.
Impact: The new pool parameters.
Branches and code coverage
Intended branches
Update the pool parameters to the new parameters.
Negative behavior
Revert if the caller is not the owner.
Revert if the deposit period has ended.
Revert if the reserve token is zero or the same as the current reserve token.
Revert if the pool has already been created.