Expand description
Recovery planning for failed or stuck vault operations.
This module only derives recovery actions from explicit state and evidence. It does not execute those actions, and it does not invent payout outcomes when the available information is incomplete.
Structs§
- Recovery
Context - Context for determining whether recovery is eligible.
- Recovery
Outcome - Result of planning a recovery operation.
- Recovery
Progress - Progress timestamps for a specific in-flight operation.
- Recovery
Stats - Compute recovery statistics from the current state.
Enums§
- Payout
Recovery Evidence - Evidence required to settle a payout during recovery.
- Recovery
Error - Recovery planning error.
- Recovery
Policy - Recovery eligibility policy.
Functions§
- compute_
payout_ failure_ outcome - Compute a failure payout outcome from escrow shares and idle restore amount.
- compute_
payout_ success_ outcome - Compute a success payout outcome from escrow and collected amounts.
- compute_
recovery_ stats - compute_
settlement_ shares - Compute the shares to burn and refund based on collected vs expected amounts.
- determine_
recovery_ action - Determine the appropriate recovery action for the current state.
- plan_
allocation_ recovery - Plan recovery for a failed allocation operation.
- plan_
payout_ recovery - Plan recovery for a payout using explicit outcome evidence.
- plan_
refresh_ recovery - Plan recovery for a failed refresh operation.
- plan_
withdrawal_ recovery - Plan recovery for a failed withdrawal operation.