Function: manualAllocation(LenderAllocation[] _newPositions)
This manually updates the allocations.
Inputs
_newPositionsControl: Full.
Constraints: Should be in order of decreasing debt and increasing debt.
Impact: The list of position info.
Branches and code coverage (including function calls)
Intended branches
Owner successfully updates the allocations.
Negative behavior
Function reverts if invoked by nonowner.
Function reverts because
position.debtis greater thanlenderData.max_debt(supply cap).Function reverts because
lenderData.activationfor one of the strategies is unactivated (in_manualAllocation()).
Function call analysis
rootFunction -> _manualAllocation(LenderAllocation[])What is controllable?
_newPositions.If return value controllable, how is it used and how can it go wrong? N/A.
What happens if it reverts, reenters, or does other unusual control flow? N/A.