Module Deep Dives
Grouped architecture modules with technical deep dives.
Use this section when you need module-level understanding quickly, organized by system layer.
How to Read These Pages
Each module is organized around runtime behavior, safety boundaries, and source-linked implementation details.
Execution Layer
Swap and issuance paths start here. These modules orchestrate state transitions and enforce runtime gates.
Execution Layer Overview
How hook orchestration and collateral manager transitions work together.
HybridCollateralSettlementHook
Intercepts swap flow, enforces pre-trade gate checks, and bounds post-trade settlement.
CollateralManager
Owns collateral and debt transitions, and applies policy to mint/redeem execution.
Risk and Pricing Layer
These modules transform market data and governance policy into deterministic limits that guard execution.
Risk and Pricing Overview
How pricing health, policy state, and solvency/cap math combine.
ChainlinkOracleAdapter
Converts feed state into effective price, mode, and reason code for downstream enforcement.
RiskConfig
Stores global and per-collateral policy controls with admin/guardian authority boundaries.
RollingCapManager
Reusable tx/block/day throughput limit manager consumed by CollateralManager.
SolvencyEngine
Computes haircut-adjusted collateral capacity and safe mint headroom.
Asset Layer
The token primitive stays intentionally simple, while upstream modules enforce policy and risk.
Asset Layer Overview
How the token module fits the control stack without embedding policy.
SampleStablecoin
Minimal token primitive used by constrained manager mint/burn flows.
Module Map
Interaction Notes
HybridCollateralSettlementHookintegrates withCollateralManagerthrough the signed vault sizing and external settlement interfaces (vaultSettlementSpecifiedAbs,previewSwapExternal,settleSwapExternal, andconsumeSignedQuoteForSwap).- Both
HybridCollateralSettlementHookandCollateralManagerreadChainlinkOracleAdapteroutput (priceE18,mode,reasonCode) for mode-aware gating. CollateralManageris the primary consumer ofRiskConfigpolicy andSolvencyEnginemath checks.CollateralManagerusesRollingCapManagerfor remaining-capacity reads and cap consumption while keeping policy selection in the manager path.