Assessment reports>Stable Predeposit>Threat Model>withdrawFromSparkRecovery

Function: withdrawFromSparkRecovery(uint256 amount)

This function is a permissionless variant of withdrawFromSpark used after Recovery mode activates.

Inputs

  • amount

    • Control: N/A.

    • Constraints: 0 sweeps all; otherwise, the value must not exceed the contract's aToken balance.

    • Impact: Updates usdtRedeemed and instructs the Spark pool to return liquidity to the vault contract.

Branches and code coverage

Intended branches

  • Delegate to _withdrawFromSpark for the actual withdrawal logic.

Negative behavior

  • Reentrancy is blocked by nonReentrant.

  • Calls outside Recovery mode revert.

Function call analysis

  • None.

Zellic © 2025Back to top ↑