Function: transitionToWithdrawMode()
This function is an admin-controlled state change that closes the Unwind phase and enables the Withdraw phase. It requires that at least the deposited amount has been redeemed from SparkLend.
Branches and code coverage
Intended branches
Update the
_modetoOperationalMode.Withdraw.
Negative behavior
Non-admin callers or calls outside the Unwind phase revert.
Revert if the amount redeemed is less than the amount deployed.
Function call analysis
None.