Context
OrderVault custodies collateral between order submission and execution. Users
ask where their funds are during that window, and integrators need to know the
lifecycle to handle stuck or cancelled orders correctly.
Scope
- The contract's role and the custody lifecycle: deposit, execution, refund on
cancellation.
- Every public function with parameters, authorisation, and errors, following
the DX-084 template.
- What happens to collateral when an order fails, expires, or is cancelled —
including who may trigger a refund and when.
- The events emitted, and how the indexer consumes them.
- A worked example tracing collateral through a cancelled order.
Acceptance criteria
Out of scope
- Keeper and executor operation.
Spec: docs/dx_1/003_content_map.md §2 · Depends on: DX-086
Context
OrderVault custodies collateral between order submission and execution. Users
ask where their funds are during that window, and integrators need to know the
lifecycle to handle stuck or cancelled orders correctly.
Scope
cancellation.
the DX-084 template.
including who may trigger a refund and when.
Acceptance criteria
and function named in the PR.
Out of scope
Spec:
docs/dx_1/003_content_map.md§2 · Depends on: DX-086