Function: setRebalancer(uint256 assetID, address rebalancer)
This function sets the rebalancer of the asset.
Inputs
assetIDControl: Fully controlled by the caller.
Constraints: Must be an asset ID.
Impact: Specifies the asset to change the rebalancer.
rebalancerControl: Fully controlled by the caller.
Constraints: Must be a nonzero address.
Impact: New rebalancer of the given asset.
Branches and code coverage
Intended branches
Revoke the rebalancer role of the old rebalancer.
Grant the rebalancer role to the new rebalancer.
Negative behavior
The caller is the owner.
Given asset ID is valid.
Asset token does not have a pending rebalancing process.