Submitted by cmichel
The Controller.inCaseStrategyGetStuck withdraws from a strategy but does not call updateBalance(_vault, _strategy) afterwards.
The _vaultDetails[_vault].balances[_strategy] variable does not correctly track the actual strategy balance anymore.
Im not sure what exactly this field is used for besides getting the withdraw amounts per strategy in getBestStrategyWithdraw.
As the strategy contains a lower amount than stored in the field, Controller.withdraw will attempt to withdraw too much.
Call updateBalance(_vault, _strategy) in inCaseStrategyGetStuck.
Haz077 (yAxis) acknowledged
GalloDaSballo (judge) commented:
BobbyYaxis (yAxis) noted:
