Assessment reports>Stable Predeposit>Threat Model>transitionToWithdrawMode

Function: transitionToWithdrawMode()

This function is an admin-controlled state change that closes the Yield 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 _mode to OperationalMode.Withdraw.

Negative behavior

  • Non-admin callers or calls outside Yield mode revert.

Function call analysis

  • None.

Zellic © 2025Back to top ↑