System Overview
High-level goals and execution model for hybrid collateral settlement.
The hook adds an explicit risk-and-settlement layer on top of the normal Uniswap v4 pool path.
Integration Outcome
You get deeper routeable liquidity while enforcing explicit collateral, oracle, and cap controls on every swap-driven settlement.
Product Goals
- Preserve aggregator-compatible quoting and swap execution through hook deltas.
- Protect mint/redeem paths with oracle health states and risk limits.
- Keep collateral onboarding permissioned and operator-controlled.
Core Components
HybridCollateralSettlementHook: enforces pool configuration and swap interception lifecycle.- CollateralManager: tracks collateral/debt and performs constrained mint/redeem.
ChainlinkOracleAdapter: returns effective price, mode, and reason code.RiskConfig,RollingCapManager,SolvencyEngine: parameterization, caps, and solvency checks.
Settlement Modes
- Pure AMM pass-through: no signed quote supplied; hook returns zero delta and never touches the vault rail.
- Signed quote settlement: signed quote supplied and valid.
- Strict reject rule: if a signed quote is supplied but invalid, the transaction reverts (no same-transaction fallback).
System Sequence
Next Steps
- Review architecture details in Architecture.
- Review execution details in Collateral Manager.
- Review mode transitions and risk controls in Oracle and Risk Controls.
- Review integration options in SDK Integration.
- For API-level usage and helper references, see SDK Reference.
- For signed flow specifics, see Signed Swap Quote Integration.
- For aggregator market-access planning, see Aggregator Market Access Plan.
- For rollout and incident handling, see Signed Swap Operations Runbook.
- For aggregator, solver, and M1 sequence constraints, see Aggregator and Solver Integration.
- If you are launching a market, start from New Market Onboarding.