Function: rebalance(Token[] inBasket, Token[] outBasket)
This function rebalances the basket of the asset token.
Inputs
inBasketControl: Controlled by the caller of AssetRebalancer.
Constraints: None.
Impact: Specifies the list of assets to add to the basket.
outBasketControl: Controlled by the caller of AssetRebalancer.
Constraints: Must be contained by the current basket.
Impact: Specifies the list of assets to subtract from the basket.
Branches and code coverage
Intended branches
Calculate and set the new basket.
Calculate and set the new token set.
Negative behavior
The caller is a rebalancer.
Rebalancing feature is locked.