Function: withdrawFromSparkRecovery(uint256 amount)
This function is a permissionless variant of withdrawFromSpark used after Recovery mode activates.
Inputs
amountControl: N/A.
Constraints:
0sweeps all; otherwise, the value must not exceed the contract's aToken balance.Impact: Updates
usdtRedeemedand instructs the Spark pool to return liquidity to the vault contract.
Branches and code coverage
Intended branches
Delegate to
_withdrawFromSparkfor the actual withdrawal logic.
Negative behavior
Reentrancy is blocked by
nonReentrant.Calls outside Recovery mode revert.
Function call analysis
None.