Allow any users to set new allocations as long as the new allocation gives a better avg APR than before. Allocations should be in the format [100000, 0, 0, 0, ...] where length is the same as lastAllocations variable and the sum of all value should be == 100000

function openRebalance(uint256[] calldata _newAllocations) external returns (bool, uint256 avgApr);
  • _newAllocations: array with allocations for the rebalance

  • RETURN : whether has rebalanced or not

  • RETURN : boolean representing whether a rebalanced has been performed or not.